Class MethodInternal

java.lang.Object
org.jboss.jandex.MethodInternal

final class MethodInternal extends Object
The shared internal representation for MethodInfo objects.
  • Field Details

    • EMPTY_ARRAY

      static final MethodInternal[] EMPTY_ARRAY
    • NAME_AND_PARAMETER_COMPONENT_COMPARATOR

      static final MethodInternal.NameAndParameterComponentComparator NAME_AND_PARAMETER_COMPONENT_COMPARATOR
    • EMPTY_PARAMETER_NAMES

      static final byte[][] EMPTY_PARAMETER_NAMES
    • name

      private byte[] name
    • parameterNames

      private byte[][] parameterNames
    • parameterTypes

      private Type[] parameterTypes
    • returnType

      private Type returnType
    • exceptions

      private Type[] exceptions
    • flags

      private short flags
    • extra

      private MethodInternal.ExtraInfo extra
    • descriptorParameterTypes

      private final Type[] descriptorParameterTypes
  • Constructor Details

    • MethodInternal

      MethodInternal(byte[] name, byte[][] parameterNames, Type[] parameterTypes, Type returnType, short flags)
    • MethodInternal

      MethodInternal(byte[] name, byte[][] parameterNames, Type[] parameterTypes, Type returnType, short flags, Type[] typeParameters, Type[] exceptions)
    • MethodInternal

      MethodInternal(byte[] name, byte[][] parameterNames, Type[] parameterTypes, Type returnType, short flags, Type receiverType, Type[] typeParameters, Type[] exceptions, AnnotationInstance[] annotations, AnnotationValue defaultValue)
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • internEquals

      boolean internEquals(Object o)
    • internHashCode

      int internHashCode()
    • name

      final String name()
    • parametersCount

      final int parametersCount()
    • parameterName

      final String parameterName(int i)
    • nameBytes

      final byte[] nameBytes()
    • parameterNamesBytes

      final byte[][] parameterNamesBytes()
    • copyParameterTypes

      final Type[] copyParameterTypes()
    • parameterTypesArray

      final Type[] parameterTypesArray()
    • copyExceptions

      final Type[] copyExceptions()
    • parameterTypes

      final List<Type> parameterTypes()
    • descriptorParameterTypes

      final List<Type> descriptorParameterTypes()
    • descriptorParameterTypesArray

      final Type[] descriptorParameterTypesArray()
    • returnType

      final Type returnType()
    • receiverType

      final Type receiverType(ClassInfo clazz)
    • receiverTypeField

      final Type receiverTypeField()
    • exceptions

      final List<Type> exceptions()
    • exceptionArray

      final Type[] exceptionArray()
    • typeParameters

      final List<TypeVariable> typeParameters()
    • annotations

      final List<AnnotationInstance> annotations()
    • annotationArray

      final AnnotationInstance[] annotationArray()
    • annotation

      final AnnotationInstance annotation(DotName name)
    • hasAnnotation

      final boolean hasAnnotation(DotName name)
    • typeParameterArray

      final Type[] typeParameterArray()
    • defaultValue

      final AnnotationValue defaultValue()
    • flags

      final short flags()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setTypeParameters

      void setTypeParameters(Type[] typeParameters)
    • setParameterNames

      void setParameterNames(byte[][] parameterNames)
    • setParameterTypes

      void setParameterTypes(Type[] parameterTypes)
    • setReturnType

      void setReturnType(Type returnType)
    • setExceptions

      void setExceptions(Type[] exceptions)
    • setReceiverType

      void setReceiverType(Type receiverType)
    • setAnnotations

      void setAnnotations(List<AnnotationInstance> annotations)
    • setDefaultValue

      void setDefaultValue(AnnotationValue defaultValue)