org.eclipse.jdt.internal.core
Class SourceMethodInfo

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
              extended by org.eclipse.jdt.internal.core.SourceMethodInfo
All Implemented Interfaces:
IGenericMethod, ISourceMethod
Direct Known Subclasses:
SourceAnnotationMethodInfo

public class SourceMethodInfo
extends SourceMethodElementInfo


Constructor Summary
SourceMethodInfo()
           
 
Method Summary
 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.
 boolean isAnnotationMethod()
           
 boolean isConstructor()
           
 
Methods inherited from class org.eclipse.jdt.internal.core.SourceMethodElementInfo
getArgumentNames, getExceptionTypeNames, getTypeParameterBounds, getTypeParameterNames
 
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

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

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