|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xalan.xsltc.compiler.util.Type | +--org.apache.xalan.xsltc.compiler.util.ResultTreeType
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 | |
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)
|
boolean |
implementedAsMethod()
|
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()
|
java.lang.String |
toString()
|
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()
public boolean identicalTo(Type other)
public java.lang.String toSignature()
public org.apache.bcel.generic.Type toJCType()
public java.lang.String getMethodName()
public boolean implementedAsMethod()
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.classGen
- 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)
classGen
- 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.classGen
- 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)
public void translateUnBox(ClassGenerator classGen, MethodGenerator methodGen)
public java.lang.String getClassName()
public org.apache.bcel.generic.Instruction LOAD(int slot)
public org.apache.bcel.generic.Instruction STORE(int slot)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |