Class SourceFieldElementInfo

All Implemented Interfaces:
Cloneable, IElementInfo, IGenericField, ISourceField
Direct Known Subclasses:
SourceFieldWithChildrenInfo

public class SourceFieldElementInfo extends AnnotatableInfo implements ISourceField
Element info for IField elements.
  • Field Details

    • 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).
    • isRecordComponent

      protected boolean isRecordComponent
    • flags

      protected int flags
      The modifiers associated with this member.
      See Also:
      • invalid reference
        org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants
    • sourceRangeStart

      protected int sourceRangeStart
    • sourceRangeEnd

      protected int sourceRangeEnd
  • Constructor Details

    • SourceFieldElementInfo

      public SourceFieldElementInfo()
  • Method Details

    • 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 String getTypeSignature()
      Returns the type signature of the field.
      See Also:
    • setTypeName

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

      public int getModifiers()
      See Also:
      • invalid reference
        org.eclipse.jdt.internal.compiler.env.IGenericType#getModifiers()
      • invalid reference
        org.eclipse.jdt.internal.compiler.env.IGenericMethod#getModifiers()
      • invalid reference
        org.eclipse.jdt.internal.compiler.env.IGenericField#getModifiers()
    • setFlags

      protected void setFlags(int flags)
    • getDeclarationSourceEnd

      public int getDeclarationSourceEnd()
      See Also:
      • invalid reference
        org.eclipse.jdt.internal.compiler.env.ISourceType#getDeclarationSourceEnd()
      • invalid reference
        org.eclipse.jdt.internal.compiler.env.ISourceMethod#getDeclarationSourceEnd()
      • invalid reference
        org.eclipse.jdt.internal.compiler.env.ISourceField#getDeclarationSourceEnd()
    • getDeclarationSourceStart

      public int getDeclarationSourceStart()
      See Also:
      • invalid reference
        org.eclipse.jdt.internal.compiler.env.ISourceType#getDeclarationSourceStart()
      • invalid reference
        org.eclipse.jdt.internal.compiler.env.ISourceMethod#getDeclarationSourceStart()
      • invalid reference
        org.eclipse.jdt.internal.compiler.env.ISourceField#getDeclarationSourceStart()
    • getSourceRange

      protected ISourceRange getSourceRange()
    • setSourceRangeEnd

      protected void setSourceRangeEnd(int end)
    • setSourceRangeStart

      protected void setSourceRangeStart(int start)