Package org.eclipse.xtext.xtext
Class OverriddenValueInspector
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T>
-
- org.eclipse.xtext.util.XtextSwitch<Result>
-
- org.eclipse.xtext.xtext.XtextRuleInspector<java.lang.Boolean,ParserRule>
-
- org.eclipse.xtext.xtext.OverriddenValueInspector
-
public class OverriddenValueInspector extends XtextRuleInspector<java.lang.Boolean,ParserRule>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ISSUE_CODE
-
Fields inherited from class org.eclipse.xtext.util.XtextSwitch
modelPackage
-
-
Constructor Summary
Constructors Constructor Description OverriddenValueInspector(ValidationMessageAcceptor acceptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addVisited(AbstractRule rule)
protected boolean
canInspect(ParserRule rule)
java.lang.Boolean
caseAbstractElement(AbstractElement object)
Returns the result of interpreting the object as an instance of 'Abstract Element'.java.lang.Boolean
caseAction(Action object)
Returns the result of interpreting the object as an instance of 'Action'.java.lang.Boolean
caseAlternatives(Alternatives object)
Returns the result of interpreting the object as an instance of 'Alternatives'.java.lang.Boolean
caseAssignment(Assignment object)
Returns the result of interpreting the object as an instance of 'Assignment'.java.lang.Boolean
caseCompoundElement(CompoundElement object)
Returns the result of interpreting the object as an instance of 'Compound Element'.java.lang.Boolean
caseRuleCall(RuleCall object)
Returns the result of interpreting the object as an instance of 'Rule Call'.protected java.lang.Boolean
doInspect(ParserRule rule)
protected java.lang.String
getIssueCode()
protected com.google.common.collect.Multimap<java.lang.String,AbstractElement>
newMultimap()
-
Methods inherited from class org.eclipse.xtext.xtext.XtextRuleInspector
acceptError, acceptWarning, getNestingLevel, getTypeRefName, handleResult, inspect, removeVisited
-
Methods inherited from class org.eclipse.xtext.util.XtextSwitch
caseAbstractMetamodelDeclaration, caseAbstractNegatedToken, caseAbstractRule, caseAnnotation, caseCharacterRange, caseCompositeCondition, caseCondition, caseConjunction, caseCrossReference, caseDisjunction, caseEnumLiteralDeclaration, caseEnumRule, caseEOF, caseGeneratedMetamodel, caseGrammar, caseGroup, caseKeyword, caseLiteralCondition, caseNamedArgument, caseNegatedToken, caseNegation, caseParameter, caseParameterReference, caseParserRule, caseReferencedMetamodel, caseTerminalRule, caseTypeRef, caseUnorderedGroup, caseUntilToken, caseWildcard, defaultCase, doSwitch, isSwitchFor
-
-
-
-
Field Detail
-
ISSUE_CODE
public static final java.lang.String ISSUE_CODE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OverriddenValueInspector
public OverriddenValueInspector(ValidationMessageAcceptor acceptor)
-
-
Method Detail
-
getIssueCode
protected java.lang.String getIssueCode()
- Overrides:
getIssueCode
in classXtextRuleInspector<java.lang.Boolean,ParserRule>
-
addVisited
public boolean addVisited(AbstractRule rule)
- Overrides:
addVisited
in classXtextRuleInspector<java.lang.Boolean,ParserRule>
-
canInspect
protected boolean canInspect(ParserRule rule)
- Overrides:
canInspect
in classXtextRuleInspector<java.lang.Boolean,ParserRule>
-
doInspect
protected java.lang.Boolean doInspect(ParserRule rule)
- Overrides:
doInspect
in classXtextRuleInspector<java.lang.Boolean,ParserRule>
-
newMultimap
protected com.google.common.collect.Multimap<java.lang.String,AbstractElement> newMultimap()
-
caseAssignment
public java.lang.Boolean caseAssignment(Assignment object)
Description copied from class:XtextSwitch
Returns the result of interpreting the object as an instance of 'Assignment'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseAssignment
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Assignment'.
- See Also:
doSwitch(EObject)
-
caseAction
public java.lang.Boolean caseAction(Action object)
Description copied from class:XtextSwitch
Returns the result of interpreting the object as an instance of 'Action'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseAction
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Action'.
- See Also:
doSwitch(EObject)
-
caseRuleCall
public java.lang.Boolean caseRuleCall(RuleCall object)
Description copied from class:XtextSwitch
Returns the result of interpreting the object as an instance of 'Rule Call'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseRuleCall
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Rule Call'.
- See Also:
doSwitch(EObject)
-
caseAlternatives
public java.lang.Boolean caseAlternatives(Alternatives object)
Description copied from class:XtextSwitch
Returns the result of interpreting the object as an instance of 'Alternatives'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseAlternatives
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Alternatives'.
- See Also:
doSwitch(EObject)
-
caseAbstractElement
public java.lang.Boolean caseAbstractElement(AbstractElement object)
Description copied from class:XtextSwitch
Returns the result of interpreting the object as an instance of 'Abstract Element'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseAbstractElement
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Abstract Element'.
- See Also:
doSwitch(EObject)
-
caseCompoundElement
public java.lang.Boolean caseCompoundElement(CompoundElement object)
Description copied from class:XtextSwitch
Returns the result of interpreting the object as an instance of 'Compound Element'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseCompoundElement
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Compound Element'.
- See Also:
doSwitch(EObject)
-
-