|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.xsltc.compiler.util.Type org.apache.xalan.xsltc.compiler.util.ObjectType
public final class ObjectType
Field Summary | |
---|---|
private java.lang.Class |
_clazz
|
private java.lang.String |
_javaClassName
|
Fields inherited from class org.apache.xalan.xsltc.compiler.util.Type |
---|
Attribute, Boolean, Comment, Element, Int, Node, NodeSet, Object, Processing_Instruction, Real, Reference, ResultTree, Root, String, Text, Void |
Constructor Summary | |
---|---|
protected |
ObjectType(java.lang.Class clazz)
|
protected |
ObjectType(java.lang.String javaClassName)
Used to represent a Java Class type such is required to support non-static java functions. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Class |
getJavaClass()
|
java.lang.String |
getJavaClassName()
|
int |
hashCode()
Must return the same value for all ObjectType instances. |
boolean |
identicalTo(Type other)
Returns true if this and other are identical types. |
Instruction |
LOAD(int slot)
|
Instruction |
STORE(int slot)
|
org.apache.bcel.generic.Type |
toJCType()
|
java.lang.String |
toSignature()
Returns the signature of an internal type's external representation. |
java.lang.String |
toString()
Returns a string representation of this type. |
void |
translateFrom(ClassGenerator classGen,
MethodGenerator methodGen,
java.lang.Class clazz)
Translates an external Java type into an Object type |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
java.lang.Class clazz)
Translates an object of this type to the external (Java) type denoted by clazz . |
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) . |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
Type type)
Translates a void into an object of internal type type . |
Methods inherited from class org.apache.xalan.xsltc.compiler.util.Type |
---|
ADD, CMP, distanceTo, DIV, DUP, GE, getClassName, GT, implementedAsMethod, isNumber, isSimple, LE, LT, MUL, NEG, newObjectType, newObjectType, POP, REM, SUB, translateBox, translateToDesynthesized, translateToDesynthesized, translateUnBox |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String _javaClassName
private java.lang.Class _clazz
Constructor Detail |
---|
protected ObjectType(java.lang.String javaClassName)
javaClassName
- name of the class such as 'com.foo.Processor'protected ObjectType(java.lang.Class clazz)
Method Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getJavaClassName()
public java.lang.Class getJavaClass()
public java.lang.String toString()
Type
toString
in class Type
public boolean identicalTo(Type other)
Type
identicalTo
in class Type
public java.lang.String toSignature()
Type
toSignature
in class Type
public org.apache.bcel.generic.Type toJCType()
toJCType
in class Type
public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, Type type)
type
.
This translation is needed when calling external functions
that return void.
translateTo
in class Type
Type.translateTo(org.apache.xalan.xsltc.compiler.util.ClassGenerator, org.apache.xalan.xsltc.compiler.util.MethodGenerator, org.apache.xalan.xsltc.compiler.util.Type)
public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, StringType type)
Integer.toString(int i)
.
Type.translateTo(org.apache.xalan.xsltc.compiler.util.ClassGenerator, org.apache.xalan.xsltc.compiler.util.MethodGenerator, org.apache.xalan.xsltc.compiler.util.Type)
public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, java.lang.Class clazz)
clazz
. This method is used to translate parameters
when external functions are called.
translateTo
in class Type
public void translateFrom(ClassGenerator classGen, MethodGenerator methodGen, java.lang.Class clazz)
translateFrom
in class Type
public Instruction LOAD(int slot)
LOAD
in class Type
public Instruction STORE(int slot)
STORE
in class Type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |