类 ElementValueAdder
- java.lang.Object
-
- proguard.classfile.editor.ElementValueAdder
-
- 所有已实现的接口:
ElementValueVisitor
public class ElementValueAdder extends java.lang.Object implements ElementValueVisitor
ThisElementValueVisitoradds 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
-
-