APIdia Launch Partner
Top Fields Constructors Methods
com.sun.org.apache.xalan.internal.xsltc.compiler.util

public final Class VoidType

extends Type
Class Inheritance
Imports
com.sun.org.apache.bcel.internal.generic.Instruction, .InstructionList, .PUSH, com.sun.org.apache.xalan.internal.xsltc.compiler.Constants

Authors
Jacek Ambroziak, Santiago Pericas-Geertsen

Field Summary

Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type:
AttributeBooleanCommentElementIntNodeNodeSetObjectObjectStringProcessing_InstructionRealReferenceResultTreeRootStringTextVoid

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public boolean
identicalTo(Type other)

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.identicalTo.

Returns true if this and other are identical types.

public Instruction
public Type
public String
toSignature()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.toSignature.

Returns the signature of an internal type's external representation.

public String
toString()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.toString.

Returns a string representation of this type.

public void
translateFrom(ClassGenerator classGen, MethodGenerator methodGen, Class<?> clazz)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateFrom.

Translates an external (primitive) Java type into a void.

public void
translateTo(ClassGenerator classGen, MethodGenerator methodGen, Type type)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo.

Translates a void into an object of internal type type.

public void
translateTo(ClassGenerator classGen, MethodGenerator methodGen, StringType type)

Translates a void into a string by pushing the empty string ''.

Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type:
ADDCMPdistanceToDIVDUPGEgetClassNameGTimplementedAsMethodisNumberisSimpleLELOADLTMULNEGnewObjectTypenewObjectTypeREMSTORESUBtranslateBoxtranslateTotranslateToDesynthesizedtranslateToDesynthesizedtranslateUnBox

Constructor Detail

VoidTypeback to summary
protected VoidType()

Method Detail

identicalToback to summary
public boolean identicalTo(Type other)

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.identicalTo.

Doc from com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.identicalTo.

Returns true if this and other are identical types.

POPback to summary
public Instruction POP()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.POP.

toJCTypeback to summary
public Type toJCType()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.toJCType.

toSignatureback to summary
public String toSignature()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.toSignature.

Doc from com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.toSignature.

Returns the signature of an internal type's external representation.

toStringback to summary
public String toString()

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.toString.

Doc from com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.toString.

Returns a string representation of this type.

translateFromback to summary
public void translateFrom(ClassGenerator classGen, MethodGenerator methodGen, Class<?> clazz)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateFrom.

Translates an external (primitive) Java type into a void. Only an external "void" can be converted to this class.

translateToback to summary
public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, Type type)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo.

Translates a void into an object of internal type type. This translation is needed when calling external functions that return void.

See Also
com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type#translateTo
translateToback to summary
public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, StringType type)

Translates a void into a string by pushing the empty string ''.

See Also
com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type#translateTo