Class EvaluatingVisitor
java.lang.Object
com.thoughtworks.qdox.builder.impl.EvaluatingVisitor
- All Implemented Interfaces:
ExpressionVisitor
Visitor that evaluates annotation expressions.
Users of this class must override getFieldReferenceValue(JavaField)
to return values for
referenced fields.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
getFieldReferenceValue
(JavaField javaField) List<?>
getListValue
(JavaAnnotation annotation, String property) getValue
(JavaAnnotation 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) List<?>
visit
(AnnotationValueList valueList) visit
(Assignment assignment) visit
(ExclusiveOr annotationExclusiveOr) visit
(GreaterEquals greaterEquals) visit
(GreaterThan op) visit
(LessEquals lessEquals) visit
(LogicalAnd and) visit
(LogicalNot not) visit
(MethodInvocation methodInvocation) visit
(ParenExpression parenExpression) visit
(PostDecrement postDecrement) visit
(PostIncrement postIncrement) visit
(PreDecrement preDecrement) visit
(PreIncrement preIncrement) visit
(ShiftRight shiftRight) visit
(UnsignedShiftRight shiftRight) visit
(JavaAnnotation annotation)
-
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,
- Parameters:
left
- the left hand side instanceright
- the right hand side instance- Returns:
- the expected result Class
- See Also:
-
numericResultType
Return the numeric result type of a binary operatorPerforms binary numeric promotion as specified in the Java Language Specification,
- Parameters:
left
- the left hand side instanceright
- the right hand side instance- Returns:
- the expected result Class
- See Also:
-
unaryNumericResultType
Return the result type of an unary operatorPerforms unary numeric promotion as specified in the Java Language Specification,
- Parameters:
value
- the instance- Returns:
- the expected result Class
- See Also:
-
unaryResultType
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
- Throws:
UnsupportedOperationException
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
getFieldReferenceValue
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-