org.eclipse.jdt.internal.eval
Class CodeSnippetSkeleton.BinaryMethodSkeleton

java.lang.Object
  extended by org.eclipse.jdt.internal.eval.CodeSnippetSkeleton.BinaryMethodSkeleton
All Implemented Interfaces:
IBinaryMethod, IGenericMethod
Enclosing class:
CodeSnippetSkeleton

public static class CodeSnippetSkeleton.BinaryMethodSkeleton
extends java.lang.Object
implements IBinaryMethod


Constructor Summary
CodeSnippetSkeleton.BinaryMethodSkeleton(char[] selector, char[] methodDescriptor, char[][] exceptionTypeNames, boolean isConstructor)
           
 
Method Summary
 IBinaryAnnotation[] getAnnotations()
          Answer the runtime visible and invisible annotations for this method or null if none.
 char[][] getArgumentNames()
          Answer the names of the argument or null if the argument names are not available.
 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.
 int getModifiers()
          Answer an int whose bits are set according the access constants defined by the 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.
 boolean isConstructor()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeSnippetSkeleton.BinaryMethodSkeleton

public CodeSnippetSkeleton.BinaryMethodSkeleton(char[] selector,
                                                char[] methodDescriptor,
                                                char[][] exceptionTypeNames,
                                                boolean isConstructor)
Method Detail

getAnnotations

public IBinaryAnnotation[] getAnnotations()
Description copied from interface: IBinaryMethod
Answer the runtime visible and invisible annotations for this method or null if none.

Specified by:
getAnnotations in interface IBinaryMethod

getArgumentNames

public char[][] getArgumentNames()
Description copied from interface: IGenericMethod
Answer the names of the argument or null if the argument names are not available.

Specified by:
getArgumentNames in interface IGenericMethod

getDefaultValue

public java.lang.Object getDefaultValue()
Description copied from interface: IBinaryMethod
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.

Specified by:
getDefaultValue in interface IBinaryMethod
Returns:
default value of this annotation method

getExceptionTypeNames

public char[][] getExceptionTypeNames()
Description copied from interface: IBinaryMethod
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.

Specified by:
getExceptionTypeNames in interface IBinaryMethod

getGenericSignature

public char[] getGenericSignature()
Description copied from interface: IBinaryMethod
Answer the receiver's signature which describes the parameter & return types as specified in section 4.4.4 of the Java 2 VM spec.

Specified by:
getGenericSignature in interface IBinaryMethod

getMethodDescriptor

public char[] getMethodDescriptor()
Description copied from interface: IBinaryMethod
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;

Specified by:
getMethodDescriptor in interface IBinaryMethod

getModifiers

public int getModifiers()
Description copied from interface: IGenericMethod
Answer an int whose bits are set according the access constants defined by the VM spec.

Specified by:
getModifiers in interface IGenericMethod

getParameterAnnotations

public IBinaryAnnotation[] getParameterAnnotations(int index)
Description copied from interface: IBinaryMethod
Answer the annotations on the indexth parameter or null if none

Specified by:
getParameterAnnotations in interface IBinaryMethod
Parameters:
index - the index of the parameter of interest

getSelector

public char[] getSelector()
Description copied from interface: IBinaryMethod
Answer the name of the method. For a constructor, answer & for a clinit method.

Specified by:
getSelector in interface IBinaryMethod

getTagBits

public long getTagBits()
Description copied from interface: IBinaryMethod
Answer the tagbits set according to the bits for annotations.

Specified by:
getTagBits in interface IBinaryMethod

isClinit

public boolean isClinit()
Description copied from interface: IBinaryMethod
Answer whether the receiver represents a class initializer method.

Specified by:
isClinit in interface IBinaryMethod

isConstructor

public boolean isConstructor()
Specified by:
isConstructor in interface IGenericMethod