APIdia Launch Partner
Top Constructors Methods
com.sun.org.apache.xalan.internal.xsltc.compiler.util

public final Class IntType

extends NumberType
Class Inheritance
Imports
com.sun.org.apache.bcel.internal.generic.BranchHandle, .BranchInstruction, .CHECKCAST, .ConstantPoolGen, .GOTO, .IFEQ, .IFGE, .IFGT, .IFLE, .IFLT, .IF_ICMPGE, .IF_ICMPGT, .IF_ICMPLE, .IF_ICMPLT, .ILOAD, .INVOKESPECIAL, .INVOKESTATIC, .INVOKEVIRTUAL, .ISTORE, .Instruction, .InstructionConst, .InstructionList, .NEW, com.sun.org.apache.xalan.internal.xsltc.compiler.Constants, .FlowList

Authors
Jacek Ambroziak, Santiago Pericas-Geertsen

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public Instruction
public int
distanceTo(Type type)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.distanceTo.

Returns the distance between two types.

public Instruction
public BranchInstruction
public BranchInstruction
public boolean
identicalTo(Type other)

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.identicalTo.

Returns true if this and other are identical types.

public BranchInstruction
public Instruction
public BranchInstruction
public Instruction
public Instruction
public Instruction
public Instruction
public Instruction
public Type
public String
toSignature()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.toSignature.

Returns the signature of an internal type's external representation.

public String
toString()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.toString.

Returns a string representation of this type.

public void
translateBox(ClassGenerator classGen, MethodGenerator methodGen)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateBox.

Translates an object of this type to its boxed representation.

public void
translateTo(ClassGenerator classGen, MethodGenerator methodGen, final Type type)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo.

Translates an integer into an object of internal type type.

public void
translateTo(ClassGenerator classGen, MethodGenerator methodGen, RealType type)

Expects an integer on the stack and pushes a real.

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

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.

public void
translateTo(ClassGenerator classGen, MethodGenerator methodGen, ReferenceType type)

Expects an integer on the stack and pushes a boxed integer.

public void
translateTo(ClassGenerator classGen, MethodGenerator methodGen, Class<?> clazz)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo.

Translates an integer into the Java type denoted by clazz.

public FlowList
translateToDesynthesized(ClassGenerator classGen, MethodGenerator methodGen, BooleanType type)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateToDesynthesized.

Expects an integer on the stack and translates it to a non-synthesized boolean.

public void
translateUnBox(ClassGenerator classGen, MethodGenerator methodGen)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateUnBox.

Translates an object of this type to its unboxed representation.

Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.util.NumberType:
isNumberisSimple

Constructor Detail

IntTypeback to summary
protected IntType()

Method Detail

ADDback to summary
public Instruction ADD()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.ADD.

distanceToback to summary
public int distanceTo(Type type)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.distanceTo.

Doc from com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.distanceTo.

Returns the distance between two types. This measure is used to select overloaded functions/operators. This method is typically redefined by the subclasses.

See Also
com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type#distanceTo
DIVback to summary
public Instruction DIV()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.DIV.

GEback to summary
public BranchInstruction GE(boolean tozero)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.GE.

GTback to summary
public BranchInstruction GT(boolean tozero)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.GT.

identicalToback to summary
public boolean identicalTo(Type other)

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.identicalTo.

Doc from com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.identicalTo.

Returns true if this and other are identical types.

LEback to summary
public BranchInstruction LE(boolean tozero)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.LE.

LOADback to summary
public Instruction LOAD(int slot)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.LOAD.

LTback to summary
public BranchInstruction LT(boolean tozero)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.LT.

MULback to summary
public Instruction MUL()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.MUL.

NEGback to summary
public Instruction NEG()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.NEG.

REMback to summary
public Instruction REM()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.REM.

STOREback to summary
public Instruction STORE(int slot)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.STORE.

SUBback to summary
public Instruction SUB()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.SUB.

toJCTypeback to summary
public Type toJCType()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.toJCType.

toSignatureback to summary
public String toSignature()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.toSignature.

Doc from com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.toSignature.

Returns the signature of an internal type's external representation.

toStringback to summary
public String toString()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.toString.

Doc from com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.toString.

Returns a string representation of this type.

translateBoxback to summary
public void translateBox(ClassGenerator classGen, MethodGenerator methodGen)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateBox.

Translates an object of this type to its boxed representation.

translateToback to summary
public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, final Type type)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo.

Translates an integer into an object of internal type type.

See Also
com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type#translateTo
translateToback to summary
public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, RealType type)

Expects an integer on the stack and pushes a real.

See Also
com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type#translateTo
translateToback to summary
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
com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type#translateTo
translateToback to summary
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
com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type#translateTo
translateToback to summary
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
com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type#translateTo
translateToback to summary
public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, Class<?> clazz)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo.

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.

translateToDesynthesizedback to summary
public FlowList translateToDesynthesized(ClassGenerator classGen, MethodGenerator methodGen, BooleanType type)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateToDesynthesized.

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
com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type#translateToDesynthesized
translateUnBoxback to summary
public void translateUnBox(ClassGenerator classGen, MethodGenerator methodGen)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateUnBox.

Translates an object of this type to its unboxed representation.