Class EvaluatingVisitor
java.lang.Object
com.thoughtworks.qdox.model.annotation.EvaluatingVisitor
- All Implemented Interfaces:
AnnotationVisitor
Visitor that evaluates annotation expressions.
Users of this class must override
getFieldReferenceValue(JavaField)
to return values
for referenced fields.
- Author:
- Jochen Kuhnle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Object
getFieldReferenceValue
(JavaField javaField) getListValue
(Annotation annotation, String property) getValue
(Annotation annotation, String property) protected static Class
numericResultType
(Object left, Object right) Return the numeric result type of a binary operatorprotected static Class
resultType
(Object left, Object right) Return the result type of a binary operatorprotected static Class
unaryNumericResultType
(Object value) Return the result type of an unary operatorprotected static Class
unaryResultType
(Object value) visitAnnotation
(Annotation annotation) visitAnnotationCast
(AnnotationCast annotationCast) visitAnnotationConstant
(AnnotationConstant constant) visitAnnotationEquals
(AnnotationEquals annotationEquals) visitAnnotationExclusiveOr
(AnnotationExclusiveOr annotationExclusiveOr) visitAnnotationFieldRef
(AnnotationFieldRef fieldRef) visitAnnotationGreaterEquals
(AnnotationGreaterEquals greaterEquals) visitAnnotationLessEquals
(AnnotationLessEquals lessEquals) visitAnnotationNotEquals
(AnnotationNotEquals annotationNotEquals) visitAnnotationParenExpression
(AnnotationParenExpression parenExpression) visitAnnotationQuery
(AnnotationQuery annotationQuery) visitAnnotationRemainder
(AnnotationRemainder remainder) visitAnnotationShiftLeft
(AnnotationShiftLeft shiftLeft) visitAnnotationShiftRight
(AnnotationShiftRight shiftRight) visitAnnotationTypeRef
(AnnotationTypeRef typeRef) visitAnnotationValueList
(AnnotationValueList valueList)
-
Constructor Details
-
EvaluatingVisitor
public EvaluatingVisitor()
-
-
Method Details
-
getValue
-
getListValue
-
resultType
Return the result type of a binary operatorPerforms binary numeric promotion as specified in the Java Language Specification,
- See Also:
-
numericResultType
Return the numeric result type of a binary operatorPerforms binary numeric promotion as specified in the Java Language Specification,
- See Also:
-
unaryNumericResultType
Return the result type of an unary operatorPerforms unary numeric promotion as specified in the Java Language Specification,
- See Also:
-
unaryResultType
-
visitAnnotation
- Specified by:
visitAnnotation
in interfaceAnnotationVisitor
-
visitAnnotationAdd
- Specified by:
visitAnnotationAdd
in interfaceAnnotationVisitor
-
visitAnnotationConstant
- Specified by:
visitAnnotationConstant
in interfaceAnnotationVisitor
-
visitAnnotationDivide
- Specified by:
visitAnnotationDivide
in interfaceAnnotationVisitor
-
visitAnnotationFieldRef
- Specified by:
visitAnnotationFieldRef
in interfaceAnnotationVisitor
-
getFieldReferenceValue
-
visitAnnotationGreaterThan
- Specified by:
visitAnnotationGreaterThan
in interfaceAnnotationVisitor
-
visitAnnotationLessThan
- Specified by:
visitAnnotationLessThan
in interfaceAnnotationVisitor
-
visitAnnotationMultiply
- Specified by:
visitAnnotationMultiply
in interfaceAnnotationVisitor
-
visitAnnotationParenExpression
- Specified by:
visitAnnotationParenExpression
in interfaceAnnotationVisitor
-
visitAnnotationSubtract
- Specified by:
visitAnnotationSubtract
in interfaceAnnotationVisitor
-
visitAnnotationTypeRef
- Specified by:
visitAnnotationTypeRef
in interfaceAnnotationVisitor
-
visitAnnotationValueList
- Specified by:
visitAnnotationValueList
in interfaceAnnotationVisitor
-
visitAnnotationAnd
- Specified by:
visitAnnotationAnd
in interfaceAnnotationVisitor
-
visitAnnotationGreaterEquals
- Specified by:
visitAnnotationGreaterEquals
in interfaceAnnotationVisitor
-
visitAnnotationLessEquals
- Specified by:
visitAnnotationLessEquals
in interfaceAnnotationVisitor
-
visitAnnotationLogicalAnd
- Specified by:
visitAnnotationLogicalAnd
in interfaceAnnotationVisitor
-
visitAnnotationLogicalNot
- Specified by:
visitAnnotationLogicalNot
in interfaceAnnotationVisitor
-
visitAnnotationLogicalOr
- Specified by:
visitAnnotationLogicalOr
in interfaceAnnotationVisitor
-
visitAnnotationMinusSign
- Specified by:
visitAnnotationMinusSign
in interfaceAnnotationVisitor
-
visitAnnotationNot
- Specified by:
visitAnnotationNot
in interfaceAnnotationVisitor
-
visitAnnotationOr
- Specified by:
visitAnnotationOr
in interfaceAnnotationVisitor
-
visitAnnotationPlusSign
- Specified by:
visitAnnotationPlusSign
in interfaceAnnotationVisitor
-
visitAnnotationRemainder
- Specified by:
visitAnnotationRemainder
in interfaceAnnotationVisitor
-
visitAnnotationShiftLeft
- Specified by:
visitAnnotationShiftLeft
in interfaceAnnotationVisitor
-
visitAnnotationShiftRight
- Specified by:
visitAnnotationShiftRight
in interfaceAnnotationVisitor
-
visitAnnotationUnsignedShiftRight
- Specified by:
visitAnnotationUnsignedShiftRight
in interfaceAnnotationVisitor
-
visitAnnotationEquals
- Specified by:
visitAnnotationEquals
in interfaceAnnotationVisitor
-
visitAnnotationExclusiveOr
- Specified by:
visitAnnotationExclusiveOr
in interfaceAnnotationVisitor
-
visitAnnotationNotEquals
- Specified by:
visitAnnotationNotEquals
in interfaceAnnotationVisitor
-
visitAnnotationQuery
- Specified by:
visitAnnotationQuery
in interfaceAnnotationVisitor
-
visitAnnotationCast
- Specified by:
visitAnnotationCast
in interfaceAnnotationVisitor
-