|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.xsltc.compiler.util.Type org.apache.xalan.xsltc.compiler.util.BooleanType
public final class BooleanType
Field Summary |
---|
Fields inherited from class org.apache.xalan.xsltc.compiler.util.Type |
---|
Attribute, Boolean, Comment, Element, Int, Node, NodeSet, Object, Processing_Instruction, Real, Reference, ResultTree, Root, String, Text, Void |
Constructor Summary | |
---|---|
protected |
BooleanType()
|
Method Summary | |
---|---|
BranchInstruction |
GE(boolean tozero)
|
BranchInstruction |
GT(boolean tozero)
|
boolean |
identicalTo(Type other)
Returns true if this and other are identical types. |
boolean |
isSimple()
Returns true if this type is a simple type. |
BranchInstruction |
LE(boolean tozero)
|
Instruction |
LOAD(int slot)
|
BranchInstruction |
LT(boolean tozero)
|
Instruction |
STORE(int slot)
|
org.apache.bcel.generic.Type |
toJCType()
|
java.lang.String |
toSignature()
Returns the signature of an internal type's external representation. |
java.lang.String |
toString()
Returns a string representation of this type. |
void |
translateBox(ClassGenerator classGen,
MethodGenerator methodGen)
Translates an object of this type to its boxed representation. |
void |
translateFrom(ClassGenerator classGen,
MethodGenerator methodGen,
java.lang.Class clazz)
Translates an external (Java) boolean into internal boolean. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
java.lang.Class clazz)
Translates an internal boolean into an external (Java) boolean. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
RealType type)
Expects a boolean on the stack and pushes a real. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
ReferenceType type)
Expects a boolean on the stack and pushes a boxed boolean. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
StringType type)
Expects a boolean on the stack and pushes a string. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
Type type)
Translates a real into an object of internal type type . |
void |
translateUnBox(ClassGenerator classGen,
MethodGenerator methodGen)
Translates an object of this type to its unboxed representation. |
Methods inherited from class org.apache.xalan.xsltc.compiler.util.Type |
---|
ADD, CMP, distanceTo, DIV, DUP, getClassName, implementedAsMethod, isNumber, MUL, NEG, newObjectType, newObjectType, POP, REM, SUB, translateToDesynthesized, translateToDesynthesized |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected BooleanType()
Method Detail |
---|
public java.lang.String toString()
Type
toString
in class Type
public boolean identicalTo(Type other)
Type
identicalTo
in class Type
public java.lang.String toSignature()
Type
toSignature
in class Type
public boolean isSimple()
Type
isSimple
in class Type
public org.apache.bcel.generic.Type toJCType()
toJCType
in class Type
public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, Type type)
type
. The
translation to int is undefined since booleans are always converted to
reals in arithmetic expressions.
translateTo
in class Type
Type.translateTo(org.apache.xalan.xsltc.compiler.util.ClassGenerator, org.apache.xalan.xsltc.compiler.util.MethodGenerator, org.apache.xalan.xsltc.compiler.util.Type)
public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, StringType type)
Type.translateTo(org.apache.xalan.xsltc.compiler.util.ClassGenerator, org.apache.xalan.xsltc.compiler.util.MethodGenerator, org.apache.xalan.xsltc.compiler.util.Type)
public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, RealType type)
Type.translateTo(org.apache.xalan.xsltc.compiler.util.ClassGenerator, org.apache.xalan.xsltc.compiler.util.MethodGenerator, org.apache.xalan.xsltc.compiler.util.Type)
public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, ReferenceType type)
java.lang.Boolean
.
Type.translateTo(org.apache.xalan.xsltc.compiler.util.ClassGenerator, org.apache.xalan.xsltc.compiler.util.MethodGenerator, org.apache.xalan.xsltc.compiler.util.Type)
public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, java.lang.Class clazz)
translateTo
in class Type
public void translateFrom(ClassGenerator classGen, MethodGenerator methodGen, java.lang.Class clazz)
translateFrom
in class Type
public void translateBox(ClassGenerator classGen, MethodGenerator methodGen)
translateBox
in class Type
public void translateUnBox(ClassGenerator classGen, MethodGenerator methodGen)
translateUnBox
in class Type
public Instruction LOAD(int slot)
LOAD
in class Type
public Instruction STORE(int slot)
STORE
in class Type
public BranchInstruction GT(boolean tozero)
GT
in class Type
public BranchInstruction GE(boolean tozero)
GE
in class Type
public BranchInstruction LT(boolean tozero)
LT
in class Type
public BranchInstruction LE(boolean tozero)
LE
in class Type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |