org.apache.xalan.xsltc.compiler.util

Class ReferenceType

public final class ReferenceType extends Type

Author: Jacek Ambroziak Santiago Pericas-Geertsen Erwin Bolwidt

Method Summary
booleanidenticalTo(Type other)
InstructionLOAD(int slot)
InstructionSTORE(int slot)
TypetoJCType()
StringtoSignature()
StringtoString()
voidtranslateBox(ClassGenerator classGen, MethodGenerator methodGen)
Translates an object of this type to its boxed representation.
voidtranslateFrom(ClassGenerator classGen, MethodGenerator methodGen, Class clazz)
Translates an external Java type into a reference.
voidtranslateTo(ClassGenerator classGen, MethodGenerator methodGen, Type type)
Translates a reference to an object of internal type type.
voidtranslateTo(ClassGenerator classGen, MethodGenerator methodGen, StringType type)
Translates reference into object of internal type type.
voidtranslateTo(ClassGenerator classGen, MethodGenerator methodGen, RealType type)
Translates a reference into an object of internal type type.
voidtranslateTo(ClassGenerator classGen, MethodGenerator methodGen, BooleanType type)
Translates a reference to an object of internal type type.
voidtranslateTo(ClassGenerator classGen, MethodGenerator methodGen, NodeSetType type)
Casts a reference into a NodeIterator.
voidtranslateTo(ClassGenerator classGen, MethodGenerator methodGen, NodeType type)
Casts a reference into a Node.
voidtranslateTo(ClassGenerator classGen, MethodGenerator methodGen, ResultTreeType type)
Casts a reference into a ResultTree.
voidtranslateTo(ClassGenerator classGen, MethodGenerator methodGen, ObjectType type)
Subsume reference into ObjectType.
voidtranslateTo(ClassGenerator classGen, MethodGenerator methodGen, Class clazz)
Translates a reference into the Java type denoted by clazz.
FlowListtranslateToDesynthesized(ClassGenerator classGen, MethodGenerator methodGen, BooleanType type)
Expects a reference 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

identicalTo

public boolean identicalTo(Type other)

LOAD

public Instruction LOAD(int slot)

STORE

public Instruction STORE(int slot)

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.

translateFrom

public void translateFrom(ClassGenerator classGen, MethodGenerator methodGen, Class clazz)
Translates an external Java type into a reference. Only conversion allowed is from java.lang.Object.

translateTo

public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, Type type)
Translates a reference to an object of internal type type. The translation to int is undefined since references are always converted to reals in arithmetic expressions.

See Also: Type

translateTo

public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, StringType type)
Translates reference into object of internal type type.

See Also: Type

translateTo

public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, RealType type)
Translates a reference into an object of internal type type.

See Also: Type

translateTo

public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, BooleanType type)
Translates a reference to an object of internal type type.

See Also: Type

translateTo

public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, NodeSetType type)
Casts a reference into a NodeIterator.

See Also: Type

translateTo

public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, NodeType type)
Casts a reference into a Node.

See Also: Type

translateTo

public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, ResultTreeType type)
Casts a reference into a ResultTree.

See Also: Type

translateTo

public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, ObjectType type)
Subsume reference into ObjectType.

See Also: Type

translateTo

public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, Class clazz)
Translates a reference into the Java type denoted by clazz.

translateToDesynthesized

public FlowList translateToDesynthesized(ClassGenerator classGen, MethodGenerator methodGen, BooleanType type)
Expects a reference 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 © 2005 Apache XML Project. All Rights Reserved.