Class NdMethod
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.nd.NdStruct
org.aspectj.org.eclipse.jdt.internal.core.nd.NdNode
org.aspectj.org.eclipse.jdt.internal.core.nd.java.NdBinding
org.aspectj.org.eclipse.jdt.internal.core.nd.java.NdMethod
- All Implemented Interfaces:
IDestructable
,INdStruct
,org.eclipse.core.runtime.IAdaptable
-
Field Summary
Modifier and TypeFieldDescriptionstatic FieldOneToOne<NdMethodAnnotationData>
static FieldInt
static FieldOneToMany<NdVariable>
static FieldOneToOne<NdConstant>
static FieldList<NdMethodException>
static byte
static byte
static FieldShort
static FieldString
static FieldList<NdMethodParameter>
static FieldManyToOne<NdTypeSignature>
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.nd.java.NdBinding
MODIFIERS, TYPE_PARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
allocateAnnotations(int length)
void
allocateExceptions(int length)
void
allocateParameters(int numParameters)
void
allocateTypeAnnotations(int length)
Creates theNdMethodAnnotationData
struct for this method if it does not already exist.createException(NdTypeSignature createTypeSignature)
int
Returns the unique 0-based position of the method within the class it was declared in.int
getFlags()
void
getGenericSignature(CharArrayBuffer result, boolean includeExceptions)
char[]
char[][]
Returns method parameter names that were not defined by the compiler.Returns the return type for this method or null if the method returns voidchar[]
long
boolean
hasAllFlags(int flags)
boolean
isClInit()
boolean
void
setDeclarationPosition(int position)
void
setDefaultValue(NdConstant value)
void
setFlags(int flags)
void
setMethodName(char[] selectorAndDescriptor)
void
setReturnType(NdTypeSignature createTypeSignature)
void
setTagBits(long bits)
toString()
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.nd.java.NdBinding
allocateTypeParameters, createTypeParameter, getAdapter, getBindingConstant, getModifiers, getTypeParameters, getTypeParameterSignatures, hasModifier, setModifiers
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.nd.NdNode
delete, destruct, equals, getAddress, getBindingID, getBit, getByte, getNodeId, getNodeType, hashCode, load, load
-
Field Details
-
METHOD_NAME
-
METHOD_FLAGS
-
DECLARED_VARIABLES
-
PARAMETERS
-
DEFAULT_VALUE
-
EXCEPTIONS
-
RETURN_TYPE
-
ANNOTATION_DATA
-
DECLARATION_POSITION
-
type
-
FLG_GENERIC_SIGNATURE_PRESENT
public static final byte FLG_GENERIC_SIGNATURE_PRESENT- See Also:
- Constant Field Values
-
FLG_THROWS_SIGNATURE_PRESENT
public static final byte FLG_THROWS_SIGNATURE_PRESENT- See Also:
- Constant Field Values
-
-
Constructor Details
-
NdMethod
-
-
Method Details
-
createNewParameter
-
allocateParameters
public void allocateParameters(int numParameters) -
getMethodName
-
setMethodName
public void setMethodName(char[] selectorAndDescriptor) -
getParameterNames
public char[][] getParameterNames()Returns method parameter names that were not defined by the compiler. -
getMethodParameters
-
getAnnotations
-
setDefaultValue
-
getDefaultValue
-
setReturnType
-
getTypeAnnotations
-
getExceptions
-
getReturnType
Returns the return type for this method or null if the method returns void -
getFlags
public int getFlags() -
hasAllFlags
public boolean hasAllFlags(int flags) -
setFlags
public void setFlags(int flags) -
setTagBits
public void setTagBits(long bits) -
getTagBits
public long getTagBits() -
toString
-
getSelector
public char[] getSelector() -
isConstructor
public boolean isConstructor() -
isClInit
public boolean isClInit() -
getGenericSignature
-
createAnnotationData
Creates theNdMethodAnnotationData
struct for this method if it does not already exist. Returns the existing or newly-created struct. -
createException
-
allocateExceptions
public void allocateExceptions(int length) -
createAnnotation
-
createTypeAnnotation
-
allocateAnnotations
public void allocateAnnotations(int length) -
allocateTypeAnnotations
public void allocateTypeAnnotations(int length) -
setDeclarationPosition
public void setDeclarationPosition(int position) -
getDeclarationPosition
public int getDeclarationPosition()Returns the unique 0-based position of the method within the class it was declared in. -
getMethodDescriptor
public char[] getMethodDescriptor()
-