Class IndexBinaryMethod
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.nd.java.model.IndexBinaryMethod
- All Implemented Interfaces:
IBinaryMethod,IGenericMethod
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexBinaryMethodcreate()intAnswer the number of parameter annotations that can be retrieved usingIBinaryMethod.getParameterAnnotations(int, char[]).Answer the runtime visible and invisible annotations for this method or null if none.char[][]Answer the names of the argument or null if the argument names are not available.ReturnClassSignaturefor a ClassClass.char[][]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[]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.char[]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.intAnswer an int whose bits are set according the access constants defined by the VM spec.getParameterAnnotations(int index, char[] classFileName)Answer the annotations on theindexth parameter or null if nonechar[]Answer the name of the method.longAnswer the tagbits set according to the bits for annotations.Answer the type annotations on this method.booleanisClinit()Answer whether the receiver represents a class initializer method.booleansetAnnotations(IBinaryAnnotation[] annotations)setArgumentNames(char[][] argumentNames)setDefaultValue(Object defaultValue)setExceptionTypeNames(char[][] exceptionTypeNames)setGenericSignature(char[] genericSignature)setIsClInit(boolean isClInit)setIsConstructor(boolean isConstructor)setMethodDescriptor(char[] methodDescriptor)setModifiers(int modifiers)setParameterAnnotations(IBinaryAnnotation[][] parameterAnnotations)setSelector(char[] selector)setTagBits(long tagBits)setTypeAnnotations(IBinaryTypeAnnotation[] typeAnnotations)toString()
-
Constructor Details
-
IndexBinaryMethod
public IndexBinaryMethod()
-
-
Method Details
-
create
-
setModifiers
-
setIsConstructor
-
setArgumentNames
-
setAnnotations
-
setDefaultValue
-
setExceptionTypeNames
-
setGenericSignature
-
setMethodDescriptor
-
setParameterAnnotations
-
setSelector
-
setTagBits
-
setIsClInit
-
setTypeAnnotations
-
getModifiers
public int getModifiers()Description copied from interface:IGenericMethodAnswer an int whose bits are set according the access constants defined by the VM spec.- Specified by:
getModifiersin interfaceIGenericMethod
-
isConstructor
public boolean isConstructor()- Specified by:
isConstructorin interfaceIGenericMethod
-
getArgumentNames
public char[][] getArgumentNames()Description copied from interface:IGenericMethodAnswer the names of the argument or null if the argument names are not available.- Specified by:
getArgumentNamesin interfaceIGenericMethod
-
getAnnotations
Description copied from interface:IBinaryMethodAnswer the runtime visible and invisible annotations for this method or null if none.- Specified by:
getAnnotationsin interfaceIBinaryMethod
-
getDefaultValue
Description copied from interface:IBinaryMethodReturnClassSignaturefor a ClassClass. ReturnConstantfor compile-time constant of primitive type, as well as String literals. ReturnEnumConstantSignatureif value is an enum constant. ReturnIBinaryAnnotationfor annotation type. ReturnObject[] for array type.- Specified by:
getDefaultValuein interfaceIBinaryMethod- Returns:
- default value of this annotation method
-
getExceptionTypeNames
public char[][] getExceptionTypeNames()Description copied from interface:IBinaryMethodAnswer 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:
getExceptionTypeNamesin interfaceIBinaryMethod
-
getGenericSignature
public char[] getGenericSignature()Description copied from interface:IBinaryMethodAnswer 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.- Specified by:
getGenericSignaturein interfaceIBinaryMethod
-
getMethodDescriptor
public char[] getMethodDescriptor()Description copied from interface:IBinaryMethodAnswer 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:
getMethodDescriptorin interfaceIBinaryMethod
-
getParameterAnnotations
Description copied from interface:IBinaryMethodAnswer the annotations on theindexth parameter or null if none- Specified by:
getParameterAnnotationsin interfaceIBinaryMethod- Parameters:
index- the index of the parameter of interestclassFileName- (file) name of the declaring class for error reporting
-
getAnnotatedParametersCount
public int getAnnotatedParametersCount()Description copied from interface:IBinaryMethodAnswer the number of parameter annotations that can be retrieved usingIBinaryMethod.getParameterAnnotations(int, char[]).- Specified by:
getAnnotatedParametersCountin interfaceIBinaryMethod- Returns:
- one beyond the highest legal argument to
IBinaryMethod.getParameterAnnotations(int, char[]).
-
getSelector
public char[] getSelector()Description copied from interface:IBinaryMethodAnswer the name of the method. For a constructor, answer& for a clinit method. - Specified by:
getSelectorin interfaceIBinaryMethod
-
getTagBits
public long getTagBits()Description copied from interface:IBinaryMethodAnswer the tagbits set according to the bits for annotations.- Specified by:
getTagBitsin interfaceIBinaryMethod
-
isClinit
public boolean isClinit()Description copied from interface:IBinaryMethodAnswer whether the receiver represents a class initializer method.- Specified by:
isClinitin interfaceIBinaryMethod
-
getTypeAnnotations
Description copied from interface:IBinaryMethodAnswer the type annotations on this method.- Specified by:
getTypeAnnotationsin interfaceIBinaryMethod
-
toString
-