Package org.jvnet.jaxb.annox.parser
Class XGenericFieldParser<T,V>
- java.lang.Object
-
- org.jvnet.jaxb.annox.parser.XAnnotationFieldParser<T,V>
-
- org.jvnet.jaxb.annox.parser.XGenericFieldParser<T,V>
-
public class XGenericFieldParser<T,V> extends XAnnotationFieldParser<T,V>
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description XGenericFieldParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description XAnnotationField<T>construct(String name, V value, Class<?> type)static XAnnotationFieldParser<?,?>detectType(Class<?> theClass)static <T,V>
XAnnotationFieldParser<T,V>generic()XAnnotationField<T>parse(com.github.javaparser.ast.expr.Expression expression, String name, Class<?> type)XAnnotationField<T>parse(Annotation annotation, String name, Class<?> type)XAnnotationField<T>parse(Element element, String name, Class<?> type)-
Methods inherited from class org.jvnet.jaxb.annox.parser.XAnnotationFieldParser
getAnnotationFieldValue
-
-
-
-
Field Detail
-
BOOLEAN
public static final XAnnotationFieldParser<Boolean,Boolean> BOOLEAN
-
BYTE
public static final XAnnotationFieldParser<Byte,Byte> BYTE
-
INT
public static final XAnnotationFieldParser<Integer,Integer> INT
-
LONG
public static final XAnnotationFieldParser<Long,Long> LONG
-
SHORT
public static final XAnnotationFieldParser<Short,Short> SHORT
-
CHAR
public static final XAnnotationFieldParser<Character,Character> CHAR
-
CLASS
public static final XAnnotationFieldParser<Class<?>,Class<?>> CLASS
-
DOUBLE
public static final XAnnotationFieldParser<Double,Double> DOUBLE
-
FLOAT
public static final XAnnotationFieldParser<Float,Float> FLOAT
-
ENUM
public static final XAnnotationFieldParser<Enum<?>,Enum<?>> ENUM
-
STRING
public static final XAnnotationFieldParser<String,String> STRING
-
ANNOTATION
public static final XAnnotationFieldParser<?,?> ANNOTATION
-
BOOLEAN_ARRAY
public static final XAnnotationFieldParser<Boolean[],Boolean[]> BOOLEAN_ARRAY
-
BYTE_ARRAY
public static final XAnnotationFieldParser<Byte[],Byte[]> BYTE_ARRAY
-
INT_ARRAY
public static final XAnnotationFieldParser<Integer[],Integer[]> INT_ARRAY
-
LONG_ARRAY
public static final XAnnotationFieldParser<Long[],Long[]> LONG_ARRAY
-
SHORT_ARRAY
public static final XAnnotationFieldParser<Short[],Short[]> SHORT_ARRAY
-
CHAR_ARRAY
public static final XAnnotationFieldParser<Character[],Character[]> CHAR_ARRAY
-
CLASS_ARRAY
public static final XAnnotationFieldParser<Class<?>[],Class<?>[]> CLASS_ARRAY
-
DOUBLE_ARRAY
public static final XAnnotationFieldParser<Double[],Double[]> DOUBLE_ARRAY
-
FLOAT_ARRAY
public static final XAnnotationFieldParser<Float[],Float[]> FLOAT_ARRAY
-
ENUM_ARRAY
public static final XAnnotationFieldParser<Enum<?>[],Enum<?>[]> ENUM_ARRAY
-
STRING_ARRAY
public static final XAnnotationFieldParser<String[],String[]> STRING_ARRAY
-
ANNOTATION_ARRAY
public static final XAnnotationArrayAnnotationFieldParser ANNOTATION_ARRAY
-
GENERIC
public static final XGenericFieldParser GENERIC
-
-
Method Detail
-
parse
public XAnnotationField<T> parse(Element element, String name, Class<?> type) throws AnnotationElementParseException
- Specified by:
parsein classXAnnotationFieldParser<T,V>- Throws:
AnnotationElementParseException
-
parse
public XAnnotationField<T> parse(Annotation annotation, String name, Class<?> type) throws NoSuchAnnotationFieldException
- Specified by:
parsein classXAnnotationFieldParser<T,V>- Throws:
NoSuchAnnotationFieldException
-
construct
public XAnnotationField<T> construct(String name, V value, Class<?> type)
- Specified by:
constructin classXAnnotationFieldParser<T,V>
-
parse
public XAnnotationField<T> parse(com.github.javaparser.ast.expr.Expression expression, String name, Class<?> type) throws AnnotationExpressionParseException
- Specified by:
parsein classXAnnotationFieldParser<T,V>- Throws:
AnnotationExpressionParseException
-
generic
public static <T,V> XAnnotationFieldParser<T,V> generic()
-
detectType
public static XAnnotationFieldParser<?,?> detectType(Class<?> theClass)
-
-