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,IElementInfo,IGenericMethod,ISourceMethod
- Direct Known Subclasses:
SourceConstructorInfo,SourceMethodInfo
Element info for IMethod elements.
-
Field Summary
FieldsModifier 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 intThe modifiers associated with this member.protected booleanprotected intprotected intprotected ITypeParameter[]Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.AnnotatableInfo
annotations, nameEnd, nameStart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchar[][]Answer the names of the argument or null if the argument names are not available.intintchar[][]Answer the unresolved names of the exception types or null if the array is empty.intabstract char[]Answer the unresolved name of the return type or null if receiver is a constructor or clinit.protected ISourceRangechar[][][]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 booleanbooleanabstract booleanprotected voidsetArgumentNames(char[][] names) protected voidsetExceptionTypeNames(char[][] types) protected voidsetFlags(int flags) protected abstract voidsetReturnType(char[] type) protected voidsetSourceRangeEnd(int end) protected voidsetSourceRangeStart(int start) Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.AnnotatableInfo
getNameRange, getNameSourceEnd, getNameSourceStart, setNameSourceEnd, setNameSourceStartMethods inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaElementInfo
clone, getChildrenMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IGenericMethod
getModifiersMethods 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:
-
sourceRangeStart
protected int sourceRangeStart -
sourceRangeEnd
protected int sourceRangeEnd
-
-
Constructor Details
-
SourceMethodElementInfo
public SourceMethodElementInfo()
-
-
Method Details
-
getArgumentNames
public char[][] getArgumentNames()Description copied from interface:IGenericMethodAnswer the names of the argument or null if the argument names are not available.- Specified by:
getArgumentNamesin interfaceIGenericMethod
-
getExceptionTypeNames
public char[][] getExceptionTypeNames()Description copied from interface:ISourceMethodAnswer 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:
getExceptionTypeNamesin interfaceISourceMethod
-
getReturnTypeName
public abstract char[] getReturnTypeName()Description copied from interface:ISourceMethodAnswer 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:
getReturnTypeNamein interfaceISourceMethod
-
getTypeParameterBounds
public char[][][] getTypeParameterBounds()Description copied from interface:ISourceMethodAnswer the array of bound names of the receiver's type parameters or null if the array is empty.- Specified by:
getTypeParameterBoundsin interfaceISourceMethod
-
getTypeParameterNames
public char[][] getTypeParameterNames()Description copied from interface:ISourceMethodAnswer the names of the receiver's type parameters or null if the array is empty.- Specified by:
getTypeParameterNamesin interfaceISourceMethod
-
isConstructor
public abstract boolean isConstructor()- Specified by:
isConstructorin 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) -
getExtendedChildren
- Overrides:
getExtendedChildrenin classJavaElementInfo
-
getModifiers
public int getModifiers()- See Also:
-
setFlags
protected void setFlags(int flags) -
getDeclarationSourceEnd
public int getDeclarationSourceEnd()- See Also:
-
getDeclarationSourceStart
public int getDeclarationSourceStart()- See Also:
-
getSourceRange
-
setSourceRangeEnd
protected void setSourceRangeEnd(int end) -
setSourceRangeStart
protected void setSourceRangeStart(int start)
-