Package org.eclipse.xtext.xtext
Class ConditionEvaluator
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T>
-
- org.eclipse.xtext.util.XtextSwitch<java.lang.Boolean>
-
- org.eclipse.xtext.xtext.ConditionEvaluator
-
public class ConditionEvaluator extends XtextSwitch<java.lang.Boolean>
-
-
Field Summary
-
Fields inherited from class org.eclipse.xtext.util.XtextSwitch
modelPackage
-
-
Constructor Summary
Constructors Constructor Description ConditionEvaluator(java.util.Set<Parameter> paramValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class org.eclipse.xtext.util.XtextSwitch
caseAbstractElement, caseAbstractMetamodelDeclaration, caseAbstractNegatedToken, caseAbstractRule, caseAction, caseAlternatives, caseAnnotation, 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
-
-
-
-
Constructor Detail
-
ConditionEvaluator
public ConditionEvaluator(java.util.Set<Parameter> paramValues)
-
-
Method Detail
-
evaluate
public boolean evaluate(Condition condition)
-
caseDisjunction
public java.lang.Boolean caseDisjunction(Disjunction object)
Description copied from class:XtextSwitch
Returns the result of interpreting the object as an instance of 'Disjunction'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseDisjunction
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Disjunction'.
- See Also:
doSwitch(EObject)
-
caseConjunction
public java.lang.Boolean caseConjunction(Conjunction object)
Description copied from class:XtextSwitch
Returns the result of interpreting the object as an instance of 'Conjunction'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseConjunction
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Conjunction'.
- See Also:
doSwitch(EObject)
-
caseNegation
public java.lang.Boolean caseNegation(Negation object)
Description copied from class:XtextSwitch
Returns the result of interpreting the object as an instance of 'Negation'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseNegation
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Negation'.
- See Also:
doSwitch(EObject)
-
caseParameterReference
public java.lang.Boolean caseParameterReference(ParameterReference object)
Description copied from class:XtextSwitch
Returns the result of interpreting the object as an instance of 'Parameter Reference'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseParameterReference
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Parameter Reference'.
- See Also:
doSwitch(EObject)
-
caseLiteralCondition
public java.lang.Boolean caseLiteralCondition(LiteralCondition object)
Description copied from class:XtextSwitch
Returns the result of interpreting the object as an instance of 'Literal Condition'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseLiteralCondition
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Literal Condition'.
- See Also:
doSwitch(EObject)
-
-