Class FieldInfo
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.FieldInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintAnswer back the access flag of this field info.intAnswer back the attribute number of the field info.Answer back the collection of all attributes of the field info.Answer back the constant value attribute of this field info if specified, null otherwise.char[]Answer back the descriptor of this field info.intAnswer back the descriptor index of this field info.char[]getName()Answer back the name of this field info.intAnswer back the name index of this field info.booleanReturn true if the field info has a constant value attribute, false otherwise.booleanReturn true if the field info has a deprecated attribute, false otherwise.booleanReturn true if the field info is synthetic according to the JVM specification, false otherwise.
-
Constructor Details
-
FieldInfo
public FieldInfo(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException - Parameters:
classFileBytes- byte[]constantPool- IConstantPooloffset- int- Throws:
ClassFormatException
-
-
Method Details
-
getAccessFlags
public int getAccessFlags()Description copied from interface:IFieldInfoAnswer back the access flag of this field info.- Specified by:
getAccessFlagsin interfaceIFieldInfo- Returns:
- the access flag of this field info
- See Also:
-
getAttributeCount
public int getAttributeCount()Description copied from interface:IFieldInfoAnswer back the attribute number of the field info.- Specified by:
getAttributeCountin interfaceIFieldInfo- Returns:
- the attribute number of the field info
- See Also:
-
getAttributes
Description copied from interface:IFieldInfoAnswer back the collection of all attributes of the field info. It includes SyntheticAttribute, ConstantValueAttributes, etc. Returns an empty collection if none.- Specified by:
getAttributesin interfaceIFieldInfo- Returns:
- the collection of all attributes of the field info. It includes SyntheticAttribute, ConstantValueAttributes, etc. Returns an empty collection if none
- See Also:
-
getConstantValueAttribute
Description copied from interface:IFieldInfoAnswer back the constant value attribute of this field info if specified, null otherwise.- Specified by:
getConstantValueAttributein interfaceIFieldInfo- Returns:
- the constant value attribute of this field info if specified, null otherwise
- See Also:
-
getDescriptor
public char[] getDescriptor()Description copied from interface:IFieldInfoAnswer back the descriptor of this field info. The descriptor is returned as specified in the JVM specifications.- Specified by:
getDescriptorin interfaceIFieldInfo- Returns:
- the descriptor of this field info. The descriptor is returned as specified in the JVM specifications
- See Also:
-
getDescriptorIndex
public int getDescriptorIndex()Description copied from interface:IFieldInfoAnswer back the descriptor index of this field info.- Specified by:
getDescriptorIndexin interfaceIFieldInfo- Returns:
- the descriptor index of this field info
- See Also:
-
getName
public char[] getName()Description copied from interface:IFieldInfoAnswer back the name of this field info. The name is returned as specified in the JVM specifications.- Specified by:
getNamein interfaceIFieldInfo- Returns:
- the name of this field info. The name is returned as specified in the JVM specifications
- See Also:
-
getNameIndex
public int getNameIndex()Description copied from interface:IFieldInfoAnswer back the name index of this field info.- Specified by:
getNameIndexin interfaceIFieldInfo- Returns:
- the name index of this field info
- See Also:
-
hasConstantValueAttribute
public boolean hasConstantValueAttribute()Description copied from interface:IFieldInfoReturn true if the field info has a constant value attribute, false otherwise.- Specified by:
hasConstantValueAttributein interfaceIFieldInfo- Returns:
- true if the field info has a constant value attribute, false otherwise
- See Also:
-
isDeprecated
public boolean isDeprecated()Description copied from interface:IFieldInfoReturn true if the field info has a deprecated attribute, false otherwise.- Specified by:
isDeprecatedin interfaceIFieldInfo- Returns:
- true if the field info has a deprecated attribute, false otherwise
- See Also:
-
isSynthetic
public boolean isSynthetic()Description copied from interface:IFieldInfoReturn true if the field info is synthetic according to the JVM specification, false otherwise.Note that prior to JDK 1.5, synthetic fields were always marked using an attribute; with 1.5, synthetic fields can also be marked using the
IModifierConstants.ACC_SYNTHETICflag.- Specified by:
isSyntheticin interfaceIFieldInfo- Returns:
- true if the field info is synthetic according to the JVM specification, false otherwise
- See Also:
-