Interface IBinaryMethod

All Superinterfaces:
IGenericMethod
All Known Implementing Classes:
AnnotationMethodInfo, AnnotationMethodInfoWithAnnotations, CodeSnippetSkeleton.BinaryMethodSkeleton, IndexBinaryMethod, MethodInfo, MethodInfoWithAnnotations

public interface IBinaryMethod extends IGenericMethod
  • Method Details

    • getAnnotations

      IBinaryAnnotation[] getAnnotations()
      Answer the runtime visible and invisible annotations for this method or null if none.
    • getDefaultValue

      Object getDefaultValue()
      Return ClassSignature for a Class Class. Return Constant for compile-time constant of primitive type, as well as String literals. Return EnumConstantSignature if value is an enum constant. Return IBinaryAnnotation for annotation type. Return Object[] for array type.
      Returns:
      default value of this annotation method
    • getExceptionTypeNames

      char[][] getExceptionTypeNames()
      Answer the resolved names of the exception types in the class file format as specified in section 4.2 of the Java 2 VM spec or null if the array is empty. For example, java.lang.String is java/lang/String.
    • getGenericSignature

      char[] getGenericSignature()
      Answer the receiver's MethodSignature, which describes the type parameters, parameter types, return type, and exception types as specified in "4.7.9.1 Signatures" of the Java SE 8 VM spec.
    • getMethodDescriptor

      char[] getMethodDescriptor()
      Answer the receiver's method descriptor which describes the parameter & return types as specified in section 4.4.3 of the Java 2 VM spec. For example: - int foo(String) is (Ljava/lang/String;)I - Object[] foo(int) is (I)[Ljava/lang/Object;
    • getParameterAnnotations

      IBinaryAnnotation[] getParameterAnnotations(int index, char[] classFileName)
      Answer the annotations on the indexth parameter or null if none
      Parameters:
      index - the index of the parameter of interest
      classFileName - (file) name of the declaring class for error reporting
    • getAnnotatedParametersCount

      int getAnnotatedParametersCount()
      Answer the number of parameter annotations that can be retrieved using getParameterAnnotations(int, char[]).
      Returns:
      one beyond the highest legal argument to getParameterAnnotations(int, char[]).
    • getSelector

      char[] getSelector()
      Answer the name of the method. For a constructor, answer & for a clinit method.
    • getTagBits

      long getTagBits()
      Answer the tagbits set according to the bits for annotations.
    • isClinit

      boolean isClinit()
      Answer whether the receiver represents a class initializer method.
    • getTypeAnnotations

      IBinaryTypeAnnotation[] getTypeAnnotations()
      Answer the type annotations on this method.