|
||||||||||
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.RealType
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()
|
org.apache.bcel.generic.Instruction |
CMP(boolean less)
|
int |
distanceTo(Type type)
|
org.apache.bcel.generic.Instruction |
DIV()
|
org.apache.bcel.generic.Instruction |
DUP()
|
boolean |
identicalTo(Type other)
|
org.apache.bcel.generic.Instruction |
LOAD(int slot)
|
org.apache.bcel.generic.Instruction |
MUL()
|
org.apache.bcel.generic.Instruction |
NEG()
|
org.apache.bcel.generic.Instruction |
POP()
|
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 |
translateFrom(ClassGenerator classGen,
MethodGenerator methodGen,
java.lang.Class clazz)
Translates an external (primitive) Java type into a real. |
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. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
java.lang.Class clazz)
Translates a real into the Java type denoted by clazz . |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
IntType type)
Expects a real on the stack and pushes a truncated integer value |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
ReferenceType type)
Expects a double on the stack and pushes a boxed double. |
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) . |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
Type type)
Translates a real into an object of internal type type . |
FlowList |
translateToDesynthesized(ClassGenerator classGen,
MethodGenerator methodGen,
BooleanType type)
Translates a real into 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 |
GE,
getClassName,
GT,
implementedAsMethod,
LE,
LT,
newObjectType,
newObjectType,
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
. The
translation to int is undefined since reals are never converted to ints.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)
Double.toString(double d)
.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 void translateTo(ClassGenerator classGen, MethodGenerator methodGen, IntType 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.Double
.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 a real on the stack and pushes a number of the appropriate
type after coercion.public void translateFrom(ClassGenerator classGen, MethodGenerator methodGen, java.lang.Class clazz)
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.Instruction POP()
public org.apache.bcel.generic.Instruction CMP(boolean less)
public org.apache.bcel.generic.Instruction DUP()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |