public class XGenericFieldParser<T,V> extends XAnnotationFieldParser<T,V>
Constructor and Description |
---|
XGenericFieldParser() |
Modifier and Type | Method and 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(Annotation annotation,
String name,
Class<?> type) |
XAnnotationField<T> |
parse(Element element,
String name,
Class<?> type) |
XAnnotationField<T> |
parse(japa.parser.ast.expr.Expression expression,
String name,
Class<?> type) |
getAnnotationFieldValue
public static final XAnnotationFieldParser<Boolean,Boolean> BOOLEAN
public static final XAnnotationFieldParser<Byte,Byte> BYTE
public static final XAnnotationFieldParser<Integer,Integer> INT
public static final XAnnotationFieldParser<Long,Long> LONG
public static final XAnnotationFieldParser<Short,Short> SHORT
public static final XAnnotationFieldParser<Character,Character> CHAR
public static final XAnnotationFieldParser<Class<?>,Class<?>> CLASS
public static final XAnnotationFieldParser<Double,Double> DOUBLE
public static final XAnnotationFieldParser<Float,Float> FLOAT
public static final XAnnotationFieldParser<Enum<?>,Enum<?>> ENUM
public static final XAnnotationFieldParser<String,String> STRING
public static final XAnnotationFieldParser<?,?> ANNOTATION
public static final XAnnotationFieldParser<Boolean[],Boolean[]> BOOLEAN_ARRAY
public static final XAnnotationFieldParser<Byte[],Byte[]> BYTE_ARRAY
public static final XAnnotationFieldParser<Integer[],Integer[]> INT_ARRAY
public static final XAnnotationFieldParser<Long[],Long[]> LONG_ARRAY
public static final XAnnotationFieldParser<Short[],Short[]> SHORT_ARRAY
public static final XAnnotationFieldParser<Character[],Character[]> CHAR_ARRAY
public static final XAnnotationFieldParser<Class<?>[],Class<?>[]> CLASS_ARRAY
public static final XAnnotationFieldParser<Double[],Double[]> DOUBLE_ARRAY
public static final XAnnotationFieldParser<Float[],Float[]> FLOAT_ARRAY
public static final XAnnotationFieldParser<Enum<?>[],Enum<?>[]> ENUM_ARRAY
public static final XAnnotationFieldParser<String[],String[]> STRING_ARRAY
public static final XAnnotationArrayAnnotationFieldParser ANNOTATION_ARRAY
public static final XGenericFieldParser GENERIC
public XAnnotationField<T> parse(Element element, String name, Class<?> type) throws AnnotationElementParseException
parse
in class XAnnotationFieldParser<T,V>
AnnotationElementParseException
public XAnnotationField<T> parse(Annotation annotation, String name, Class<?> type) throws NoSuchAnnotationFieldException
parse
in class XAnnotationFieldParser<T,V>
NoSuchAnnotationFieldException
public XAnnotationField<T> construct(String name, V value, Class<?> type)
construct
in class XAnnotationFieldParser<T,V>
public XAnnotationField<T> parse(japa.parser.ast.expr.Expression expression, String name, Class<?> type) throws AnnotationExpressionParseException
parse
in class XAnnotationFieldParser<T,V>
AnnotationExpressionParseException
public static <T,V> XAnnotationFieldParser<T,V> generic()
public static XAnnotationFieldParser<?,?> detectType(Class<?> theClass)
Copyright © 2006–2016. All rights reserved.