public class NdMethod extends NdBinding
| Modifier and Type | Field and Description |
|---|---|
static FieldOneToOne<NdMethodAnnotationData> |
ANNOTATION_DATA |
static FieldInt |
DECLARATION_POSITION |
static FieldOneToMany<NdVariable> |
DECLARED_VARIABLES |
static FieldOneToOne<NdConstant> |
DEFAULT_VALUE |
static FieldList<NdMethodException> |
EXCEPTIONS |
static byte |
FLG_GENERIC_SIGNATURE_PRESENT |
static byte |
FLG_THROWS_SIGNATURE_PRESENT |
static FieldShort |
METHOD_FLAGS |
static FieldString |
METHOD_NAME |
static FieldList<NdMethodParameter> |
PARAMETERS |
static FieldManyToOne<NdTypeSignature> |
RETURN_TYPE |
static StructDef<NdMethod> |
type |
MODIFIERS, TYPE_PARAMETERS| Modifier and Type | Method and Description |
|---|---|
void |
allocateAnnotations(int length) |
void |
allocateExceptions(int length) |
void |
allocateParameters(int numParameters) |
void |
allocateTypeAnnotations(int length) |
NdAnnotation |
createAnnotation() |
NdMethodAnnotationData |
createAnnotationData()
Creates the
NdMethodAnnotationData struct for this method if it does not already exist. |
NdMethodException |
createException(NdTypeSignature createTypeSignature) |
NdMethodParameter |
createNewParameter() |
NdTypeAnnotation |
createTypeAnnotation() |
java.util.List<NdAnnotation> |
getAnnotations() |
int |
getDeclarationPosition()
Returns the unique 0-based position of the method within the class it was
declared in.
|
NdConstant |
getDefaultValue() |
java.util.List<NdMethodException> |
getExceptions() |
int |
getFlags() |
void |
getGenericSignature(CharArrayBuffer result,
boolean includeExceptions) |
char[] |
getMethodDescriptor() |
IString |
getMethodName() |
java.util.List<NdMethodParameter> |
getMethodParameters() |
char[][] |
getParameterNames()
Returns method parameter names that were not defined by the compiler.
|
NdTypeSignature |
getReturnType()
Returns the return type for this method or null if the method returns void
|
char[] |
getSelector() |
long |
getTagBits() |
java.util.List<NdTypeAnnotation> |
getTypeAnnotations() |
boolean |
hasAllFlags(int flags) |
boolean |
isClInit() |
boolean |
isConstructor() |
void |
setDeclarationPosition(int position) |
void |
setDefaultValue(NdConstant value) |
void |
setFlags(int flags) |
void |
setMethodName(char[] selectorAndDescriptor) |
void |
setReturnType(NdTypeSignature createTypeSignature) |
void |
setTagBits(long bits) |
java.lang.String |
toString() |
allocateTypeParameters, createTypeParameter, getAdapter, getBindingConstant, getModifiers, getTypeParameters, getTypeParameterSignatures, hasModifier, setModifiersdelete, destruct, equals, getAddress, getBindingID, getBit, getByte, getNodeId, getNodeType, hashCode, load, loadpublic static final FieldString METHOD_NAME
public static final FieldShort METHOD_FLAGS
public static final FieldOneToMany<NdVariable> DECLARED_VARIABLES
public static final FieldList<NdMethodParameter> PARAMETERS
public static final FieldOneToOne<NdConstant> DEFAULT_VALUE
public static final FieldList<NdMethodException> EXCEPTIONS
public static final FieldManyToOne<NdTypeSignature> RETURN_TYPE
public static final FieldOneToOne<NdMethodAnnotationData> ANNOTATION_DATA
public static final FieldInt DECLARATION_POSITION
public static final byte FLG_GENERIC_SIGNATURE_PRESENT
public static final byte FLG_THROWS_SIGNATURE_PRESENT
public NdMethod(Nd nd, long address)
public NdMethodParameter createNewParameter()
public void allocateParameters(int numParameters)
public IString getMethodName()
public void setMethodName(char[] selectorAndDescriptor)
public char[][] getParameterNames()
public java.util.List<NdMethodParameter> getMethodParameters()
public java.util.List<NdAnnotation> getAnnotations()
public void setDefaultValue(NdConstant value)
public NdConstant getDefaultValue()
public void setReturnType(NdTypeSignature createTypeSignature)
public java.util.List<NdTypeAnnotation> getTypeAnnotations()
public java.util.List<NdMethodException> getExceptions()
public NdTypeSignature getReturnType()
public int getFlags()
public boolean hasAllFlags(int flags)
public void setFlags(int flags)
public void setTagBits(long bits)
public long getTagBits()
public java.lang.String toString()
toString in class java.lang.Objectpublic char[] getSelector()
public boolean isConstructor()
public boolean isClInit()
public void getGenericSignature(CharArrayBuffer result, boolean includeExceptions)
public NdMethodAnnotationData createAnnotationData()
NdMethodAnnotationData struct for this method if it does not already exist. Returns
the existing or newly-created struct.public NdMethodException createException(NdTypeSignature createTypeSignature)
public void allocateExceptions(int length)
public NdAnnotation createAnnotation()
public NdTypeAnnotation createTypeAnnotation()
public void allocateAnnotations(int length)
public void allocateTypeAnnotations(int length)
public void setDeclarationPosition(int position)
public int getDeclarationPosition()
public char[] getMethodDescriptor()