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

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

public class SourceMethodInfo
extends SourceMethodElementInfo


Field Summary
protected  IJavaElement[] children
          Collection of handles of immediate children of this object.
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  char[] returnType
           
 
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.SourceMethodElementInfo
argumentNames, exceptionTypes, typeParameters
 
Constructor Summary
SourceMethodInfo()
           
 
Method Summary
 void addChild(IJavaElement child)
           
 java.lang.Object clone()
           
 IJavaElement[] getChildren()
           
 int getDeclarationSourceEnd()
           
 int getDeclarationSourceStart()
           
 int getModifiers()
           
 int getNameSourceEnd()
           
 int getNameSourceStart()
           
 char[] getReturnTypeName()
          Answer the unresolved name of the return type or null if receiver is a constructor or clinit.
protected  ISourceRange getSourceRange()
           
 boolean isAnnotationMethod()
           
 boolean isConstructor()
           
 void removeChild(IJavaElement child)
           
 void setChildren(IJavaElement[] children)
           
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  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.SourceMethodElementInfo
getArgumentNames, getExceptionTypeNames, getTypeParameterBounds, getTypeParameterNames, setArgumentNames, setExceptionTypeNames
 
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

returnType

protected char[] returnType

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

SourceMethodInfo

public SourceMethodInfo()
Method Detail

isAnnotationMethod

public boolean isAnnotationMethod()
Specified by:
isAnnotationMethod in class SourceMethodElementInfo

isConstructor

public boolean isConstructor()
Specified by:
isConstructor in interface IGenericMethod
Specified by:
isConstructor in class SourceMethodElementInfo

getReturnTypeName

public 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
Specified by:
getReturnTypeName in class SourceMethodElementInfo

setReturnType

protected void setReturnType(char[] type)
Specified by:
setReturnType in class SourceMethodElementInfo

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)