public final class IndexBinaryMethod extends java.lang.Object implements IBinaryMethod
| Constructor and Description |
|---|
IndexBinaryMethod() |
| Modifier and Type | Method and Description |
|---|---|
static IndexBinaryMethod |
create() |
int |
getAnnotatedParametersCount()
Answer the number of parameter annotations that can be retrieved
using
IBinaryMethod.getParameterAnnotations(int, char[]). |
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 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[] |
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,
char[] classFileName)
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.
|
IBinaryTypeAnnotation[] |
getTypeAnnotations()
Answer the type annotations on this method.
|
boolean |
isClinit()
Answer whether the receiver represents a class initializer method.
|
boolean |
isConstructor() |
IndexBinaryMethod |
setAnnotations(IBinaryAnnotation[] annotations) |
IndexBinaryMethod |
setArgumentNames(char[][] argumentNames) |
IndexBinaryMethod |
setDefaultValue(java.lang.Object defaultValue) |
IndexBinaryMethod |
setExceptionTypeNames(char[][] exceptionTypeNames) |
IndexBinaryMethod |
setGenericSignature(char[] genericSignature) |
IndexBinaryMethod |
setIsClInit(boolean isClInit) |
IndexBinaryMethod |
setIsConstructor(boolean isConstructor) |
IndexBinaryMethod |
setMethodDescriptor(char[] methodDescriptor) |
IndexBinaryMethod |
setModifiers(int modifiers) |
IndexBinaryMethod |
setParameterAnnotations(IBinaryAnnotation[][] parameterAnnotations) |
IndexBinaryMethod |
setSelector(char[] selector) |
IndexBinaryMethod |
setTagBits(long tagBits) |
IndexBinaryMethod |
setTypeAnnotations(IBinaryTypeAnnotation[] typeAnnotations) |
java.lang.String |
toString() |
public static IndexBinaryMethod create()
public IndexBinaryMethod setModifiers(int modifiers)
public IndexBinaryMethod setIsConstructor(boolean isConstructor)
public IndexBinaryMethod setArgumentNames(char[][] argumentNames)
public IndexBinaryMethod setAnnotations(IBinaryAnnotation[] annotations)
public IndexBinaryMethod setDefaultValue(java.lang.Object defaultValue)
public IndexBinaryMethod setExceptionTypeNames(char[][] exceptionTypeNames)
public IndexBinaryMethod setGenericSignature(char[] genericSignature)
public IndexBinaryMethod setMethodDescriptor(char[] methodDescriptor)
public IndexBinaryMethod setParameterAnnotations(IBinaryAnnotation[][] parameterAnnotations)
public IndexBinaryMethod setSelector(char[] selector)
public IndexBinaryMethod setTagBits(long tagBits)
public IndexBinaryMethod setIsClInit(boolean isClInit)
public IndexBinaryMethod setTypeAnnotations(IBinaryTypeAnnotation[] typeAnnotations)
public int getModifiers()
IGenericMethodgetModifiers in interface IGenericMethodpublic boolean isConstructor()
isConstructor in interface IGenericMethodpublic char[][] getArgumentNames()
IGenericMethodgetArgumentNames in interface IGenericMethodpublic IBinaryAnnotation[] getAnnotations()
IBinaryMethodgetAnnotations in interface IBinaryMethodpublic java.lang.Object getDefaultValue()
IBinaryMethodClassSignature 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.getDefaultValue in interface IBinaryMethodpublic char[][] getExceptionTypeNames()
IBinaryMethodgetExceptionTypeNames in interface IBinaryMethodpublic char[] getGenericSignature()
IBinaryMethodgetGenericSignature in interface IBinaryMethodpublic char[] getMethodDescriptor()
IBinaryMethodgetMethodDescriptor in interface IBinaryMethodpublic IBinaryAnnotation[] getParameterAnnotations(int index, char[] classFileName)
IBinaryMethodindexth parameter or null if nonegetParameterAnnotations in interface IBinaryMethodindex - the index of the parameter of interestclassFileName - (file) name of the declaring class for error reportingpublic int getAnnotatedParametersCount()
IBinaryMethodIBinaryMethod.getParameterAnnotations(int, char[]).getAnnotatedParametersCount in interface IBinaryMethodIBinaryMethod.getParameterAnnotations(int, char[]).public char[] getSelector()
IBinaryMethodgetSelector in interface IBinaryMethodpublic long getTagBits()
IBinaryMethodgetTagBits in interface IBinaryMethodpublic boolean isClinit()
IBinaryMethodisClinit in interface IBinaryMethodpublic IBinaryTypeAnnotation[] getTypeAnnotations()
IBinaryMethodgetTypeAnnotations in interface IBinaryMethodpublic java.lang.String toString()
toString in class java.lang.Object