org.eclipse.jdt.internal.core
Class SourceMethodElementInfo

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

public abstract class SourceMethodElementInfo
extends AnnotatableInfo
implements ISourceMethod

Element info for IMethod elements.


Constructor Summary
SourceMethodElementInfo()
           
 
Method Summary
 char[][] getArgumentNames()
          Answer the names of the argument or null if the argument names are not available.
 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.
 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()
           
 
Methods inherited from class org.eclipse.jdt.internal.core.JavaElementInfo
addChild, clone, getChildren, removeChild, setChildren
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jdt.internal.compiler.env.ISourceMethod
getDeclarationSourceEnd, getDeclarationSourceStart, getNameSourceEnd, getNameSourceStart
 
Methods inherited from interface org.eclipse.jdt.internal.compiler.env.IGenericMethod
getModifiers
 

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()

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()

getDeclarationSourceEnd

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

getDeclarationSourceStart

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