|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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
public final class IntType
Field Summary |
---|
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 |
Constructor Summary | |
---|---|
protected |
IntType()
|
Method Summary | |
---|---|
Instruction |
ADD()
|
int |
distanceTo(Type type)
Returns the distance between two types. |
Instruction |
DIV()
|
BranchInstruction |
GE(boolean tozero)
|
BranchInstruction |
GT(boolean tozero)
|
boolean |
identicalTo(Type other)
Returns true if this and other are identical types. |
BranchInstruction |
LE(boolean tozero)
|
Instruction |
LOAD(int slot)
|
BranchInstruction |
LT(boolean tozero)
|
Instruction |
MUL()
|
Instruction |
NEG()
|
Instruction |
REM()
|
Instruction |
STORE(int slot)
|
Instruction |
SUB()
|
org.apache.bcel.generic.Type |
toJCType()
|
java.lang.String |
toSignature()
Returns the signature of an internal type's external representation. |
java.lang.String |
toString()
Returns a string representation of this type. |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected IntType()
Method Detail |
---|
public java.lang.String toString()
Type
toString
in class Type
public boolean identicalTo(Type other)
Type
identicalTo
in class Type
public java.lang.String toSignature()
Type
toSignature
in class Type
public org.apache.bcel.generic.Type toJCType()
toJCType
in class Type
public int distanceTo(Type type)
Type
distanceTo
in class Type
Type.distanceTo(org.apache.xalan.xsltc.compiler.util.Type)
public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, Type type)
type
.
translateTo
in class 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)
translateToDesynthesized
in class 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.
translateTo
in class Type
public void translateBox(ClassGenerator classGen, MethodGenerator methodGen)
translateBox
in class Type
public void translateUnBox(ClassGenerator classGen, MethodGenerator methodGen)
translateUnBox
in class Type
public Instruction ADD()
ADD
in class Type
public Instruction SUB()
SUB
in class Type
public Instruction MUL()
MUL
in class Type
public Instruction DIV()
DIV
in class Type
public Instruction REM()
REM
in class Type
public Instruction NEG()
NEG
in class Type
public Instruction LOAD(int slot)
LOAD
in class Type
public Instruction STORE(int slot)
STORE
in class Type
public BranchInstruction GT(boolean tozero)
GT
in class Type
public BranchInstruction GE(boolean tozero)
GE
in class Type
public BranchInstruction LT(boolean tozero)
LT
in class Type
public BranchInstruction LE(boolean tozero)
LE
in class Type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |