Package proguard.classfile
Class ProgramField
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.classfile.ProgramMember
-
- proguard.classfile.ProgramField
-
- All Implemented Interfaces:
java.io.Serializable
,Field
,Member
,Processable
public class ProgramField extends ProgramMember implements Field
ThisField
represents a field in aProgramClass
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Clazz
referencedClass
An extra field pointing to the Clazz object referenced in the descriptor string.-
Fields inherited from class proguard.classfile.ProgramMember
attributes, u2accessFlags, u2attributesCount, u2descriptorIndex, u2nameIndex
-
Fields inherited from class proguard.util.SimpleProcessable
processingFlags, processingInfo
-
-
Constructor Summary
Constructors Constructor Description ProgramField()
Creates an uninitialized ProgramField.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.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class proguard.classfile.ProgramMember
accept, getAccessFlags, getDescriptor, getName
-
Methods inherited from class proguard.util.SimpleProcessable
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface proguard.classfile.Member
accept, getAccessFlags, getDescriptor, getName
-
Methods inherited from interface proguard.util.Processable
getProcessingFlags, getProcessingInfo, setProcessingFlags, setProcessingInfo
-
-
-
-
Field Detail
-
referencedClass
public Clazz referencedClass
An extra field pointing to the Clazz object referenced in the descriptor string. This field is filled out by the
. References to primitive types are ignored.ClassReferenceInitializer
-
-
Constructor Detail
-
ProgramField
public ProgramField()
Creates an uninitialized ProgramField.
-
ProgramField
public ProgramField(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, Clazz referencedClass)
Creates an initialized ProgramField without attributes.
-
ProgramField
public ProgramField(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, Clazz referencedClass, int processingFlags, java.lang.Object processingInfo)
Creates an initialized ProgramField without attributes.
-
ProgramField
public ProgramField(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, int u2attributesCount, Attribute[] attributes, Clazz referencedClass)
Creates an initialized ProgramField.
-
-
Method Detail
-
accept
public void accept(ProgramClass programClass, MemberVisitor memberVisitor)
Description copied from class:ProgramMember
Accepts the given member info visitor.- Specified by:
accept
in classProgramMember
-
attributesAccept
public void attributesAccept(ProgramClass programClass, AttributeVisitor attributeVisitor)
Description copied from class:ProgramMember
Lets the given attribute info visitor visit all the attributes of this member info.- Specified by:
attributesAccept
in classProgramMember
-
referencedClassesAccept
public void referencedClassesAccept(ClassVisitor classVisitor)
Description copied from interface:Member
Lets the Clazz objects referenced in the descriptor string accept the given visitor.- Specified by:
referencedClassesAccept
in interfaceMember
-
-