类 ElementValueAdder
java.lang.Object
proguard.classfile.editor.ElementValueAdder
- 所有已实现的接口:
ElementValueVisitor
This
ElementValueVisitor adds all element values that it visits to the given target
annotation default attribute, annotation, or element value.-
构造器概要
构造器构造器说明ElementValueAdder(ProgramClass targetClass, AnnotationDefaultAttribute targetAnnotationDefaultAttribute, boolean replaceElementValues) Creates a new ElementValueAdder that will copy element values into the given target annotation default attribute value.ElementValueAdder(ProgramClass targetClass, Annotation targetAnnotation, boolean replaceElementValues) Creates a new ElementValueAdder that will copy element values into the given target annotation.ElementValueAdder(ProgramClass targetClass, ArrayElementValue targetArrayElementValue, boolean replaceElementValues) Creates a new ElementValueAdder that will copy element values into the given target element value. -
方法概要
修饰符和类型方法说明voidvisitAnnotationElementValue(Clazz clazz, Annotation annotation, AnnotationElementValue annotationElementValue) voidvisitArrayElementValue(Clazz clazz, Annotation annotation, ArrayElementValue arrayElementValue) voidvisitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElementValue) voidvisitConstantElementValue(Clazz clazz, Annotation annotation, ConstantElementValue constantElementValue) voidvisitEnumConstantElementValue(Clazz clazz, Annotation annotation, EnumConstantElementValue enumConstantElementValue) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 proguard.classfile.attribute.annotation.visitor.ElementValueVisitor
visitAnyElementValue
-
构造器详细资料
-
ElementValueAdder
public ElementValueAdder(ProgramClass targetClass, AnnotationDefaultAttribute targetAnnotationDefaultAttribute, boolean replaceElementValues) Creates a new ElementValueAdder that will copy element values into the given target annotation default attribute value. -
ElementValueAdder
public ElementValueAdder(ProgramClass targetClass, Annotation targetAnnotation, boolean replaceElementValues) Creates a new ElementValueAdder that will copy element values into the given target annotation. -
ElementValueAdder
public ElementValueAdder(ProgramClass targetClass, ArrayElementValue targetArrayElementValue, boolean replaceElementValues) Creates a new ElementValueAdder that will copy element values into the given target element value.
-
-
方法详细资料
-
visitConstantElementValue
public void visitConstantElementValue(Clazz clazz, Annotation annotation, ConstantElementValue constantElementValue) - 指定者:
visitConstantElementValue在接口中ElementValueVisitor
-
visitEnumConstantElementValue
public void visitEnumConstantElementValue(Clazz clazz, Annotation annotation, EnumConstantElementValue enumConstantElementValue) -
visitClassElementValue
public void visitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElementValue) - 指定者:
visitClassElementValue在接口中ElementValueVisitor
-
visitAnnotationElementValue
public void visitAnnotationElementValue(Clazz clazz, Annotation annotation, AnnotationElementValue annotationElementValue) -
visitArrayElementValue
public void visitArrayElementValue(Clazz clazz, Annotation annotation, ArrayElementValue arrayElementValue) - 指定者:
visitArrayElementValue在接口中ElementValueVisitor
-