public class ProgramField extends ProgramMember implements Field
Field
represents a field in a ProgramClass
.Modifier and Type | Field and Description |
---|---|
Clazz |
referencedClass
An extra field pointing to the Clazz object referenced in the descriptor string.
|
attributes, u2accessFlags, u2attributesCount, u2descriptorIndex, u2nameIndex
processingFlags, processingInfo
Constructor and Description |
---|
ProgramField()
Creates an uninitialized ProgramField.
|
ProgramField(int u2accessFlags,
int u2nameIndex,
int u2descriptorIndex,
Clazz referencedClass)
Creates an initialized ProgramField without attributes.
|
ProgramField(int u2accessFlags,
int u2nameIndex,
int u2descriptorIndex,
Clazz referencedClass,
int processingFlags,
java.lang.Object processingInfo)
Creates an initialized ProgramField without attributes.
|
ProgramField(int u2accessFlags,
int u2nameIndex,
int u2descriptorIndex,
int u2attributesCount,
Attribute[] attributes,
Clazz referencedClass)
Creates an initialized ProgramField.
|
ProgramField(int u2accessFlags,
int u2nameIndex,
int u2descriptorIndex,
int u2attributesCount,
Attribute[] attributes,
Clazz referencedClass,
int processingFlags,
java.lang.Object processingInfo)
Creates an initialized ProgramField.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ProgramClass programClass,
MemberVisitor memberVisitor)
Accepts the given member info visitor.
|
void |
attributesAccept(ProgramClass programClass,
AttributeVisitor attributeVisitor)
Lets the given attribute info visitor visit all the attributes of this member info.
|
void |
referencedClassesAccept(ClassVisitor classVisitor)
Lets the Clazz objects referenced in the descriptor string accept the given visitor.
|
accept, getAccessFlags, getDescriptor, getName
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, getAccessFlags, getDescriptor, getName
getProcessingFlags, getProcessingInfo, setProcessingFlags, setProcessingInfo
public Clazz referencedClass
ClassReferenceInitializer
. References
to primitive types are ignored.public ProgramField()
public ProgramField(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, Clazz referencedClass)
public ProgramField(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, Clazz referencedClass, int processingFlags, java.lang.Object processingInfo)
public ProgramField(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, int u2attributesCount, Attribute[] attributes, Clazz referencedClass)
public void accept(ProgramClass programClass, MemberVisitor memberVisitor)
ProgramMember
accept
in class ProgramMember
public void attributesAccept(ProgramClass programClass, AttributeVisitor attributeVisitor)
ProgramMember
attributesAccept
in class ProgramMember
public void referencedClassesAccept(ClassVisitor classVisitor)
Member
referencedClassesAccept
in interface Member