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.BooleancaseConjunction(Conjunction object)Returns the result of interpreting the object as an instance of 'Conjunction'.java.lang.BooleancaseDisjunction(Disjunction object)Returns the result of interpreting the object as an instance of 'Disjunction'.java.lang.BooleancaseLiteralCondition(LiteralCondition object)Returns the result of interpreting the object as an instance of 'Literal Condition'.java.lang.BooleancaseNegation(Negation object)Returns the result of interpreting the object as an instance of 'Negation'.java.lang.BooleancaseParameterReference(ParameterReference object)Returns the result of interpreting the object as an instance of 'Parameter Reference'.booleanevaluate(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:XtextSwitchReturns 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:
caseDisjunctionin 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:XtextSwitchReturns 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:
caseConjunctionin 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:XtextSwitchReturns 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:
caseNegationin 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:XtextSwitchReturns 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:
caseParameterReferencein 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:XtextSwitchReturns 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:
caseLiteralConditionin 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)
-
-