类 ConstantAdder
java.lang.Object
proguard.classfile.editor.ConstantAdder
- 所有已实现的接口:
ConstantVisitor
This
ConstantVisitor adds all constants that it visits to the constant pool of a given
target class.
Bootstrap methods attributes are automatically updated for invokedynamic constants.
-
构造器概要
构造器构造器说明ConstantAdder(ProgramClass targetClass) Creates a new ConstantAdder that will copy constants into the given target class. -
方法概要
修饰符和类型方法说明intaddConstant(Clazz clazz, int constantIndex) Adds a copy of the specified constant in the given class and returns its index.intaddConstant(Clazz clazz, Constant constant) Adds a copy of the given constant in the given class and returns its index.intReturns the index of the most recently created constant in the constant pool of the target class.voidvisitClassConstant(Clazz clazz, ClassConstant classConstant) voidvisitDoubleConstant(Clazz clazz, DoubleConstant doubleConstant) voidvisitDynamicConstant(Clazz clazz, DynamicConstant dynamicConstant) voidvisitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) voidvisitFloatConstant(Clazz clazz, FloatConstant floatConstant) voidvisitIntegerConstant(Clazz clazz, IntegerConstant integerConstant) voidvisitInterfaceMethodrefConstant(Clazz clazz, InterfaceMethodrefConstant interfaceMethodrefConstant) voidvisitInvokeDynamicConstant(Clazz clazz, InvokeDynamicConstant invokeDynamicConstant) voidvisitLongConstant(Clazz clazz, LongConstant longConstant) voidvisitMethodHandleConstant(Clazz clazz, MethodHandleConstant methodHandleConstant) voidvisitMethodrefConstant(Clazz clazz, MethodrefConstant methodrefConstant) voidvisitMethodTypeConstant(Clazz clazz, MethodTypeConstant methodTypeConstant) voidvisitModuleConstant(Clazz clazz, ModuleConstant moduleConstant) voidvisitNameAndTypeConstant(Clazz clazz, NameAndTypeConstant nameAndTypeConstant) voidvisitPackageConstant(Clazz clazz, PackageConstant packageConstant) voidvisitPrimitiveArrayConstant(Clazz clazz, PrimitiveArrayConstant primitiveArrayConstant) voidvisitStringConstant(Clazz clazz, StringConstant stringConstant) voidvisitUtf8Constant(Clazz clazz, Utf8Constant utf8Constant) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 proguard.classfile.constant.visitor.ConstantVisitor
visitAnyConstant, visitAnyMethodrefConstant, visitAnyRefConstant
-
构造器详细资料
-
ConstantAdder
Creates a new ConstantAdder that will copy constants into the given target class.
-
-
方法详细资料
-
addConstant
Adds a copy of the specified constant in the given class and returns its index. If the specified index is 0, the returned value is 0 too. -
addConstant
Adds a copy of the given constant in the given class and returns its index. -
getConstantIndex
public int getConstantIndex()Returns the index of the most recently created constant in the constant pool of the target class. -
visitIntegerConstant
- 指定者:
visitIntegerConstant在接口中ConstantVisitor
-
visitLongConstant
- 指定者:
visitLongConstant在接口中ConstantVisitor
-
visitFloatConstant
- 指定者:
visitFloatConstant在接口中ConstantVisitor
-
visitDoubleConstant
- 指定者:
visitDoubleConstant在接口中ConstantVisitor
-
visitPrimitiveArrayConstant
- 指定者:
visitPrimitiveArrayConstant在接口中ConstantVisitor
-
visitStringConstant
- 指定者:
visitStringConstant在接口中ConstantVisitor
-
visitUtf8Constant
- 指定者:
visitUtf8Constant在接口中ConstantVisitor
-
visitDynamicConstant
- 指定者:
visitDynamicConstant在接口中ConstantVisitor
-
visitInvokeDynamicConstant
- 指定者:
visitInvokeDynamicConstant在接口中ConstantVisitor
-
visitMethodHandleConstant
- 指定者:
visitMethodHandleConstant在接口中ConstantVisitor
-
visitModuleConstant
- 指定者:
visitModuleConstant在接口中ConstantVisitor
-
visitPackageConstant
- 指定者:
visitPackageConstant在接口中ConstantVisitor
-
visitFieldrefConstant
- 指定者:
visitFieldrefConstant在接口中ConstantVisitor
-
visitInterfaceMethodrefConstant
public void visitInterfaceMethodrefConstant(Clazz clazz, InterfaceMethodrefConstant interfaceMethodrefConstant) -
visitMethodrefConstant
- 指定者:
visitMethodrefConstant在接口中ConstantVisitor
-
visitClassConstant
- 指定者:
visitClassConstant在接口中ConstantVisitor
-
visitMethodTypeConstant
- 指定者:
visitMethodTypeConstant在接口中ConstantVisitor
-
visitNameAndTypeConstant
- 指定者:
visitNameAndTypeConstant在接口中ConstantVisitor
-