Class FieldInfo
java.lang.Object
org.vesalainen.bcc.FieldInfo
- All Implemented Interfaces:
AnnotatedConstruct, Element, VariableElement, Writable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate List<AttributeInfo> private ClassFileprivate intprivate intprivate booleanprivate booleanprivate VariableElement -
Constructor Summary
ConstructorsConstructorDescriptionFieldInfo(ClassFile classFile, VariableElement variableElement) FieldInfo(ClassFile classFile, VariableElement variableElement, ConstantValue constant) -
Method Summary
Modifier and TypeMethodDescription<R,P> R accept(ElementVisitor<R, P> v, P p) private voidasType()<A extends Annotation>
AgetAnnotation(Class<A> annotationType) List<? extends AnnotationMirror> <A extends Annotation>
A[]getAnnotationsByType(Class<A> annotationType) getKind()voidCall to this method tells that the Attribute is ready writing.voidwrite(DataOutput out) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface VariableElement
isUnnamed
-
Field Details
-
classFile
-
variableElement
-
attributes
-
synthetic
private boolean synthetic -
readyToWrite
private boolean readyToWrite -
access_flags
private int access_flags -
name_index
private int name_index -
descriptor_index
private int descriptor_index
-
-
Constructor Details
-
FieldInfo
-
FieldInfo
-
FieldInfo
- Throws:
IOException
-
-
Method Details
-
readyToWrite
public void readyToWrite()Call to this method tells that the Attribute is ready writing. This method must be called before constant pool is written. -
write
- Specified by:
writein interfaceWritable- Throws:
IOException
-
addSignatureIfNeed
private void addSignatureIfNeed() -
getConstantValue
- Specified by:
getConstantValuein interfaceVariableElement
-
asType
- Specified by:
asTypein interfaceElement- Specified by:
asTypein interfaceVariableElement
-
getKind
-
getAnnotationMirrors
- Specified by:
getAnnotationMirrorsin interfaceAnnotatedConstruct- Specified by:
getAnnotationMirrorsin interfaceElement
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedConstruct- Specified by:
getAnnotationin interfaceElement
-
getModifiers
- Specified by:
getModifiersin interfaceElement
-
getSimpleName
- Specified by:
getSimpleNamein interfaceElement- Specified by:
getSimpleNamein interfaceVariableElement
-
getEnclosingElement
- Specified by:
getEnclosingElementin interfaceElement- Specified by:
getEnclosingElementin interfaceVariableElement
-
getEnclosedElements
- Specified by:
getEnclosedElementsin interfaceElement
-
accept
-
getAnnotationsByType
- Specified by:
getAnnotationsByTypein interfaceAnnotatedConstruct- Specified by:
getAnnotationsByTypein interfaceElement
-