Class MethodType

  • All Implemented Interfaces:
    org.apache.bcel.generic.InstructionConstants, Constants

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

      • 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,
                          java.util.Vector argsType)
    • Method Detail

      • toString

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

        public java.lang.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 java.lang.String toSignature​(java.lang.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 java.util.Vector argsType()
      • argsCount

        public int argsCount()