org.apache.xalan.xsltc.compiler.util
public final class ResultTreeType extends Type
Constructor Summary | |
---|---|
ResultTreeType(String methodName) |
Method Summary | |
---|---|
String | getClassName()
Returns the class name of an internal type's external representation. |
String | getMethodName() |
boolean | identicalTo(Type other) |
boolean | implementedAsMethod() |
Instruction | LOAD(int slot) |
Instruction | STORE(int slot) |
Type | toJCType() |
String | toSignature() |
String | toString() |
void | translateBox(ClassGenerator classGen, MethodGenerator methodGen)
Translates an object of this type to its boxed representation. |
void | translateTo(ClassGenerator classGen, MethodGenerator methodGen, Type type)
Translates a result tree to object of internal type type .
|
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, StringType type)
Expects an result tree on the stack and pushes a string.
|
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, 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, Class clazz)
Translates a result tree to a Java type denoted by clazz .
|
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. |
type
.
The translation to int is undefined since result trees
are always converted to reals in arithmetic expressions.
Parameters: classGen A BCEL class generator methodGen A BCEL method generator type An instance of the type to translate the result tree to
See Also: Type
Parameters: classGen A BCEL class generator methodGen A BCEL method generator type An instance of BooleanType (any)
See Also: Type
Parameters: classGen A BCEL class generator methodGen A BCEL method generator type An instance of StringType (any)
See Also: Type
Parameters: classGen A BCEL class generator methodGen A BCEL method generator type An instance of RealType (any)
See Also: Type
Parameters: classGen A BCEL class generator methodGen A BCEL method generator type An instance of ReferenceType (any)
See Also: Type
Parameters: classGen A BCEL class generator methodGen A BCEL method generator type An instance of NodeSetType (any)
See Also: Type
See Also: Type
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.
Parameters: classGen A BCEL class generator methodGen A BCEL method generator clazz An reference to the Class to translate to
See Also: Type
Parameters: classGen A BCEL class generator methodGen A BCEL method generator type An instance of BooleanType (any)
See Also: Type