public abstract class EvaluatingVisitor extends Object implements AnnotationVisitor
Users of this class must override
getFieldReferenceValue(JavaField)
to return values
for referenced fields.
Constructor and Description |
---|
EvaluatingVisitor() |
public Object getValue(Annotation annotation, String property)
public List getListValue(Annotation annotation, String property)
protected static Class resultType(Object left, Object right)
Performs binary numeric promotion as specified in the Java Language Specification,
protected static Class numericResultType(Object left, Object right)
Performs binary numeric promotion as specified in the Java Language Specification,
protected static Class unaryNumericResultType(Object value)
Performs unary numeric promotion as specified in the Java Language Specification,
public Object visitAnnotation(Annotation annotation)
visitAnnotation
in interface AnnotationVisitor
public Object visitAnnotationAdd(AnnotationAdd op)
visitAnnotationAdd
in interface AnnotationVisitor
public Object visitAnnotationConstant(AnnotationConstant constant)
visitAnnotationConstant
in interface AnnotationVisitor
public Object visitAnnotationDivide(AnnotationDivide op)
visitAnnotationDivide
in interface AnnotationVisitor
public Object visitAnnotationFieldRef(AnnotationFieldRef fieldRef)
visitAnnotationFieldRef
in interface AnnotationVisitor
public Object visitAnnotationGreaterThan(AnnotationGreaterThan op)
visitAnnotationGreaterThan
in interface AnnotationVisitor
public Object visitAnnotationLessThan(AnnotationLessThan op)
visitAnnotationLessThan
in interface AnnotationVisitor
public Object visitAnnotationMultiply(AnnotationMultiply op)
visitAnnotationMultiply
in interface AnnotationVisitor
public Object visitAnnotationParenExpression(AnnotationParenExpression parenExpression)
visitAnnotationParenExpression
in interface AnnotationVisitor
public Object visitAnnotationSubtract(AnnotationSubtract op)
visitAnnotationSubtract
in interface AnnotationVisitor
public Object visitAnnotationTypeRef(AnnotationTypeRef typeRef)
visitAnnotationTypeRef
in interface AnnotationVisitor
public Object visitAnnotationValueList(AnnotationValueList valueList)
visitAnnotationValueList
in interface AnnotationVisitor
public Object visitAnnotationAnd(AnnotationAnd and)
visitAnnotationAnd
in interface AnnotationVisitor
public Object visitAnnotationGreaterEquals(AnnotationGreaterEquals greaterEquals)
visitAnnotationGreaterEquals
in interface AnnotationVisitor
public Object visitAnnotationLessEquals(AnnotationLessEquals lessEquals)
visitAnnotationLessEquals
in interface AnnotationVisitor
public Object visitAnnotationLogicalAnd(AnnotationLogicalAnd and)
visitAnnotationLogicalAnd
in interface AnnotationVisitor
public Object visitAnnotationLogicalNot(AnnotationLogicalNot not)
visitAnnotationLogicalNot
in interface AnnotationVisitor
public Object visitAnnotationLogicalOr(AnnotationLogicalOr or)
visitAnnotationLogicalOr
in interface AnnotationVisitor
public Object visitAnnotationMinusSign(AnnotationMinusSign sign)
visitAnnotationMinusSign
in interface AnnotationVisitor
public Object visitAnnotationNot(AnnotationNot not)
visitAnnotationNot
in interface AnnotationVisitor
public Object visitAnnotationOr(AnnotationOr or)
visitAnnotationOr
in interface AnnotationVisitor
public Object visitAnnotationPlusSign(AnnotationPlusSign sign)
visitAnnotationPlusSign
in interface AnnotationVisitor
public Object visitAnnotationRemainder(AnnotationRemainder remainder)
visitAnnotationRemainder
in interface AnnotationVisitor
public Object visitAnnotationShiftLeft(AnnotationShiftLeft shiftLeft)
visitAnnotationShiftLeft
in interface AnnotationVisitor
public Object visitAnnotationShiftRight(AnnotationShiftRight shiftRight)
visitAnnotationShiftRight
in interface AnnotationVisitor
public Object visitAnnotationUnsignedShiftRight(AnnotationUnsignedShiftRight shiftRight)
visitAnnotationUnsignedShiftRight
in interface AnnotationVisitor
public Object visitAnnotationEquals(AnnotationEquals annotationEquals)
visitAnnotationEquals
in interface AnnotationVisitor
public Object visitAnnotationExclusiveOr(AnnotationExclusiveOr annotationExclusiveOr)
visitAnnotationExclusiveOr
in interface AnnotationVisitor
public Object visitAnnotationNotEquals(AnnotationNotEquals annotationNotEquals)
visitAnnotationNotEquals
in interface AnnotationVisitor
public Object visitAnnotationQuery(AnnotationQuery annotationQuery)
visitAnnotationQuery
in interface AnnotationVisitor
public Object visitAnnotationCast(AnnotationCast annotationCast)
visitAnnotationCast
in interface AnnotationVisitor
Copyright © 2002-2013. All Rights Reserved.