public class ElementValueAdder extends Object implements ElementValueVisitor
| Constructor and Description |
|---|
ElementValueAdder(ProgramClass targetClass,
Annotation targetAnnotation,
boolean replaceElementValues)
Creates a new ElementValueAdder that will copy element values into the
given target annotation.
|
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,
ArrayElementValue targetArrayElementValue,
boolean replaceElementValues)
Creates a new ElementValueAdder that will copy element values into the
given target element value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
visitAnnotationElementValue(Clazz clazz,
Annotation annotation,
AnnotationElementValue annotationElementValue) |
void |
visitArrayElementValue(Clazz clazz,
Annotation annotation,
ArrayElementValue arrayElementValue) |
void |
visitClassElementValue(Clazz clazz,
Annotation annotation,
ClassElementValue classElementValue) |
void |
visitConstantElementValue(Clazz clazz,
Annotation annotation,
ConstantElementValue constantElementValue) |
void |
visitEnumConstantElementValue(Clazz clazz,
Annotation annotation,
EnumConstantElementValue enumConstantElementValue) |
public ElementValueAdder(ProgramClass targetClass, AnnotationDefaultAttribute targetAnnotationDefaultAttribute, boolean replaceElementValues)
public ElementValueAdder(ProgramClass targetClass, Annotation targetAnnotation, boolean replaceElementValues)
public ElementValueAdder(ProgramClass targetClass, ArrayElementValue targetArrayElementValue, boolean replaceElementValues)
public void visitConstantElementValue(Clazz clazz, Annotation annotation, ConstantElementValue constantElementValue)
visitConstantElementValue in interface ElementValueVisitorpublic void visitEnumConstantElementValue(Clazz clazz, Annotation annotation, EnumConstantElementValue enumConstantElementValue)
visitEnumConstantElementValue in interface ElementValueVisitorpublic void visitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElementValue)
visitClassElementValue in interface ElementValueVisitorpublic void visitAnnotationElementValue(Clazz clazz, Annotation annotation, AnnotationElementValue annotationElementValue)
visitAnnotationElementValue in interface ElementValueVisitorpublic void visitArrayElementValue(Clazz clazz, Annotation annotation, ArrayElementValue arrayElementValue)
visitArrayElementValue in interface ElementValueVisitorCopyright © 2015. All Rights Reserved.