ADD
public Instruction ADD()
- ADD in interface Type
CMP
public Instruction CMP(boolean less)
- CMP in interface Type
DIV
public Instruction DIV()
- DIV in interface Type
DUP
public Instruction DUP()
- DUP in interface Type
LOAD
public Instruction LOAD(int slot)
- LOAD in interface Type
MUL
public Instruction MUL()
- MUL in interface Type
NEG
public Instruction NEG()
- NEG in interface Type
POP
public Instruction POP()
- POP in interface Type
REM
public Instruction REM()
- REM in interface Type
STORE
public Instruction STORE(int slot)
- STORE in interface Type
SUB
public Instruction SUB()
- SUB 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
translateBox
public void translateBox(ClassGenerator classGen,
MethodGenerator methodGen)
Translates an object of this type to its boxed representation.
- translateBox in interface Type
translateFrom
public void translateFrom(ClassGenerator classGen,
MethodGenerator methodGen,
Class clazz)
Translates an external (primitive) Java type into a real. Expects a java
object on the stack and pushes a real (i.e., a double).
- translateFrom in interface Type
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
Class clazz)
Translates a real into the Java type denoted by clazz
.
Expects a real on the stack and pushes a number of the appropriate
type after coercion.
- translateTo in interface Type
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
BooleanType type)
Expects a real on the stack and pushes a 0 if that number is 0.0 and
a 1 otherwise.
org.apache.xalan.xsltc.compiler.util.Type.translateTo
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
IntType type)
Expects a real on the stack and pushes a truncated integer value
org.apache.xalan.xsltc.compiler.util.Type.translateTo
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
ReferenceType type)
Expects a double on the stack and pushes a boxed double. Boxed
double are represented by an instance of java.lang.Double
.
org.apache.xalan.xsltc.compiler.util.Type.translateTo
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
StringType type)
Expects a real on the stack and pushes its string value by calling
Double.toString(double d)
.
org.apache.xalan.xsltc.compiler.util.Type.translateTo
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
Type type)
Translates a real into an object of internal type type
. The
translation to int is undefined since reals are never converted to ints.
- translateTo in interface Type
org.apache.xalan.xsltc.compiler.util.Type.translateTo
translateToDesynthesized
public FlowList translateToDesynthesized(ClassGenerator classGen,
MethodGenerator methodGen,
BooleanType type)
Translates a real 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. A NaN must be converted to "false".
- 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