LOAD
public Instruction LOAD(int slot)
- LOAD in interface Type
STORE
public Instruction STORE(int slot)
- STORE in interface Type
getClassName
public String getClassName()
Returns the class name of an internal type's external representation.
- getClassName in interface Type
identicalTo
public boolean identicalTo(Type other)
Returns true if this and other are identical types.
- identicalTo in interface Type
toJCType
public org.apache.bcel.generic.Type toJCType()
- toJCType in interface Type
toSignature
public String toSignature()
Returns the signature of an internal type's external representation.
- toSignature in interface Type
toString
public String toString()
Returns a string representation of this type.
- toString in interface Type
translateFrom
public void translateFrom(ClassGenerator classGen,
MethodGenerator methodGen,
Class clazz)
Translates an external Java Class into an internal type.
Expects the Java object on the stack, pushes the internal type
- translateFrom in interface Type
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
Class clazz)
Translates a node-set into the Java type denoted by clazz
.
Expects a node-set on the stack and pushes an object of the appropriate
type after coercion.
- translateTo in interface Type
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
BooleanType type)
Translates a node-set into a synthesized boolean.
The boolean value of a node-set is "true" if non-empty
and "false" otherwise. Notice that the
function getFirstNode() is called in translateToDesynthesized().
org.apache.xalan.xsltc.compiler.util.Type.translateTo
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
NodeType type)
Expects a node-set on the stack and pushes a node.
org.apache.xalan.xsltc.compiler.util.Type.translateTo
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
RealType type)
Expects a node-set on the stack and pushes a real.
First the node-set is converted to string, and from string to real.
org.apache.xalan.xsltc.compiler.util.Type.translateTo
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
ReferenceType type)
Expects a node-set on the stack and pushes a boxed node-set.
Node sets are already boxed so the translation is just a NOP.
org.apache.xalan.xsltc.compiler.util.Type.translateTo
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
StringType type)
Translates a node-set into a string. The string value of a node-set is
value of its first element.
org.apache.xalan.xsltc.compiler.util.Type.translateTo
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
Type type)
Translates a node-set into an object of internal type
type
. The translation to int is undefined
since node-sets are always converted to
reals in arithmetic expressions.
- translateTo in interface Type
org.apache.xalan.xsltc.compiler.util.Type.translateTo
translateToDesynthesized
public FlowList translateToDesynthesized(ClassGenerator classGen,
MethodGenerator methodGen,
BooleanType type)
Translates a node-set into a non-synthesized boolean. It does not
push a 0 or a 1 but instead returns branchhandle list to be appended
to the false list.
- translateToDesynthesized in interface Type
org.apache.xalan.xsltc.compiler.util.Type.translateToDesynthesized