类 Constant
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.classfile.constant.Constant
-
- 所有已实现的接口:
java.io.Serializable,Processable
- 直接已知子类:
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.- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static intCLASSstatic intDOUBLEstatic intDYNAMICstatic intFIELDREFstatic intFLOATstatic intINTEGERstatic intINTERFACE_METHODREFstatic intINVOKE_DYNAMICstatic intLONGstatic intMETHOD_HANDLEstatic intMETHOD_TYPEstatic intMETHODREFstatic intMODULEstatic intNAME_AND_TYPEstatic intPACKAGEstatic intPRIMITIVE_ARRAYstatic intSTRINGstatic intUTF8-
从类继承的字段 proguard.util.SimpleProcessable
processingFlags, processingInfo
-
-
构造器概要
构造器 构造器 说明 Constant()
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 abstract voidaccept(Clazz clazz, ConstantVisitor constantVisitor)Accepts the given visitor.abstract intgetTag()Returns the constant pool info tag that specifies the entry type.abstract booleanisCategory2()Returns whether the constant is of category 2.-
从类继承的方法 proguard.util.SimpleProcessable
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 proguard.util.Processable
accept
-
-
-
-
字段详细资料
-
UTF8
public static final int UTF8
- 另请参阅:
- 常量字段值
-
INTEGER
public static final int INTEGER
- 另请参阅:
- 常量字段值
-
FLOAT
public static final int FLOAT
- 另请参阅:
- 常量字段值
-
LONG
public static final int LONG
- 另请参阅:
- 常量字段值
-
DOUBLE
public static final int DOUBLE
- 另请参阅:
- 常量字段值
-
CLASS
public static final int CLASS
- 另请参阅:
- 常量字段值
-
STRING
public static final int STRING
- 另请参阅:
- 常量字段值
-
FIELDREF
public static final int FIELDREF
- 另请参阅:
- 常量字段值
-
METHODREF
public static final int METHODREF
- 另请参阅:
- 常量字段值
-
INTERFACE_METHODREF
public static final int INTERFACE_METHODREF
- 另请参阅:
- 常量字段值
-
NAME_AND_TYPE
public static final int NAME_AND_TYPE
- 另请参阅:
- 常量字段值
-
METHOD_HANDLE
public static final int METHOD_HANDLE
- 另请参阅:
- 常量字段值
-
METHOD_TYPE
public static final int METHOD_TYPE
- 另请参阅:
- 常量字段值
-
DYNAMIC
public static final int DYNAMIC
- 另请参阅:
- 常量字段值
-
INVOKE_DYNAMIC
public static final int INVOKE_DYNAMIC
- 另请参阅:
- 常量字段值
-
MODULE
public static final int MODULE
- 另请参阅:
- 常量字段值
-
PACKAGE
public static final int PACKAGE
- 另请参阅:
- 常量字段值
-
PRIMITIVE_ARRAY
public static final int PRIMITIVE_ARRAY
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
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.
-
-