org.apache.xalan.xsltc.compiler.util
Class VoidType
java.lang.Object
|
+--org.apache.xalan.xsltc.compiler.util.Type
|
+--org.apache.xalan.xsltc.compiler.util.VoidType
- public final class VoidType
- extends 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 |
Methods inherited from class org.apache.xalan.xsltc.compiler.util.Type |
ADD,
CMP,
distanceTo,
DIV,
DUP,
GE,
getClassName,
GT,
implementedAsMethod,
isNumber,
isSimple,
LE,
LOAD,
LT,
MUL,
NEG,
newObjectType,
newObjectType,
REM,
STORE,
SUB,
translateBox,
translateTo,
translateToDesynthesized,
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 org.apache.bcel.generic.Type toJCType()
- Overrides:
- toJCType in class Type
POP
public org.apache.bcel.generic.Instruction POP()
- Overrides:
- POP in class 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.
- 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 a void into a string by pushing the empty string ''.
- 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)
translateFrom
public void translateFrom(ClassGenerator classGen,
MethodGenerator methodGen,
java.lang.Class clazz)
- Translates an external (primitive) Java type into a void.
Only an external "void" can be converted to this class.
- Overrides:
- translateFrom in class Type
Copyright © 2006 Apache XML Project. All Rights Reserved.