Class MethodType

java.lang.Object
org.apache.xalan.xsltc.compiler.util.Type
org.apache.xalan.xsltc.compiler.util.MethodType
All Implemented Interfaces:
org.apache.bcel.generic.InstructionConstants, Constants

public final class MethodType extends Type
Author:
Jacek Ambroziak, Santiago Pericas-Geertsen
  • Constructor Details

    • MethodType

      public MethodType(Type resultType)
    • MethodType

      public MethodType(Type resultType, Type arg1)
    • MethodType

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

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

      public MethodType(Type resultType, Vector argsType)
  • Method Details

    • toString

      public String toString()
      Description copied from class: Type
      Returns a string representation of this type.
      Specified by:
      toString in class Type
    • toSignature

      public String toSignature()
      Description copied from class: Type
      Returns the signature of an internal type's external representation.
      Specified by:
      toSignature in class Type
    • toSignature

      public String toSignature(String lastArgSig)
      Returns the signature of this method that results by adding lastArgSig to the end of the argument list.
    • toJCType

      public org.apache.bcel.generic.Type toJCType()
      Specified by:
      toJCType in class Type
    • identicalTo

      public boolean identicalTo(Type other)
      Description copied from class: Type
      Returns true if this and other are identical types.
      Specified by:
      identicalTo in class Type
    • distanceTo

      public int distanceTo(Type other)
      Description copied from class: Type
      Returns the distance between two types. This measure is used to select overloaded functions/operators. This method is typically redefined by the subclasses.
      Overrides:
      distanceTo in class Type
    • resultType

      public Type resultType()
    • argsType

      public Vector argsType()
    • argsCount

      public int argsCount()