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 AnnotationValue
condition
private AnnotationValue
falseExpression
private AnnotationValue
trueExpression
-
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.Object
accept(ExpressionVisitor visitor)
Accept a visitor for this value.AnnotationValue
getCondition()
AnnotationValue
getFalseExpression()
java.lang.String
getParameterValue()
Get a parameter value forJavaAnnotation.getNamedParameter(String)
.AnnotationValue
getTrueExpression()
java.lang.String
toString()
-
-
-
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:
accept
in 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:
getParameterValue
in interfaceExpression
- Returns:
- Parameter value
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-