Klasse FieldInfo
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.FieldInfo
- Alle implementierten Schnittstellen:
Comparable
,IBinaryField
,IGenericField
- Bekannte direkte Unterklassen:
FieldInfoWithAnnotation
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotected
FieldInfo
(byte[] classFileBytes, int[] offsets, int offset, long version) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
static FieldInfo
createField
(byte[] classFileBytes, int[] offsets, int offset, long version) boolean
Answer the runtime visible and invisible annotations for this field or null if none.Return the constant of the field.char[]
Answer the receiver's FieldSignature, which describes the field's type as specified in "4.7.9.1 Signatures" of the Java SE 8 VM spec.int
Answer an int whose bits are set according the access constants defined by the VM spec.char[]
getName()
Answer the name of the field.long
Answer the tagbits set according to the bits for annotations.Answer the runtime visible and invisible type annotations for this field or null if none.char[]
Answer the resolved name of the receiver's type in the class file format as specified in section 4.3.2 of the Java 2 VM spec.Return a wrapper that contains the constant of the field.boolean
Return true if the field has a constant value attribute, false otherwise.int
hashCode()
protected void
This method is used to fully initialize the contents of the receiver.boolean
Return true if the field is a synthetic field, false otherwise.int
Answer the size of the receiver in bytes.void
toString()
protected void
toStringContent
(StringBuffer buffer)
-
Felddetails
-
accessFlags
protected int accessFlags -
attributeBytes
protected int attributeBytes -
constant
-
descriptor
protected char[] descriptor -
name
protected char[] name -
signature
protected char[] signature -
signatureUtf8Offset
protected int signatureUtf8Offset -
tagBits
protected long tagBits -
wrappedConstantValue
-
version
protected long version
-
-
Konstruktordetails
-
FieldInfo
protected FieldInfo(byte[] classFileBytes, int[] offsets, int offset, long version) - Parameter:
classFileBytes
- byte[]offsets
- int[]offset
- intversion
- class file version
-
-
Methodendetails
-
createField
-
compareTo
- Angegeben von:
compareTo
in SchnittstelleComparable
-
equals
-
hashCode
public int hashCode() -
getConstant
Return the constant of the field. Return org.eclipse.jdt.internal.compiler.impl.Constant.NotAConstant if there is none.- Angegeben von:
getConstant
in SchnittstelleIBinaryField
- Gibt zurück:
- org.eclipse.jdt.internal.compiler.impl.Constant
-
getGenericSignature
public char[] getGenericSignature()Beschreibung aus Schnittstelle kopiert:IBinaryField
Answer the receiver's FieldSignature, which describes the field's type as specified in "4.7.9.1 Signatures" of the Java SE 8 VM spec.- Angegeben von:
getGenericSignature
in SchnittstelleIBinaryField
-
getModifiers
public int getModifiers()Answer an int whose bits are set according the access constants defined by the VM spec. Set the AccDeprecated and AccSynthetic bits if necessary- Angegeben von:
getModifiers
in SchnittstelleIGenericField
- Gibt zurück:
- int
-
getName
public char[] getName()Answer the name of the field.- Angegeben von:
getName
in SchnittstelleIBinaryField
- Gibt zurück:
- char[]
-
getTagBits
public long getTagBits()Beschreibung aus Schnittstelle kopiert:IBinaryField
Answer the tagbits set according to the bits for annotations.- Angegeben von:
getTagBits
in SchnittstelleIBinaryField
-
getTypeName
public char[] getTypeName()Answer the resolved name of the receiver's type in the class file format as specified in section 4.3.2 of the Java 2 VM spec. For example: - java.lang.String is Ljava/lang/String; - an int is I - a 2 dimensional array of strings is [[Ljava/lang/String; - an array of floats is [F- Angegeben von:
getTypeName
in SchnittstelleIBinaryField
- Gibt zurück:
- char[]
-
getAnnotations
Beschreibung aus Schnittstelle kopiert:IBinaryField
Answer the runtime visible and invisible annotations for this field or null if none.- Angegeben von:
getAnnotations
in SchnittstelleIBinaryField
- Gibt zurück:
- the annotations or null if there is none.
-
getTypeAnnotations
Beschreibung aus Schnittstelle kopiert:IBinaryField
Answer the runtime visible and invisible type annotations for this field or null if none.- Angegeben von:
getTypeAnnotations
in SchnittstelleIBinaryField
-
getWrappedConstantValue
Return a wrapper that contains the constant of the field.- Gibt zurück:
- java.lang.Object
-
hasConstant
public boolean hasConstant()Return true if the field has a constant value attribute, false otherwise.- Gibt zurück:
- boolean
-
initialize
protected void initialize()This method is used to fully initialize the contents of the receiver. All methodinfos, fields infos will be therefore fully initialized and we can get rid of the bytes. -
isSynthetic
public boolean isSynthetic()Return true if the field is a synthetic field, false otherwise.- Gibt zurück:
- boolean
-
sizeInBytes
public int sizeInBytes()Answer the size of the receiver in bytes.- Gibt zurück:
- int
-
throwFormatException
- Löst aus:
ClassFormatException
-
toString
-
toStringContent
-