|
||||||||||
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.NumberType | +--org.apache.xalan.xsltc.compiler.util.IntType
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 |
Method Summary | |
org.apache.bcel.generic.Instruction |
ADD()
|
int |
distanceTo(Type type)
|
org.apache.bcel.generic.Instruction |
DIV()
|
org.apache.bcel.generic.BranchInstruction |
GE(boolean tozero)
|
org.apache.bcel.generic.BranchInstruction |
GT(boolean tozero)
|
boolean |
identicalTo(Type other)
|
org.apache.bcel.generic.BranchInstruction |
LE(boolean tozero)
|
org.apache.bcel.generic.Instruction |
LOAD(int slot)
|
org.apache.bcel.generic.BranchInstruction |
LT(boolean tozero)
|
org.apache.bcel.generic.Instruction |
MUL()
|
org.apache.bcel.generic.Instruction |
NEG()
|
org.apache.bcel.generic.Instruction |
REM()
|
org.apache.bcel.generic.Instruction |
STORE(int slot)
|
org.apache.bcel.generic.Instruction |
SUB()
|
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 integer on the stack and pushes a 0 if its value is 0 and a 1 otherwise. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
java.lang.Class clazz)
Translates an integer into the Java type denoted by clazz . |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
RealType type)
Expects an integer on the stack and pushes a real. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
ReferenceType type)
Expects an integer on the stack and pushes a boxed integer. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
StringType type)
Expects an integer on the stack and pushes its string value by calling Integer.toString(int i) . |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
Type type)
Translates an integer into an object of internal type type . |
FlowList |
translateToDesynthesized(ClassGenerator classGen,
MethodGenerator methodGen,
BooleanType type)
Expects an integer on the stack and translates it to 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.NumberType |
isNumber,
isSimple |
Methods inherited from class org.apache.xalan.xsltc.compiler.util.Type |
CMP,
DUP,
getClassName,
implementedAsMethod,
newObjectType,
newObjectType,
POP,
translateFrom,
translateToDesynthesized |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
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 int distanceTo(Type type)
Type.distanceTo(org.apache.xalan.xsltc.compiler.util.Type)
public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, Type type)
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 void translateTo(ClassGenerator classGen, MethodGenerator methodGen, RealType 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 void translateTo(ClassGenerator classGen, MethodGenerator methodGen, StringType type)
Integer.toString(int i)
.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, BooleanType 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)
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, ReferenceType type)
java.lang.Integer
.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, java.lang.Class clazz)
clazz
.
Expects an integer on the stack and pushes a number of the appropriate
type after coercion.public void translateBox(ClassGenerator classGen, MethodGenerator methodGen)
public void translateUnBox(ClassGenerator classGen, MethodGenerator methodGen)
public org.apache.bcel.generic.Instruction ADD()
public org.apache.bcel.generic.Instruction SUB()
public org.apache.bcel.generic.Instruction MUL()
public org.apache.bcel.generic.Instruction DIV()
public org.apache.bcel.generic.Instruction REM()
public org.apache.bcel.generic.Instruction NEG()
public org.apache.bcel.generic.Instruction LOAD(int slot)
public org.apache.bcel.generic.Instruction STORE(int slot)
public org.apache.bcel.generic.BranchInstruction GT(boolean tozero)
public org.apache.bcel.generic.BranchInstruction GE(boolean tozero)
public org.apache.bcel.generic.BranchInstruction LT(boolean tozero)
public org.apache.bcel.generic.BranchInstruction LE(boolean tozero)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |