Class MethodInternal

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

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

  • Constructor Details

    • MethodInternal

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

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

      MethodInternal(byte[] name, byte[][] parameterNames, Type[] parameters, 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
    • name

      final String name()
    • parameterName

      final String parameterName(int i)
    • nameBytes

      final byte[] nameBytes()
    • parameterNamesBytes

      final byte[][] parameterNamesBytes()
    • copyParameters

      final Type[] copyParameters()
    • parameterArray

      final Type[] parameterArray()
    • copyExceptions

      final Type[] copyExceptions()
    • parameters

      final List<Type> parameters()
    • 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)
    • setParameters

      void setParameters(Type[] parameters)
    • 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)