|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xalan.xsltc.compiler.util.Type
org.apache.xalan.xsltc.compiler.util.ResultTreeType
public final class ResultTreeType
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.bcel.generic.InstructionConstants |
|---|
org.apache.bcel.generic.InstructionConstants.Clinit |
| 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 |
| Fields inherited from interface org.apache.bcel.generic.InstructionConstants |
|---|
AALOAD, AASTORE, ACONST_NULL, ALOAD_0, ALOAD_1, ALOAD_2, ARETURN, ARRAYLENGTH, ASTORE_0, ASTORE_1, ASTORE_2, ATHROW, BALOAD, BASTORE, bla, CALOAD, CASTORE, D2F, D2I, D2L, DADD, DALOAD, DASTORE, DCMPG, DCMPL, DCONST_0, DCONST_1, DDIV, DMUL, DNEG, DREM, DRETURN, DSUB, DUP, DUP_X1, DUP_X2, DUP2, DUP2_X1, DUP2_X2, F2D, F2I, F2L, FADD, FALOAD, FASTORE, FCMPG, FCMPL, FCONST_0, FCONST_1, FCONST_2, FDIV, FMUL, FNEG, FREM, FRETURN, FSUB, I2B, I2C, I2D, I2F, I2L, I2S, IADD, IALOAD, IAND, IASTORE, ICONST_0, ICONST_1, ICONST_2, ICONST_3, ICONST_4, ICONST_5, ICONST_M1, IDIV, ILOAD_0, ILOAD_1, ILOAD_2, IMUL, INEG, INSTRUCTIONS, IOR, IREM, IRETURN, ISHL, ISHR, ISTORE_0, ISTORE_1, ISTORE_2, ISUB, IUSHR, IXOR, L2D, L2F, L2I, LADD, LALOAD, LAND, LASTORE, LCMP, LCONST_0, LCONST_1, LDIV, LMUL, LNEG, LOR, LREM, LRETURN, LSHL, LSHR, LSUB, LUSHR, LXOR, MONITORENTER, MONITOREXIT, NOP, POP, POP2, RETURN, SALOAD, SASTORE, SWAP, THIS |
| Constructor Summary | |
|---|---|
ResultTreeType(java.lang.String methodName)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getClassName()
Returns the class name of an internal type's external representation. |
java.lang.String |
getMethodName()
|
boolean |
identicalTo(Type other)
Returns true if this and other are identical types. |
boolean |
implementedAsMethod()
Returns true if this type has no object representaion. |
org.apache.bcel.generic.Instruction |
LOAD(int slot)
|
org.apache.bcel.generic.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 |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
BooleanType type)
Expects an result tree on the stack and pushes a boolean. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
java.lang.Class clazz)
Translates a result tree to a Java type denoted by clazz. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
NodeSetType type)
Expects a result tree on the stack and pushes a node-set (iterator). |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
ObjectType type)
Subsume result tree into ObjectType. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
RealType type)
Expects an result tree on the stack and pushes a real. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
ReferenceType type)
Expects a result tree on the stack and pushes a boxed result tree. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
StringType type)
Expects an result tree on the stack and pushes a string. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
Type type)
Translates a result tree to object of internal type type. |
FlowList |
translateToDesynthesized(ClassGenerator classGen,
MethodGenerator methodGen,
BooleanType type)
Translates a result tree into a non-synthesized boolean. |
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, GE, GT, isNumber, isSimple, LE, LT, MUL, NEG, newObjectType, newObjectType, POP, REM, SUB, translateFrom, translateToDesynthesized |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResultTreeType(java.lang.String methodName)
| Method Detail |
|---|
public java.lang.String toString()
Type
toString in class Typepublic boolean identicalTo(Type other)
Type
identicalTo in class Typepublic java.lang.String toSignature()
Type
toSignature in class Typepublic org.apache.bcel.generic.Type toJCType()
toJCType in class Typepublic java.lang.String getMethodName()
public boolean implementedAsMethod()
Type
implementedAsMethod in class Type
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
Type type)
type.
The translation to int is undefined since result trees
are always converted to reals in arithmetic expressions.
translateTo in class TypeclassGen - A BCEL class generatormethodGen - A BCEL method generatortype - An instance of the type to translate the result tree toType.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,
BooleanType type)
classGen - A BCEL class generatormethodGen - A BCEL method generatortype - An instance of BooleanType (any)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)
classGen - A BCEL class generatormethodGen - A BCEL method generatortype - An instance of StringType (any)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)
classGen - A BCEL class generatormethodGen - A BCEL method generatortype - An instance of RealType (any)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)
classGen - A BCEL class generatormethodGen - A BCEL method generatortype - An instance of ReferenceType (any)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,
NodeSetType type)
classGen - A BCEL class generatormethodGen - A BCEL method generatortype - An instance of NodeSetType (any)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,
ObjectType 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 FlowList translateToDesynthesized(ClassGenerator classGen,
MethodGenerator methodGen,
BooleanType type)
translateToDesynthesized in class TypeclassGen - A BCEL class generatormethodGen - A BCEL method generatortype - An instance of BooleanType (any)Type.translateToDesynthesized(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)
clazz.
Expects a result tree on the stack and pushes an object
of the appropriate type after coercion. Result trees are translated
to W3C Node or W3C NodeList and the translation is done
via node-set type.
translateTo in class TypeclassGen - A BCEL class generatormethodGen - A BCEL method generatorclazz - An reference to the Class to translate toType.translateTo(org.apache.xalan.xsltc.compiler.util.ClassGenerator, org.apache.xalan.xsltc.compiler.util.MethodGenerator, org.apache.xalan.xsltc.compiler.util.Type)
public void translateBox(ClassGenerator classGen,
MethodGenerator methodGen)
translateBox in class Type
public void translateUnBox(ClassGenerator classGen,
MethodGenerator methodGen)
translateUnBox in class Typepublic java.lang.String getClassName()
getClassName in class Typepublic org.apache.bcel.generic.Instruction LOAD(int slot)
LOAD in class Typepublic org.apache.bcel.generic.Instruction STORE(int slot)
STORE in class Type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||