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
FieldsModifier and TypeFieldDescriptionstatic FieldOneToOne<NdMethodAnnotationData>static FieldIntstatic FieldOneToMany<NdVariable>static FieldOneToOne<NdConstant>static FieldList<NdMethodException>static bytestatic bytestatic FieldShortstatic FieldStringstatic FieldList<NdMethodParameter>static FieldManyToOne<NdTypeSignature>Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.nd.java.NdBinding
MODIFIERS, TYPE_PARAMETERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidallocateAnnotations(int length)voidallocateExceptions(int length)voidallocateParameters(int numParameters)voidallocateTypeAnnotations(int length)Creates theNdMethodAnnotationDatastruct for this method if it does not already exist.createException(NdTypeSignature createTypeSignature)intReturns the unique 0-based position of the method within the class it was declared in.intgetFlags()voidgetGenericSignature(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[]longbooleanhasAllFlags(int flags)booleanisClInit()booleanvoidsetDeclarationPosition(int position)voidsetDefaultValue(NdConstant value)voidsetFlags(int flags)voidsetMethodName(char[] selectorAndDescriptor)voidsetReturnType(NdTypeSignature createTypeSignature)voidsetTagBits(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, setModifiersMethods 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 theNdMethodAnnotationDatastruct 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()
-