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

public final Class BooleanType

extends Type
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, .INVOKEVIRTUAL, .ISTORE, .Instruction, .InstructionList, .NEW, .PUSH, com.sun.org.apache.xalan.internal.xsltc.compiler.Constants

Authors
Jacek Ambroziak, Santiago Pericas-Geertsen

Field Summary

Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type:
AttributeBooleanCommentElementIntNodeNodeSetObjectObjectStringProcessing_InstructionRealReferenceResultTreeRootStringTextVoid

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
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 boolean
isSimple()

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

Returns true if this type is a simple type.

public BranchInstruction
public Instruction
public BranchInstruction
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
translateFrom(ClassGenerator classGen, MethodGenerator methodGen, Class<?> clazz)

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

Translates an external (Java) boolean into internal boolean.

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

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

Translates a real into an object of internal type type.

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

Expects a boolean on the stack and pushes a string.

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

Expects a boolean on the stack and pushes a real.

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

Expects a boolean on the stack and pushes a boxed boolean.

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

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

Translates an internal boolean into an external (Java) 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.Type:
ADDCMPdistanceToDIVDUPgetClassNameimplementedAsMethodisNumberMULNEGnewObjectTypenewObjectTypePOPREMSUBtranslateToDesynthesizedtranslateToDesynthesized

Constructor Detail

BooleanTypeback to summary
protected BooleanType()

Method Detail

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.

isSimpleback to summary
public boolean isSimple()

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

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

Returns true if this type is a simple type. Redefined in NumberType, BooleanType and StringType.

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.

STOREback to summary
public Instruction STORE(int slot)

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

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.

translateFromback to summary
public void translateFrom(ClassGenerator classGen, MethodGenerator methodGen, Class<?> clazz)

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

Translates an external (Java) boolean into internal boolean.

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

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

Translates a real into an object of internal type type. The translation to int is undefined since booleans are always converted to reals in arithmetic expressions.

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 a boolean on the stack and pushes a string. If the value on the stack is zero, then the string 'false' is pushed. Otherwise, the string 'true' is pushed.

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 a boolean on the stack and pushes a real. The value "true" is converted to 1.0 and the value "false" to 0.0.

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 a boolean on the stack and pushes a boxed boolean. Boxed booleans are represented by an instance of java.lang.Boolean.

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 internal boolean into an external (Java) boolean.

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.