public class AnnotationCreator extends Object implements AnnotationParserVisitor
Constructor and Description |
---|
AnnotationCreator(Class<?> annotation,
Class<?> type) |
AnnotationCreator(Class<?> annotation,
Class<?> type,
ClassLoader loader) |
Modifier and Type | Method and Description |
---|---|
static Object |
createAnnotation(ASTAnnotation node,
Class<?> annotation)
Create annotation.
|
static Object |
createAnnotation(ASTAnnotation node,
Class<?> annotation,
ClassLoader cl) |
static Object |
createAnnotation(String annotationExpr,
Class<?> annotation)
Create annotation.
|
static Object |
createAnnotation(String annotationExpr,
Class<?> annotation,
boolean replace)
Create annotation.
|
static Object |
createAnnotation(String annotationExpr,
Class<?> annotation,
Properties properties)
Create annotation.
|
static Object |
createAnnotation(String annotationExpr,
ClassLoader cl)
Create annotation.
|
static Object |
createAnnotation(String annotationExpr,
ClassLoader cl,
boolean replace)
Create annotation.
|
static Object |
createAnnotation(String annotationExpr,
ClassLoader cl,
Properties properties)
Create annotation.
|
Object |
visit(ASTAnnotation node,
Object data) |
Object |
visit(ASTChar node,
Object data) |
Object |
visit(ASTIdentifier node,
Object data) |
Object |
visit(ASTMemberValueArrayInitializer node,
Object data) |
Object |
visit(ASTMemberValuePair node,
Object data) |
Object |
visit(ASTMemberValuePairs node,
Object data) |
Object |
visit(ASTSingleMemberValue node,
Object data) |
Object |
visit(ASTStart node,
Object data) |
Object |
visit(ASTString node,
Object data) |
Object |
visit(SimpleNode node,
Object data) |
public Object typeValue
public AnnotationCreator(Class<?> annotation, Class<?> type, ClassLoader loader)
public Object visit(ASTMemberValuePairs node, Object data)
visit
in interface AnnotationParserVisitor
public Object visit(ASTMemberValuePair node, Object data)
visit
in interface AnnotationParserVisitor
public Object visit(ASTSingleMemberValue node, Object data)
visit
in interface AnnotationParserVisitor
public Object visit(ASTIdentifier node, Object data)
visit
in interface AnnotationParserVisitor
public Object visit(ASTString node, Object data)
visit
in interface AnnotationParserVisitor
public Object visit(ASTChar node, Object data)
visit
in interface AnnotationParserVisitor
public Object visit(ASTMemberValueArrayInitializer node, Object data)
visit
in interface AnnotationParserVisitor
public Object visit(ASTAnnotation node, Object data)
visit
in interface AnnotationParserVisitor
public Object visit(SimpleNode node, Object data)
visit
in interface AnnotationParserVisitor
public Object visit(ASTStart node, Object data)
visit
in interface AnnotationParserVisitor
public static Object createAnnotation(ASTAnnotation node, Class<?> annotation, ClassLoader cl) throws Exception
Exception
public static Object createAnnotation(ASTAnnotation node, Class<?> annotation) throws Exception
node
- the ast annotation nodeannotation
- the annotation classException
- for any errorpublic static Object createAnnotation(String annotationExpr, Class<?> annotation) throws Exception
annotationExpr
- the annotation expressionannotation
- the annotation classException
- for any errorpublic static Object createAnnotation(String annotationExpr, ClassLoader cl) throws Exception
annotationExpr
- the annotation expressioncl
- the classloader to useException
- for any errorpublic static Object createAnnotation(String annotationExpr, Class<?> annotation, boolean replace) throws Exception
annotationExpr
- the annotation expressionannotation
- the annotation classreplace
- should we replace possible properties in expressionException
- for any errorpublic static Object createAnnotation(String annotationExpr, ClassLoader cl, boolean replace) throws Exception
annotationExpr
- the annotation expressioncl
- the classloader to usereplace
- should we replace possible properties in expressionException
- for any errorpublic static Object createAnnotation(String annotationExpr, Class<?> annotation, Properties properties) throws Exception
annotationExpr
- the annotation expressionannotation
- the annotation classproperties
- the properties to use for replacementException
- for any errorpublic static Object createAnnotation(String annotationExpr, ClassLoader cl, Properties properties) throws Exception
annotationExpr
- the annotation expressioncl
- the classloader to useproperties
- the properties to use for replacementException
- for any errorCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.