org.aspectj.org.eclipse.jdt.internal.core
Class SourceMethodElementInfo

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.SourceMethodElementInfo
All Implemented Interfaces:
IGenericMethod, ISourceMethod
Direct Known Subclasses:
SourceConstructorInfo, SourceMethodInfo

public abstract class SourceMethodElementInfo
extends java.lang.Object
implements ISourceMethod

Element info for IMethod elements.


Field Summary
protected  char[][] argumentNames
          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  IJavaElement[] children
          Collection of handles of immediate children of this object.
protected  char[][] exceptionTypes
          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 flags
          The modifiers associated with this member.
protected  int fSourceRangeEnd
           
protected  int fSourceRangeStart
           
protected  int nameEnd
          The last position of this member's name in the its openable's buffer.
protected  int nameStart
          The start position of this member's name in the its openable's buffer.
protected  ITypeParameter[] typeParameters
           
 
Constructor Summary
SourceMethodElementInfo()
           
 
Method Summary
 void addChild(IJavaElement child)
           
 java.lang.Object clone()
           
 char[][] getArgumentNames()
          Answer the names of the argument or null if the argument names are not available.
 IJavaElement[] getChildren()
           
 int getDeclarationSourceEnd()
           
 int getDeclarationSourceStart()
           
 char[][] getExceptionTypeNames()
          Answer the unresolved names of the exception types or null if the array is empty.
 int getModifiers()
           
 int getNameSourceEnd()
           
 int getNameSourceStart()
           
abstract  char[] getReturnTypeName()
          Answer the unresolved name of the return type or null if receiver is a constructor or clinit.
protected  ISourceRange getSourceRange()
           
 char[][][] getTypeParameterBounds()
          Answer the array of bound names of the receiver's type parameters or null if the array is empty.
 char[][] getTypeParameterNames()
          Answer the names of the receiver's type parameters or null if the array is empty.
abstract  boolean isAnnotationMethod()
           
abstract  boolean isConstructor()
           
 void removeChild(IJavaElement child)
           
protected  void setArgumentNames(char[][] names)
           
 void setChildren(IJavaElement[] children)
           
protected  void setExceptionTypeNames(char[][] types)
           
protected  void setFlags(int flags)
           
protected  void setNameSourceEnd(int end)
          Sets the last position of this member's name, relative to its openable's source buffer.
protected  void setNameSourceStart(int start)
          Sets the start position of this member's name, relative to its openable's source buffer.
protected abstract  void setReturnType(char[] type)
           
protected  void setSourceRangeEnd(int end)
           
protected  void setSourceRangeStart(int start)
           
 
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.ISourceMethod
getDeclarationSourceEnd, getDeclarationSourceStart, getNameSourceEnd, getNameSourceStart
 
Methods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IGenericMethod
getModifiers
 

Field Detail

argumentNames

protected char[][] argumentNames
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. 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[][] exceptionTypes
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. A name is a simple name or a qualified, dot separated name. For example, Hashtable or java.util.Hashtable.


typeParameters

protected ITypeParameter[] typeParameters

flags

protected int flags
The modifiers associated with this member.

See Also:
ClassFileConstants

nameStart

protected int nameStart
The start position of this member's name in the its openable's buffer.


nameEnd

protected int nameEnd
The last position of this member's name in the its openable's buffer.


fSourceRangeStart

protected int fSourceRangeStart

fSourceRangeEnd

protected int fSourceRangeEnd

children

protected IJavaElement[] children
Collection of handles of immediate children of this object. This is an empty array if this element has no children.

Constructor Detail

SourceMethodElementInfo

public SourceMethodElementInfo()
Method Detail

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 interface IGenericMethod

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 interface ISourceMethod

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 interface ISourceMethod

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 interface ISourceMethod

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 interface ISourceMethod

isConstructor

public abstract boolean isConstructor()
Specified by:
isConstructor in interface IGenericMethod

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()
See Also:
IGenericType.getModifiers(), IGenericMethod.getModifiers(), IGenericField.getModifiers()

getNameSourceEnd

public int getNameSourceEnd()
See Also:
ISourceType.getNameSourceEnd(), ISourceMethod.getNameSourceEnd(), ISourceField.getNameSourceEnd()

getNameSourceStart

public int getNameSourceStart()
See Also:
ISourceType.getNameSourceStart(), ISourceMethod.getNameSourceStart(), ISourceField.getNameSourceStart()

setFlags

protected void setFlags(int flags)

setNameSourceEnd

protected void setNameSourceEnd(int end)
Sets the last position of this member's name, relative to its openable's source buffer.


setNameSourceStart

protected void setNameSourceStart(int start)
Sets the start position of this member's name, relative to its openable's source buffer.


getDeclarationSourceEnd

public int getDeclarationSourceEnd()
See Also:
ISourceType.getDeclarationSourceEnd(), ISourceMethod.getDeclarationSourceEnd(), ISourceField.getDeclarationSourceEnd()

getDeclarationSourceStart

public int getDeclarationSourceStart()
See Also:
ISourceType.getDeclarationSourceStart(), ISourceMethod.getDeclarationSourceStart(), ISourceField.getDeclarationSourceStart()

getSourceRange

protected ISourceRange getSourceRange()

setSourceRangeEnd

protected void setSourceRangeEnd(int end)

setSourceRangeStart

protected void setSourceRangeStart(int start)

addChild

public void addChild(IJavaElement child)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getChildren

public IJavaElement[] getChildren()

removeChild

public void removeChild(IJavaElement child)

setChildren

public void setChildren(IJavaElement[] children)