Class SourceFieldElementInfo
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.JavaElementInfo
org.aspectj.org.eclipse.jdt.internal.core.AnnotatableInfo
org.aspectj.org.eclipse.jdt.internal.core.SourceFieldElementInfo
- All Implemented Interfaces:
Cloneable,IElementInfo,IGenericField,ISourceField
- Direct Known Subclasses:
SourceFieldWithChildrenInfo
Element info for IField elements.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe modifiers associated with this member.protected char[]The field's initializer string (if the field is a constant).protected booleanprotected intprotected intprotected char[]The type name of this field.Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.AnnotatableInfo
annotations, nameEnd, nameStart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintchar[]Answer the initialization source for this constant field.intprotected ISourceRangechar[]Returns the type name of the field.protected StringReturns the type signature of the field.protected voidsetFlags(int flags) protected voidsetSourceRangeEnd(int end) protected voidsetSourceRangeStart(int start) protected voidsetTypeName(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, setNameSourceStartMethods inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaElementInfo
clone, getChildren, getExtendedChildrenMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IGenericField
getModifiersMethods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.ISourceField
getDeclarationSourceEnd, getDeclarationSourceStart, getNameSourceEnd, getNameSourceStart
-
Field Details
-
typeName
protected char[] typeNameThe type name of this field. -
initializationSource
protected char[] initializationSourceThe field's initializer string (if the field is a constant). -
isRecordComponent
protected boolean isRecordComponent -
flags
protected int flagsThe modifiers associated with this member.- See Also:
-
sourceRangeStart
protected int sourceRangeStart -
sourceRangeEnd
protected int sourceRangeEnd
-
-
Constructor Details
-
SourceFieldElementInfo
public SourceFieldElementInfo()
-
-
Method Details
-
getInitializationSource
public char[] getInitializationSource()Description copied from interface:ISourceFieldAnswer the initialization source for this constant field. Answer null if the field is not a constant or if it has no initialization.- Specified by:
getInitializationSourcein interfaceISourceField
-
getTypeName
public char[] getTypeName()Returns the type name of the field.- Specified by:
getTypeNamein interfaceISourceField
-
getTypeSignature
-
setTypeName
protected void setTypeName(char[] typeName) Sets the type name of the field. -
getModifiers
public int getModifiers()- See Also:
-
setFlags
protected void setFlags(int flags) -
getDeclarationSourceEnd
public int getDeclarationSourceEnd()- See Also:
-
getDeclarationSourceStart
public int getDeclarationSourceStart()- See Also:
-
getSourceRange
-
setSourceRangeEnd
protected void setSourceRangeEnd(int end) -
setSourceRangeStart
protected void setSourceRangeStart(int start)
-