Package org.jvnet.basicjaxb_annox.parser
Class XAnnotationParser
java.lang.Object
org.jvnet.basicjaxb_annox.parser.XAnnotationParser
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.XAnnotationParser(ClassLoader classLoader) Constructor with a specified class loader. -
Method Summary
Modifier and TypeMethodDescriptionXAnnotation<?>parse(japa.parser.ast.expr.AnnotationExpr annotationElement) XAnnotation<?>[]parse(japa.parser.ast.expr.AnnotationExpr[] annotationElements) XAnnotation<?>parse(Annotation annotation) XAnnotation<?>[]parse(Annotation[] annotations) XAnnotation<?>XAnnotation<?>[]XAnnotation<?>XAnnotation<?>[]parseField(japa.parser.ast.expr.Expression annotationExpression, String name, Class<?> type) parseField(Annotation annotation, String name, Class<?> type) parseField(Element annotationElement, String name, Class<?> type) XAnnotationField<?>[]parseFields(japa.parser.ast.expr.AnnotationExpr annotationExpr, Class<? extends Annotation> annotationClass) XAnnotationField<?>[]parseFields(Annotation annotation, Class<? extends Annotation> annotationClass) XAnnotationField<?>[]parseFields(Element annotationElement, Class<? extends Annotation> annotationClass)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
XAnnotationParser
public XAnnotationParser()Default constructor. -
XAnnotationParser
Constructor with a specified class loader.- Parameters:
classLoader- the class loader which should be used to get classes (like annotations)
-
-
Method Details
-
parse
-
parse
-
parse
- Throws:
AnnotationElementParseException
-
parse
- Throws:
AnnotationElementParseException
-
parse
public XAnnotation<?> parse(String annotationString) throws AnnotationStringParseException, AnnotationExpressionParseException -
parse
public XAnnotation<?>[] parse(String[] annotationStrings) throws AnnotationStringParseException, AnnotationExpressionParseException -
parse
public XAnnotation<?> parse(japa.parser.ast.expr.AnnotationExpr annotationElement) throws AnnotationExpressionParseException -
parse
public XAnnotation<?>[] parse(japa.parser.ast.expr.AnnotationExpr[] annotationElements) throws AnnotationExpressionParseException -
parseFields
public XAnnotationField<?>[] parseFields(Element annotationElement, Class<? extends Annotation> annotationClass) throws AnnotationElementParseException - Throws:
AnnotationElementParseException
-
parseFields
public XAnnotationField<?>[] parseFields(Annotation annotation, Class<? extends Annotation> annotationClass) -
parseFields
public XAnnotationField<?>[] parseFields(japa.parser.ast.expr.AnnotationExpr annotationExpr, Class<? extends Annotation> annotationClass) throws AnnotationExpressionParseException -
parseField
public XAnnotationField<?> parseField(japa.parser.ast.expr.Expression annotationExpression, String name, Class<?> type) throws AnnotationExpressionParseException -
parseField
public XAnnotationField<?> parseField(Element annotationElement, String name, Class<?> type) throws AnnotationElementParseException - Throws:
AnnotationElementParseException
-
parseField
public XAnnotationField<?> parseField(Annotation annotation, String name, Class<?> type) throws NoSuchAnnotationFieldException - Throws:
NoSuchAnnotationFieldException
-