Class SourceMethodElementInfo
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.JavaElementInfo
org.aspectj.org.eclipse.jdt.internal.core.AnnotatableInfo
org.aspectj.org.eclipse.jdt.internal.core.SourceMethodElementInfo
- All Implemented Interfaces:
Cloneable
,IGenericMethod
,ISourceMethod
- Direct Known Subclasses:
SourceConstructorInfo
,SourceMethodInfo
Element info for IMethod elements.
-
Field Summary
Modifier and TypeFieldDescriptionprotected char[][]
For a source method (that is, a method contained in a compilation unit) this is a collection of the names of the parameters for this method, in the order the parameters are delcared.protected ILocalVariable[]
protected char[][]
A collection of type names of the exceptions this method throws, or an empty collection if this method does not declare to throw any exceptions.protected int
The modifiers associated with this member.protected boolean
protected int
protected int
protected ITypeParameter[]
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.AnnotatableInfo
annotations, nameEnd, nameStart
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchar[][]
Answer the names of the argument or null if the argument names are not available.int
int
char[][]
Answer the unresolved names of the exception types or null if the array is empty.int
abstract char[]
Answer the unresolved name of the return type or null if receiver is a constructor or clinit.protected ISourceRange
char[][][]
Answer the array of bound names of the receiver's type parameters or null if the array is empty.char[][]
Answer the names of the receiver's type parameters or null if the array is empty.abstract boolean
boolean
abstract boolean
protected void
setArgumentNames(char[][] names)
protected void
setExceptionTypeNames(char[][] types)
protected void
setFlags(int flags)
protected abstract void
setReturnType(char[] type)
protected void
setSourceRangeEnd(int end)
protected void
setSourceRangeStart(int start)
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.AnnotatableInfo
getNameRange, getNameSourceEnd, getNameSourceStart, setNameSourceEnd, setNameSourceStart
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaElementInfo
clone, getChildren
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IGenericMethod
getModifiers
Methods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.ISourceMethod
getDeclarationSourceEnd, getDeclarationSourceStart, getNameSourceEnd, getNameSourceStart
-
Field Details
-
argumentNames
protected char[][] argumentNamesFor a source method (that is, a method contained in a compilation unit) this is a collection of the names of the parameters for this method, in the order the parameters are delcared. For a binary method (that is, a method declared in a binary type), these names are invented as "arg"i where i starts at 1. This is an empty array if this method has no parameters. -
exceptionTypes
protected char[][] exceptionTypesA collection of type names of the exceptions this method throws, or an empty collection if this method does not declare to throw any exceptions. A name is a simple name or a qualified, dot separated name. For example, Hashtable or java.util.Hashtable. -
arguments
-
typeParameters
-
isCanonicalConstructor
protected boolean isCanonicalConstructor -
flags
protected int flagsThe modifiers associated with this member.- See Also:
ClassFileConstants
-
sourceRangeStart
protected int sourceRangeStart -
sourceRangeEnd
protected int sourceRangeEnd
-
-
Constructor Details
-
SourceMethodElementInfo
public SourceMethodElementInfo()
-
-
Method Details
-
getArgumentNames
public char[][] getArgumentNames()Description copied from interface:IGenericMethod
Answer the names of the argument or null if the argument names are not available.- Specified by:
getArgumentNames
in interfaceIGenericMethod
-
getExceptionTypeNames
public char[][] getExceptionTypeNames()Description copied from interface:ISourceMethod
Answer the unresolved names of the exception types or null if the array is empty. A name is a simple name or a qualified, dot separated name. For example, Hashtable or java.util.Hashtable.- Specified by:
getExceptionTypeNames
in interfaceISourceMethod
-
getReturnTypeName
public abstract char[] getReturnTypeName()Description copied from interface:ISourceMethod
Answer the unresolved name of the return type or null if receiver is a constructor or clinit. The name is a simple name or a qualified, dot separated name. For example, Hashtable or java.util.Hashtable.- Specified by:
getReturnTypeName
in interfaceISourceMethod
-
getTypeParameterBounds
public char[][][] getTypeParameterBounds()Description copied from interface:ISourceMethod
Answer the array of bound names of the receiver's type parameters or null if the array is empty.- Specified by:
getTypeParameterBounds
in interfaceISourceMethod
-
getTypeParameterNames
public char[][] getTypeParameterNames()Description copied from interface:ISourceMethod
Answer the names of the receiver's type parameters or null if the array is empty.- Specified by:
getTypeParameterNames
in interfaceISourceMethod
-
isConstructor
public abstract boolean isConstructor()- Specified by:
isConstructor
in interfaceIGenericMethod
-
isCanonicalConstructor
public boolean isCanonicalConstructor() -
isAnnotationMethod
public abstract boolean isAnnotationMethod() -
setArgumentNames
protected void setArgumentNames(char[][] names) -
setExceptionTypeNames
protected void setExceptionTypeNames(char[][] types) -
setReturnType
protected abstract void setReturnType(char[] type) -
getModifiers
public int getModifiers() -
setFlags
protected void setFlags(int flags) -
getDeclarationSourceEnd
public int getDeclarationSourceEnd() -
getDeclarationSourceStart
public int getDeclarationSourceStart() -
getSourceRange
-
setSourceRangeEnd
protected void setSourceRangeEnd(int end) -
setSourceRangeStart
protected void setSourceRangeStart(int start)
-