com.thoughtworks.qdox.model.annotation

Class AnnotationQuery

Implemented Interfaces:
AnnotationValue

public class AnnotationQuery
extends java.lang.Object
implements AnnotationValue

Constructor Summary

AnnotationQuery(AnnotationValue condition, AnnotationValue trueExpression, AnnotationValue falseExpression)

Method Summary

Object
accept(AnnotationVisitor visitor)
Accept a visitor for this value.
AnnotationValue
getCondition()
AnnotationValue
getFalseExpression()
Object
getParameterValue()
Get a parameter value for Annotation.getNamedParameter(String).
AnnotationValue
getTrueExpression()
String
toString()

Constructor Details

AnnotationQuery

public AnnotationQuery(AnnotationValue condition,
                       AnnotationValue trueExpression,
                       AnnotationValue falseExpression)

Method Details

accept

public Object accept(AnnotationVisitor visitor)
Accept a visitor for this value.
Specified by:
accept in interface AnnotationValue
Parameters:
visitor - Visitor
Returns:
Visitor result

getCondition

public AnnotationValue getCondition()

getFalseExpression

public AnnotationValue getFalseExpression()

getParameterValue

public Object getParameterValue()
Specified by:
getParameterValue in interface AnnotationValue
Returns:
Parameter value

getTrueExpression

public AnnotationValue getTrueExpression()

toString

public String toString()