org.apache.xalan.xsltc.compiler.util
public abstract class Type extends Object implements Constants
Field Summary | |
---|---|
static Type | Attribute |
static Type | Boolean |
static Type | Comment |
static Type | Element |
static Type | Int |
static Type | Node |
static Type | NodeSet |
static Type | Object |
static Type | Processing_Instruction |
static Type | Real |
static Type | Reference |
static Type | ResultTree |
static Type | Root |
static Type | String |
static Type | Text |
static Type | Void |
Method Summary | |
---|---|
Instruction | ADD() |
Instruction | CMP(boolean less) |
int | distanceTo(Type type)
Returns the distance between two types. |
Instruction | DIV() |
Instruction | DUP() |
String | getClassName()
Returns the class name of an internal type's external representation. |
BranchInstruction | GE(boolean tozero) |
BranchInstruction | GT(boolean tozero) |
abstract boolean | identicalTo(Type other)
Returns true if this and other are identical types. |
boolean | implementedAsMethod()
Returns true if this type has no object representaion. |
boolean | isNumber()
Returns true if this type is a numeric type. |
boolean | isSimple()
Returns true if this type is a simple type. |
BranchInstruction | LE(boolean tozero) |
Instruction | LOAD(int slot) |
BranchInstruction | LT(boolean tozero) |
Instruction | MUL() |
static Type | newObjectType(String javaClassName)
Factory method to instantiate object types. |
static Type | newObjectType(Class clazz)
Factory method to instantiate object types. |
Instruction | NEG() |
Instruction | POP() |
Instruction | REM() |
Instruction | STORE(int slot) |
Instruction | SUB() |
abstract Type | toJCType() |
abstract String | toSignature()
Returns the signature of an internal type's external representation. |
abstract String | toString()
Returns a string representation of this type. |
void | translateBox(ClassGenerator classGen, MethodGenerator methodGen)
Translates an object of this type to its boxed representation. |
void | translateFrom(ClassGenerator classGen, MethodGenerator methodGen, Class clazz)
Translates an external (Java) type denoted by clazz to
an object of this type. |
void | translateTo(ClassGenerator classGen, MethodGenerator methodGen, Type type)
Translates an object of this type to an object of type
type .
|
void | translateTo(ClassGenerator classGen, MethodGenerator methodGen, Class clazz)
Translates an object of this type to the external (Java) type denoted
by clazz . |
FlowList | translateToDesynthesized(ClassGenerator classGen, MethodGenerator methodGen, Type type)
Translates object of this type to an object of type type .
|
FlowList | translateToDesynthesized(ClassGenerator classGen, MethodGenerator methodGen, BooleanType type)
Translates an object of this type to an non-synthesized boolean. |
void | translateUnBox(ClassGenerator classGen, MethodGenerator methodGen)
Translates an object of this type to its unboxed representation. |
clazz
to
an object of this type. This method is used to translate return values
when external functions are called.type
.
Expects an object of the former type and pushes an object of the latter.clazz
. This method is used to translate parameters
when external functions are called.type
.
Expects an object of the former type and pushes an object of the latter
if not boolean. If type type
is boolean then a branchhandle
list (to be appended to the false list) is returned.