Package proguard.classfile.constant
Class Constant
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.classfile.constant.Constant
-
- All Implemented Interfaces:
java.io.Serializable
,Processable
- Direct Known Subclasses:
ClassConstant
,DoubleConstant
,DynamicConstant
,FloatConstant
,IntegerConstant
,InvokeDynamicConstant
,LongConstant
,MethodHandleConstant
,MethodTypeConstant
,ModuleConstant
,NameAndTypeConstant
,PackageConstant
,PrimitiveArrayConstant
,RefConstant
,StringConstant
,Utf8Constant
public abstract class Constant extends SimpleProcessable
This abstract class represents an entry in the constant pool of a class. Specific types of entries are subclassed from it.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
CLASS
static int
DOUBLE
static int
DYNAMIC
static int
FIELDREF
static int
FLOAT
static int
INTEGER
static int
INTERFACE_METHODREF
static int
INVOKE_DYNAMIC
static int
LONG
static int
METHOD_HANDLE
static int
METHOD_TYPE
static int
METHODREF
static int
MODULE
static int
NAME_AND_TYPE
static int
PACKAGE
static int
PRIMITIVE_ARRAY
static int
STRING
static int
UTF8
-
Fields inherited from class proguard.util.SimpleProcessable
processingFlags, processingInfo
-
-
Constructor Summary
Constructors Constructor Description Constant()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
accept(Clazz clazz, ConstantVisitor constantVisitor)
Accepts the given visitor.abstract int
getTag()
Returns the constant pool info tag that specifies the entry type.abstract boolean
isCategory2()
Returns whether the constant is of category 2.-
Methods inherited from class proguard.util.SimpleProcessable
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
-
-
-
-
Field Detail
-
UTF8
public static final int UTF8
- See Also:
- Constant Field Values
-
INTEGER
public static final int INTEGER
- See Also:
- Constant Field Values
-
FLOAT
public static final int FLOAT
- See Also:
- Constant Field Values
-
LONG
public static final int LONG
- See Also:
- Constant Field Values
-
DOUBLE
public static final int DOUBLE
- See Also:
- Constant Field Values
-
CLASS
public static final int CLASS
- See Also:
- Constant Field Values
-
STRING
public static final int STRING
- See Also:
- Constant Field Values
-
FIELDREF
public static final int FIELDREF
- See Also:
- Constant Field Values
-
METHODREF
public static final int METHODREF
- See Also:
- Constant Field Values
-
INTERFACE_METHODREF
public static final int INTERFACE_METHODREF
- See Also:
- Constant Field Values
-
NAME_AND_TYPE
public static final int NAME_AND_TYPE
- See Also:
- Constant Field Values
-
METHOD_HANDLE
public static final int METHOD_HANDLE
- See Also:
- Constant Field Values
-
METHOD_TYPE
public static final int METHOD_TYPE
- See Also:
- Constant Field Values
-
DYNAMIC
public static final int DYNAMIC
- See Also:
- Constant Field Values
-
INVOKE_DYNAMIC
public static final int INVOKE_DYNAMIC
- See Also:
- Constant Field Values
-
MODULE
public static final int MODULE
- See Also:
- Constant Field Values
-
PACKAGE
public static final int PACKAGE
- See Also:
- Constant Field Values
-
PRIMITIVE_ARRAY
public static final int PRIMITIVE_ARRAY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTag
public abstract int getTag()
Returns the constant pool info tag that specifies the entry type.
-
isCategory2
public abstract boolean isCategory2()
Returns whether the constant is of category 2. This means that it takes up the space of two category 1 types in the constant pool or on the stack, for instance.
-
accept
public abstract void accept(Clazz clazz, ConstantVisitor constantVisitor)
Accepts the given visitor.
-
-