org.eclipse.jdt.internal.compiler.env
Interface IBinaryMethod

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

public interface IBinaryMethod
extends IGenericMethod


Method Summary
 IBinaryAnnotation[] getAnnotations()
          Answer the runtime visible and invisible annotations for this method or null if none.
 java.lang.Object getDefaultValue()
          Return ClassSignature for a Class Class.
 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.
 char[] getGenericSignature()
          Answer the receiver's signature which describes the parameter & return types as specified in section 4.4.4 of the Java 2 VM spec.
 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.
 IBinaryAnnotation[] getParameterAnnotations(int index)
          Answer the annotations on the indexth parameter or null if none
 char[] getSelector()
          Answer the name of the method.
 long getTagBits()
          Answer the tagbits set according to the bits for annotations.
 boolean isClinit()
          Answer whether the receiver represents a class initializer method.
 
Methods inherited from interface org.eclipse.jdt.internal.compiler.env.IGenericMethod
getArgumentNames, getModifiers, isConstructor
 

Method Detail

getAnnotations

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


getDefaultValue

java.lang.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 signature which describes the parameter & return types as specified in section 4.4.4 of the Java 2 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)
Answer the annotations on the indexth parameter or null if none

Parameters:
index - the index of the parameter of interest

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.