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
getType
public int getType()
hashCode
public int hashCode()
identicalTo
public boolean identicalTo(Type other)
- identicalTo in interface Type
toJCType
public org.apache.bcel.generic.Type toJCType()
- toJCType in interface Type
toSignature
public String toSignature()
- toSignature in interface Type
toString
public String toString()
- toString in interface Type
translateBox
public void translateBox(ClassGenerator classGen,
MethodGenerator methodGen)
Translates an object of this type to its boxed representation.
- translateBox in interface Type
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
Class clazz)
Translates a node into the Java type denoted by clazz
.
Expects a node 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 into a synthesized boolean.
If the expression is "@attr",
then "true" is pushed iff "attr" is an attribute of the current node.
If the expression is ".", the result is always "true".
org.apache.xalan.xsltc.compiler.util.Type.translateTo
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
NodeSetType type)
Expects a node on the stack and pushes a singleton node-set. Singleton
iterators are already started after construction.
org.apache.xalan.xsltc.compiler.util.Type.translateTo
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
RealType type)
Expects a node on the stack and pushes a real.
First the node 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 on the stack and pushes a boxed node. Boxed nodes
are represented by an instance of org.apache.xalan.xsltc.dom.Node
.
org.apache.xalan.xsltc.compiler.util.Type.translateTo
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
StringType type)
Expects a node on the stack and pushes its string value.
org.apache.xalan.xsltc.compiler.util.Type.translateTo
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
Type type)
Translates a node into an object of internal type type
.
The translation to int is undefined since nodes 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 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
translateUnBox
public void translateUnBox(ClassGenerator classGen,
MethodGenerator methodGen)
Translates an object of this type to its unboxed representation.
- translateUnBox in interface Type