Class Query
- java.lang.Object
-
- com.thoughtworks.qdox.model.expression.Query
-
- All Implemented Interfaces:
AnnotationValue,Expression
public class Query extends java.lang.Object implements AnnotationValue
-
-
Field Summary
Fields Modifier and Type Field Description private AnnotationValueconditionprivate AnnotationValuefalseExpressionprivate AnnotationValuetrueExpression
-
Constructor Summary
Constructors Constructor Description Query(AnnotationValue condition, AnnotationValue trueExpression, AnnotationValue falseExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectaccept(ExpressionVisitor visitor)Accept a visitor for this value.AnnotationValuegetCondition()AnnotationValuegetFalseExpression()java.lang.StringgetParameterValue()Get a parameter value forJavaAnnotation.getNamedParameter(String).AnnotationValuegetTrueExpression()java.lang.StringtoString()
-
-
-
Field Detail
-
condition
private final AnnotationValue condition
-
trueExpression
private final AnnotationValue trueExpression
-
falseExpression
private final AnnotationValue falseExpression
-
-
Constructor Detail
-
Query
public Query(AnnotationValue condition, AnnotationValue trueExpression, AnnotationValue falseExpression)
-
-
Method Detail
-
accept
public java.lang.Object accept(ExpressionVisitor visitor)
Accept a visitor for this value.- Specified by:
acceptin interfaceAnnotationValue- Parameters:
visitor- Visitor- Returns:
- Visitor result
-
getCondition
public AnnotationValue getCondition()
-
getTrueExpression
public AnnotationValue getTrueExpression()
-
getFalseExpression
public AnnotationValue getFalseExpression()
-
getParameterValue
public java.lang.String getParameterValue()
Get a parameter value forJavaAnnotation.getNamedParameter(String).- Specified by:
getParameterValuein interfaceExpression- Returns:
- Parameter value
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-