Klasse FieldInfo
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.FieldInfo
- Alle implementierten Schnittstellen:
IFieldInfo
Default implementation of IFieldInfo.
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
Answer back the access flag of this field info.int
Answer 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.int
Answer back the descriptor index of this field info.char[]
getName()
Answer back the name of this field info.int
Answer back the name index of this field info.boolean
Return true if the field info has a constant value attribute, false otherwise.boolean
Return true if the field info has a deprecated attribute, false otherwise.boolean
Return true if the field info is synthetic according to the JVM specification, false otherwise.
-
Konstruktordetails
-
FieldInfo
public FieldInfo(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException - Parameter:
classFileBytes
- byte[]constantPool
- IConstantPooloffset
- int- Löst aus:
ClassFormatException
-
-
Methodendetails
-
getAccessFlags
public int getAccessFlags()Beschreibung aus Schnittstelle kopiert:IFieldInfo
Answer back the access flag of this field info.- Angegeben von:
getAccessFlags
in SchnittstelleIFieldInfo
- Gibt zurück:
- the access flag of this field info
- Siehe auch:
-
getAttributeCount
public int getAttributeCount()Beschreibung aus Schnittstelle kopiert:IFieldInfo
Answer back the attribute number of the field info.- Angegeben von:
getAttributeCount
in SchnittstelleIFieldInfo
- Gibt zurück:
- the attribute number of the field info
- Siehe auch:
-
getAttributes
Beschreibung aus Schnittstelle kopiert:IFieldInfo
Answer back the collection of all attributes of the field info. It includes SyntheticAttribute, ConstantValueAttributes, etc. Returns an empty collection if none.- Angegeben von:
getAttributes
in SchnittstelleIFieldInfo
- Gibt zurück:
- the collection of all attributes of the field info. It includes SyntheticAttribute, ConstantValueAttributes, etc. Returns an empty collection if none
- Siehe auch:
-
getConstantValueAttribute
Beschreibung aus Schnittstelle kopiert:IFieldInfo
Answer back the constant value attribute of this field info if specified, null otherwise.- Angegeben von:
getConstantValueAttribute
in SchnittstelleIFieldInfo
- Gibt zurück:
- the constant value attribute of this field info if specified, null otherwise
- Siehe auch:
-
getDescriptor
public char[] getDescriptor()Beschreibung aus Schnittstelle kopiert:IFieldInfo
Answer back the descriptor of this field info. The descriptor is returned as specified in the JVM specifications.- Angegeben von:
getDescriptor
in SchnittstelleIFieldInfo
- Gibt zurück:
- the descriptor of this field info. The descriptor is returned as specified in the JVM specifications
- Siehe auch:
-
getDescriptorIndex
public int getDescriptorIndex()Beschreibung aus Schnittstelle kopiert:IFieldInfo
Answer back the descriptor index of this field info.- Angegeben von:
getDescriptorIndex
in SchnittstelleIFieldInfo
- Gibt zurück:
- the descriptor index of this field info
- Siehe auch:
-
getName
public char[] getName()Beschreibung aus Schnittstelle kopiert:IFieldInfo
Answer back the name of this field info. The name is returned as specified in the JVM specifications.- Angegeben von:
getName
in SchnittstelleIFieldInfo
- Gibt zurück:
- the name of this field info. The name is returned as specified in the JVM specifications
- Siehe auch:
-
getNameIndex
public int getNameIndex()Beschreibung aus Schnittstelle kopiert:IFieldInfo
Answer back the name index of this field info.- Angegeben von:
getNameIndex
in SchnittstelleIFieldInfo
- Gibt zurück:
- the name index of this field info
- Siehe auch:
-
hasConstantValueAttribute
public boolean hasConstantValueAttribute()Beschreibung aus Schnittstelle kopiert:IFieldInfo
Return true if the field info has a constant value attribute, false otherwise.- Angegeben von:
hasConstantValueAttribute
in SchnittstelleIFieldInfo
- Gibt zurück:
- true if the field info has a constant value attribute, false otherwise
- Siehe auch:
-
isDeprecated
public boolean isDeprecated()Beschreibung aus Schnittstelle kopiert:IFieldInfo
Return true if the field info has a deprecated attribute, false otherwise.- Angegeben von:
isDeprecated
in SchnittstelleIFieldInfo
- Gibt zurück:
- true if the field info has a deprecated attribute, false otherwise
- Siehe auch:
-
isSynthetic
public boolean isSynthetic()Beschreibung aus Schnittstelle kopiert:IFieldInfo
Return 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_SYNTHETIC
flag.- Angegeben von:
isSynthetic
in SchnittstelleIFieldInfo
- Gibt zurück:
- true if the field info is synthetic according to the JVM specification, false otherwise
- Siehe auch:
-