org.apache.xalan.xsltc.compiler.util

Class IntType

public final class IntType extends NumberType

Author: Jacek Ambroziak Santiago Pericas-Geertsen

Method Summary
InstructionADD()
intdistanceTo(Type type)
InstructionDIV()
BranchInstructionGE(boolean tozero)
BranchInstructionGT(boolean tozero)
booleanidenticalTo(Type other)
BranchInstructionLE(boolean tozero)
InstructionLOAD(int slot)
BranchInstructionLT(boolean tozero)
InstructionMUL()
InstructionNEG()
InstructionREM()
InstructionSTORE(int slot)
InstructionSUB()
TypetoJCType()
StringtoSignature()
StringtoString()
voidtranslateBox(ClassGenerator classGen, MethodGenerator methodGen)
Translates an object of this type to its boxed representation.
voidtranslateTo(ClassGenerator classGen, MethodGenerator methodGen, Type type)
Translates an integer into an object of internal type type.
voidtranslateTo(ClassGenerator classGen, MethodGenerator methodGen, RealType type)
Expects an integer on the stack and pushes a real.
voidtranslateTo(ClassGenerator classGen, MethodGenerator methodGen, StringType type)
Expects an integer on the stack and pushes its string value by calling Integer.toString(int i).
voidtranslateTo(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.
voidtranslateTo(ClassGenerator classGen, MethodGenerator methodGen, ReferenceType type)
Expects an integer on the stack and pushes a boxed integer.
voidtranslateTo(ClassGenerator classGen, MethodGenerator methodGen, Class clazz)
Translates an integer into the Java type denoted by clazz.
FlowListtranslateToDesynthesized(ClassGenerator classGen, MethodGenerator methodGen, BooleanType type)
Expects an integer on the stack and translates it to a non-synthesized boolean.
voidtranslateUnBox(ClassGenerator classGen, MethodGenerator methodGen)
Translates an object of this type to its unboxed representation.

Method Detail

ADD

public Instruction ADD()

distanceTo

public int distanceTo(Type type)

See Also: Type

DIV

public Instruction DIV()

GE

public BranchInstruction GE(boolean tozero)

GT

public BranchInstruction GT(boolean tozero)

identicalTo

public boolean identicalTo(Type other)

LE

public BranchInstruction LE(boolean tozero)

LOAD

public Instruction LOAD(int slot)

LT

public BranchInstruction LT(boolean tozero)

MUL

public Instruction MUL()

NEG

public Instruction NEG()

REM

public Instruction REM()

STORE

public Instruction STORE(int slot)

SUB

public Instruction SUB()

toJCType

public Type toJCType()

toSignature

public String toSignature()

toString

public String toString()

translateBox

public void translateBox(ClassGenerator classGen, MethodGenerator methodGen)
Translates an object of this type to its boxed representation.

translateTo

public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, Type type)
Translates an integer into an object of internal type type.

See Also: Type

translateTo

public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, RealType type)
Expects an integer on the stack and pushes a real.

See Also: Type

translateTo

public 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).

See Also: Type

translateTo

public 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.

See Also: Type

translateTo

public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, ReferenceType type)
Expects an integer on the stack and pushes a boxed integer. Boxed integers are represented by an instance of java.lang.Integer.

See Also: Type

translateTo

public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, Class clazz)
Translates an integer into the Java type denoted by clazz. Expects an integer on the stack and pushes a number of the appropriate type after coercion.

translateToDesynthesized

public FlowList translateToDesynthesized(ClassGenerator classGen, MethodGenerator methodGen, BooleanType type)
Expects an integer on the stack and translates it to 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.

See Also: Type

translateUnBox

public void translateUnBox(ClassGenerator classGen, MethodGenerator methodGen)
Translates an object of this type to its unboxed representation.
Copyright B) 2006 Apache XML Project. All Rights Reserved.