org.apache.xalan.xsltc.compiler.util
Class ReferenceType
java.lang.Object
|
+--org.apache.xalan.xsltc.compiler.util.Type
|
+--org.apache.xalan.xsltc.compiler.util.ReferenceType
- public final class ReferenceType
- extends Type
Fields inherited from class org.apache.xalan.xsltc.compiler.util.Type |
Attribute,
Boolean,
Comment,
Element,
Int,
Node,
NodeSet,
Processing_Instruction,
Real,
Reference,
ResultTree,
Root,
String,
Text,
Void |
Method Summary |
boolean |
identicalTo(Type other)
|
org.apache.xalan.xsltc.compiler.util.Instruction |
LOAD(int slot)
|
org.apache.xalan.xsltc.compiler.util.Instruction |
STORE(int slot)
|
de.fub.bytecode.generic.Type |
toJCType()
|
java.lang.String |
toSignature()
|
java.lang.String |
toString()
|
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
BooleanType type)
Translates a reference to an object of internal type type . |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
NodeSetType type)
Casts a reference into a NodeIterator. |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
RealType type)
Translates a reference into an object of internal type type . |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
StringType type)
Translates reference into object of internal type type . |
void |
translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
Type type)
Translates a reference to an object of internal type type . |
FlowList |
translateToDesynthesized(ClassGenerator classGen,
MethodGenerator methodGen,
BooleanType type)
Expects a reference on the stack and translates it to a non-synthesized
boolean. |
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,
POP,
REM,
SUB,
translateBox,
translateFrom,
translateTo,
translateToDesynthesized,
translateUnBox |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
toString
public java.lang.String toString()
- Overrides:
- toString in class Type
identicalTo
public boolean identicalTo(Type other)
- Overrides:
- identicalTo in class Type
toSignature
public java.lang.String toSignature()
- Overrides:
- toSignature in class Type
toJCType
public de.fub.bytecode.generic.Type toJCType()
- Overrides:
- toJCType in class Type
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.
- Overrides:
- translateTo in class Type
- See Also:
Type.translateTo(org.apache.xalan.xsltc.compiler.util.ClassGenerator, org.apache.xalan.xsltc.compiler.util.MethodGenerator, org.apache.xalan.xsltc.compiler.util.Type)
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
StringType type)
- Translates reference into object of internal type
type
.
- See Also:
Type.translateTo(org.apache.xalan.xsltc.compiler.util.ClassGenerator, org.apache.xalan.xsltc.compiler.util.MethodGenerator, org.apache.xalan.xsltc.compiler.util.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(org.apache.xalan.xsltc.compiler.util.ClassGenerator, org.apache.xalan.xsltc.compiler.util.MethodGenerator, org.apache.xalan.xsltc.compiler.util.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(org.apache.xalan.xsltc.compiler.util.ClassGenerator, org.apache.xalan.xsltc.compiler.util.MethodGenerator, org.apache.xalan.xsltc.compiler.util.Type)
translateTo
public void translateTo(ClassGenerator classGen,
MethodGenerator methodGen,
NodeSetType type)
- Casts a reference into a NodeIterator.
- See Also:
Type.translateTo(org.apache.xalan.xsltc.compiler.util.ClassGenerator, org.apache.xalan.xsltc.compiler.util.MethodGenerator, org.apache.xalan.xsltc.compiler.util.Type)
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.
- Overrides:
- translateToDesynthesized in class Type
- See Also:
Type.translateToDesynthesized(org.apache.xalan.xsltc.compiler.util.ClassGenerator, org.apache.xalan.xsltc.compiler.util.MethodGenerator, org.apache.xalan.xsltc.compiler.util.Type)
LOAD
public org.apache.xalan.xsltc.compiler.util.Instruction LOAD(int slot)
- Overrides:
- LOAD in class Type
STORE
public org.apache.xalan.xsltc.compiler.util.Instruction STORE(int slot)
- Overrides:
- STORE in class Type
Copyright © 2000 Apache XML Project. All Rights Reserved.