|
||||||||||
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.NodeType
public final class NodeType
Field Summary | |
---|---|
private int |
_type
|
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 |
NodeType()
|
protected |
NodeType(int type)
|
Method Summary | |
---|---|
java.lang.String |
getClassName()
Returns the class name of an internal type's external representation. |
int |
getType()
|
int |
hashCode()
|
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 |
translateBox(ClassGenerator classGen,
MethodGenerator methodGen)
Translates an object of this type to its boxed representation. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
BooleanType type)
Translates a node into a synthesized boolean. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
java.lang.Class clazz)
Translates a node into the Java type denoted by clazz . |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
NodeSetType type)
Expects a node on the stack and pushes a singleton node-set. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
ObjectType type)
Subsume Node into ObjectType. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
RealType type)
Expects a node on the stack and pushes a real. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
ReferenceType type)
Expects a node on the stack and pushes a boxed node. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
StringType type)
Expects a node on the stack and pushes its string value. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
Type type)
Translates a node into an object of internal type type . |
FlowList |
translateToDesynthesized(ClassGenerator classGen,
MethodGenerator methodGen,
BooleanType type)
Translates a node into a non-synthesized boolean. |
void |
translateUnBox(ClassGenerator classGen,
MethodGenerator methodGen)
Translates an object of this type to its unboxed representation. |
Methods inherited from class org.apache.xalan.xsltc.compiler.util.Type |
---|
ADD, CMP, distanceTo, DIV, DUP, GE, GT, implementedAsMethod, isNumber, isSimple, LE, LT, MUL, NEG, newObjectType, newObjectType, POP, REM, SUB, translateFrom, translateToDesynthesized |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final int _type
Constructor Detail |
---|
protected NodeType()
protected NodeType(int type)
Method Detail |
---|
public int getType()
public java.lang.String toString()
Type
toString
in class Type
public boolean identicalTo(Type other)
Type
identicalTo
in class Type
public int hashCode()
hashCode
in class java.lang.Object
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
.
The translation to int is undefined since nodes are always converted
to reals in arithmetic expressions.
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)
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, BooleanType 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, RealType 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, NodeSetType 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, ObjectType 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 FlowList translateToDesynthesized(ClassGenerator classGen, MethodGenerator methodGen, BooleanType type)
translateToDesynthesized
in class Type
Type.translateToDesynthesized(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, ReferenceType type)
org.apache.xalan.xsltc.dom.Node
.
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
.
Expects a node on the stack and pushes an object of the appropriate
type after coercion.
translateTo
in class Type
public void translateBox(ClassGenerator classGen, MethodGenerator methodGen)
translateBox
in class Type
public void translateUnBox(ClassGenerator classGen, MethodGenerator methodGen)
translateUnBox
in class Type
public java.lang.String getClassName()
getClassName
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 |