Package org.jvnet.jaxb.annox.parser
Class XAnnotationParser
- java.lang.Object
-
- org.jvnet.jaxb.annox.parser.XAnnotationParser
-
public class XAnnotationParser extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static XAnnotationParserINSTANCE
-
Constructor Summary
Constructors Constructor Description XAnnotationParser()Default constructor.XAnnotationParser(ClassLoader classLoader)Constructor with a specified class loader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XAnnotation<?>parse(com.github.javaparser.ast.expr.AnnotationExpr annotationElement)XAnnotation<?>[]parse(com.github.javaparser.ast.expr.AnnotationExpr[] annotationElements)XAnnotation<?>parse(Annotation annotation)XAnnotation<?>[]parse(Annotation[] annotations)XAnnotation<?>parse(String annotationString)XAnnotation<?>[]parse(String[] annotationStrings)XAnnotation<?>parse(Element annotationElement)XAnnotation<?>[]parse(Element[] annotationElements)XAnnotationField<?>parseField(com.github.javaparser.ast.expr.Expression annotationExpression, String name, Class<?> type)XAnnotationField<?>parseField(Annotation annotation, String name, Class<?> type)XAnnotationField<?>parseField(Element annotationElement, String name, Class<?> type)XAnnotationField<?>[]parseFields(com.github.javaparser.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 Detail
-
INSTANCE
public static final XAnnotationParser INSTANCE
-
-
Constructor Detail
-
XAnnotationParser
public XAnnotationParser()
Default constructor.
-
XAnnotationParser
public XAnnotationParser(ClassLoader classLoader)
Constructor with a specified class loader.- Parameters:
classLoader- the class loader which should be used to get classes (like annotations)
-
-
Method Detail
-
parse
public XAnnotation<?> parse(Annotation annotation)
-
parse
public XAnnotation<?>[] parse(Annotation[] annotations)
-
parse
public XAnnotation<?> parse(Element annotationElement) throws AnnotationElementParseException
- Throws:
AnnotationElementParseException
-
parse
public XAnnotation<?>[] parse(Element[] annotationElements) throws AnnotationElementParseException
- Throws:
AnnotationElementParseException
-
parse
public XAnnotation<?> parse(String annotationString) throws AnnotationStringParseException, AnnotationExpressionParseException
-
parse
public XAnnotation<?>[] parse(String[] annotationStrings) throws AnnotationStringParseException, AnnotationExpressionParseException
-
parse
public XAnnotation<?> parse(com.github.javaparser.ast.expr.AnnotationExpr annotationElement) throws AnnotationExpressionParseException
-
parse
public XAnnotation<?>[] parse(com.github.javaparser.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(com.github.javaparser.ast.expr.AnnotationExpr annotationExpr, Class<? extends Annotation> annotationClass) throws AnnotationExpressionParseException
-
parseField
public XAnnotationField<?> parseField(com.github.javaparser.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
-
-