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

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.JavaElementInfo
      extended by org.aspectj.org.eclipse.jdt.internal.core.AnnotatableInfo
          extended by org.aspectj.org.eclipse.jdt.internal.core.SourceFieldElementInfo
All Implemented Interfaces:
java.lang.Cloneable, IGenericField, ISourceField
Direct Known Subclasses:
SourceFieldWithChildrenInfo

public class SourceFieldElementInfo
extends AnnotatableInfo
implements ISourceField

Element info for IField elements.


Field Summary
protected  int flags
          The modifiers associated with this member.
protected  char[] initializationSource
          The field's initializer string (if the field is a constant).
protected  int sourceRangeEnd
           
protected  int sourceRangeStart
           
protected  char[] typeName
          The type name of this field.
 
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.AnnotatableInfo
annotations, nameEnd, nameStart
 
Constructor Summary
SourceFieldElementInfo()
           
 
Method Summary
 int getDeclarationSourceEnd()
           
 int getDeclarationSourceStart()
           
 char[] getInitializationSource()
          Answer the initialization source for this constant field.
 int getModifiers()
           
protected  ISourceRange getSourceRange()
           
 char[] getTypeName()
          Returns the type name of the field.
protected  java.lang.String getTypeSignature()
          Returns the type signature of the field.
protected  void setFlags(int flags)
           
protected  void setSourceRangeEnd(int end)
           
protected  void setSourceRangeStart(int start)
           
protected  void setTypeName(char[] typeName)
          Sets the type name of the field.
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.AnnotatableInfo
getNameRange, getNameSourceEnd, getNameSourceStart, setNameSourceEnd, setNameSourceStart
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaElementInfo
clone, getChildren
 
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.ISourceField
getDeclarationSourceEnd, getDeclarationSourceStart, getNameSourceEnd, getNameSourceStart
 
Methods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IGenericField
getModifiers
 

Field Detail

typeName

protected char[] typeName
The type name of this field.


initializationSource

protected char[] initializationSource
The field's initializer string (if the field is a constant).


flags

protected int flags
The modifiers associated with this member.

See Also:
ClassFileConstants

sourceRangeStart

protected int sourceRangeStart

sourceRangeEnd

protected int sourceRangeEnd
Constructor Detail

SourceFieldElementInfo

public SourceFieldElementInfo()
Method Detail

getInitializationSource

public char[] getInitializationSource()
Description copied from interface: ISourceField
Answer the initialization source for this constant field. Answer null if the field is not a constant or if it has no initialization.

Specified by:
getInitializationSource in interface ISourceField

getTypeName

public char[] getTypeName()
Returns the type name of the field.

Specified by:
getTypeName in interface ISourceField

getTypeSignature

protected java.lang.String getTypeSignature()
Returns the type signature of the field.

See Also:
Signature

setTypeName

protected void setTypeName(char[] typeName)
Sets the type name of the field.


getModifiers

public int getModifiers()
See Also:
IGenericType.getModifiers(), IGenericMethod.getModifiers(), IGenericField.getModifiers()

setFlags

protected void setFlags(int flags)

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)