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

public final Class MethodType

extends Type
Class Inheritance
Imports
java.util.ArrayList, .List

Authors
Jacek Ambroziak, Santiago Pericas-Geertsen

Field Summary

Modifier and TypeField and Description
private final List<Type>
private final Type
Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type:
AttributeBooleanCommentElementIntNodeNodeSetObjectObjectStringProcessing_InstructionRealReferenceResultTreeRootStringTextVoid

Constructor Summary

AccessConstructor and Description
public
MethodType(Type resultType)

public
MethodType(Type resultType, Type arg1)

public
MethodType(Type resultType, Type arg1, Type arg2)

public
MethodType(Type resultType, Type arg1, Type arg2, Type arg3)

public
MethodType(Type resultType, List<Type> argsType)

Method Summary

Modifier and TypeMethod and Description
public int
public List<Type>
public int
distanceTo(Type other)

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

Returns the distance between two types.

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 Type
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
toSignature(String lastArgSig)

Returns the signature of this method that results by adding lastArgSig to the end of the argument list.

public String
toString()

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

Returns a string representation of this type.

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

Field Detail

_argsTypeback to summary
private final List<Type> _argsType
_resultTypeback to summary
private final Type _resultType

Constructor Detail

MethodTypeback to summary
public MethodType(Type resultType)
MethodTypeback to summary
public MethodType(Type resultType, Type arg1)
MethodTypeback to summary
public MethodType(Type resultType, Type arg1, Type arg2)
MethodTypeback to summary
public MethodType(Type resultType, Type arg1, Type arg2, Type arg3)
MethodTypeback to summary
public MethodType(Type resultType, List<Type> argsType)

Method Detail

argsCountback to summary
public int argsCount()
argsTypeback to summary
public List<Type> argsType()
distanceToback to summary
public int distanceTo(Type other)

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

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

Returns the distance between two types. This measure is used to select overloaded functions/operators. This method is typically redefined by the subclasses.

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.

resultTypeback to summary
public Type resultType()
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.

toSignatureback to summary
public String toSignature(String lastArgSig)

Returns the signature of this method that results by adding lastArgSig to the end of the argument list.

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.