org.apache.xalan.xsltc.compiler.util

Class ObjectType

public final class ObjectType extends Type

Author: Todd Miller Santiago Pericas-Geertsen

Method Summary
booleanequals(Object obj)
ClassgetJavaClass()
StringgetJavaClassName()
inthashCode()
Must return the same value for all ObjectType instances.
booleanidenticalTo(Type other)
InstructionLOAD(int slot)
InstructionSTORE(int slot)
TypetoJCType()
StringtoSignature()
StringtoString()
voidtranslateFrom(ClassGenerator classGen, MethodGenerator methodGen, Class clazz)
Translates an external Java type into an Object type
voidtranslateTo(ClassGenerator classGen, MethodGenerator methodGen, Type type)
Translates a void into an object of internal type type.
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, Class clazz)
Translates an object of this type to the external (Java) type denoted by clazz.

Method Detail

equals

public boolean equals(Object obj)

getJavaClass

public Class getJavaClass()

getJavaClassName

public String getJavaClassName()

hashCode

public int hashCode()
Must return the same value for all ObjectType instances. This is needed in CastExpr to ensure the mapping table is used correctly.

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

translateFrom

public void translateFrom(ClassGenerator classGen, MethodGenerator methodGen, Class clazz)
Translates an external Java type into an Object type

translateTo

public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, Type type)
Translates a void into an object of internal type type. This translation is needed when calling external functions that return void.

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, Class clazz)
Translates an object of this type to the external (Java) type denoted by clazz. This method is used to translate parameters when external functions are called.
Copyright © 2005 Apache XML Project. All Rights Reserved.