Class FieldInfoWithAnnotation
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.FieldInfo
org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.FieldInfoWithAnnotation
- All Implemented Interfaces:
Comparable, IBinaryField, IBinaryInfo, IElementInfo, IGenericField
- Direct Known Subclasses:
FieldInfoWithTypeAnnotation
-
Field Summary
Fields inherited from class FieldInfo
accessFlags, attributeBytes, constant, descriptor, name, signature, signatureUtf8Offset, tagBits, version, wrappedConstantValue -
Method Summary
Methods inherited from class FieldInfo
compareTo, createField, equals, getConstant, getGenericSignature, getModifiers, getName, getTagBits, getTypeAnnotations, getTypeName, getWrappedConstantValue, hasConstant, hashCode, isSynthetic, sizeInBytes, throwFormatException, toStringContentModifier and TypeMethodDescriptionintstatic FieldInfocreateField(byte[] classFileBytes, int[] offsets, int offset, long version) booleanReturn 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.intAnswer an int whose bits are set according the access constants defined by the VM spec.char[]getName()Answer the name of the field.longAnswer 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.booleanReturn true if the field has a constant value attribute, false otherwise.inthashCode()booleanReturn true if the field is a synthetic field, false otherwise.intAnswer the size of the receiver in bytes.voidprotected voidtoStringContent(StringBuilder buffer) Methods inherited from class ClassFileStruct
doubleAt, floatAt, i4At, i8At, u1At, u2At, u4At, utf8AtModifier and TypeMethodDescriptiondoubledoubleAt(int relativeOffset) floatfloatAt(int relativeOffset) inti4At(int relativeOffset) longi8At(int relativeOffset) intu1At(int relativeOffset) intu2At(int relativeOffset) intu4At(int relativeOffset) Returns an 32 bit integer created of 4 bytes.char[]utf8At(int relativeOffset, int bytesAvailable)
-
Method Details
-
getAnnotations
Description copied from interface:IBinaryFieldAnswer the runtime visible and invisible annotations for this field or null if none.- Specified by:
getAnnotationsin interfaceIBinaryField- Overrides:
getAnnotationsin classFieldInfo- Returns:
- the annotations or null if there is none.
-
initialize
protected void initialize()Description copied from class:FieldInfoThis 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.- Overrides:
initializein classFieldInfo
-
reset
protected void reset()- Overrides:
resetin classClassFileStruct
-
toString
-