public class ConditionEvaluator extends XtextSwitch<java.lang.Boolean>
modelPackage
Constructor and Description |
---|
ConditionEvaluator(java.util.Set<Parameter> paramValues) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
caseConjunction(Conjunction object)
Returns the result of interpreting the object as an instance of 'Conjunction'
|
java.lang.Boolean |
caseDisjunction(Disjunction object)
Returns the result of interpreting the object as an instance of 'Disjunction'
|
java.lang.Boolean |
caseLiteralCondition(LiteralCondition object)
Returns the result of interpreting the object as an instance of 'Literal Condition'
|
java.lang.Boolean |
caseNegation(Negation object)
Returns the result of interpreting the object as an instance of 'Negation'
|
java.lang.Boolean |
caseParameterReference(ParameterReference object)
Returns the result of interpreting the object as an instance of 'Parameter Reference'
|
boolean |
evaluate(Condition condition) |
caseAbstractElement, caseAbstractMetamodelDeclaration, caseAbstractNegatedToken, caseAbstractRule, caseAction, caseAlternatives, caseAssignment, caseCharacterRange, caseCompositeCondition, caseCompoundElement, caseCondition, caseCrossReference, caseEnumLiteralDeclaration, caseEnumRule, caseEOF, caseGeneratedMetamodel, caseGrammar, caseGroup, caseKeyword, caseNamedArgument, caseNegatedToken, caseParameter, caseParserRule, caseReferencedMetamodel, caseRuleCall, caseTerminalRule, caseTypeRef, caseUnorderedGroup, caseUntilToken, caseWildcard, defaultCase, doSwitch, isSwitchFor
public ConditionEvaluator(java.util.Set<Parameter> paramValues)
public boolean evaluate(Condition condition)
public java.lang.Boolean caseDisjunction(Disjunction object)
XtextSwitch
caseDisjunction
in class XtextSwitch<java.lang.Boolean>
object
- the target of the switch.doSwitch(EObject)
public java.lang.Boolean caseConjunction(Conjunction object)
XtextSwitch
caseConjunction
in class XtextSwitch<java.lang.Boolean>
object
- the target of the switch.doSwitch(EObject)
public java.lang.Boolean caseNegation(Negation object)
XtextSwitch
caseNegation
in class XtextSwitch<java.lang.Boolean>
object
- the target of the switch.doSwitch(EObject)
public java.lang.Boolean caseParameterReference(ParameterReference object)
XtextSwitch
caseParameterReference
in class XtextSwitch<java.lang.Boolean>
object
- the target of the switch.doSwitch(EObject)
public java.lang.Boolean caseLiteralCondition(LiteralCondition object)
XtextSwitch
caseLiteralCondition
in class XtextSwitch<java.lang.Boolean>
object
- the target of the switch.doSwitch(EObject)