public class GrammarWithoutLeftRecursionInspector extends XtextSwitch<java.lang.Boolean> implements ValidationMessageAcceptor
modelPackageINSIGNIFICANT_INDEX| Constructor and Description |
|---|
GrammarWithoutLeftRecursionInspector(ValidationMessageAcceptor validationMessageAcceptor) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptError(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.ecore.EStructuralFeature feature,
int index,
java.lang.String code,
java.lang.String... issueData)
Annotate an instance, a feature value, or all feature values with an error.
|
void |
acceptError(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.ecore.EStructuralFeature feature,
java.lang.String code,
java.lang.String... issueData) |
void |
acceptError(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
int offset,
int length,
java.lang.String code,
java.lang.String... issueData)
Annotate a range of the resource with an error.
|
void |
acceptInfo(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.ecore.EStructuralFeature feature,
int index,
java.lang.String code,
java.lang.String... issueData)
Annotate an instance, a feature value, or all feature values with an info message.
|
void |
acceptInfo(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
int offset,
int length,
java.lang.String code,
java.lang.String... issueData)
Annotate a range of the resource with an info message..
|
void |
acceptWarning(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.ecore.EStructuralFeature feature,
int index,
java.lang.String code,
java.lang.String... issueData)
Annotate an instance, a feature value, or all feature values with a warning.
|
void |
acceptWarning(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.ecore.EStructuralFeature feature,
java.lang.String code,
java.lang.String... issueData) |
void |
acceptWarning(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
int offset,
int length,
java.lang.String code,
java.lang.String... issueData)
Annotate a range of the resource with a warning.
|
java.lang.Boolean |
caseAbstractElement(AbstractElement object)
Returns the result of interpreting the object as an instance of 'Abstract Element'.
|
java.lang.Boolean |
caseAbstractRule(AbstractRule object)
Returns the result of interpreting the object as an instance of 'Abstract Rule'.
|
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 |
caseCrossReference(CrossReference object)
Returns the result of interpreting the object as an instance of 'Cross Reference'.
|
java.lang.Boolean |
caseEnumLiteralDeclaration(EnumLiteralDeclaration object)
Returns the result of interpreting the object as an instance of 'Enum Literal Declaration'.
|
java.lang.Boolean |
caseGrammar(Grammar grammar)
Returns the result of interpreting the object as an instance of 'Grammar'.
|
java.lang.Boolean |
caseGroup(Group object)
Returns the result of interpreting the object as an instance of 'Group'.
|
java.lang.Boolean |
caseRuleCall(RuleCall object)
Returns the result of interpreting the object as an instance of 'Rule Call'.
|
java.lang.Boolean |
caseUnorderedGroup(UnorderedGroup object)
Returns the result of interpreting the object as an instance of 'Unordered Group'.
|
void |
createErrorMessages(RuleCall object) |
void |
inspect(Grammar grammar) |
caseAbstractMetamodelDeclaration, caseAbstractNegatedToken, caseAnnotation, caseCharacterRange, caseCompositeCondition, caseCompoundElement, caseCondition, caseConjunction, caseDisjunction, caseEnumRule, caseEOF, caseGeneratedMetamodel, caseKeyword, caseLiteralCondition, caseNamedArgument, caseNegatedToken, caseNegation, caseParameter, caseParameterReference, caseParserRule, caseReferencedMetamodel, caseTerminalRule, caseTypeRef, caseUntilToken, caseWildcard, defaultCase, doSwitch, isSwitchForpublic GrammarWithoutLeftRecursionInspector(ValidationMessageAcceptor validationMessageAcceptor)
public void inspect(Grammar grammar)
public java.lang.Boolean caseGrammar(Grammar grammar)
XtextSwitchcaseGrammar in class XtextSwitch<java.lang.Boolean>grammar - the target of the switch.doSwitch(EObject)public java.lang.Boolean caseAbstractRule(AbstractRule object)
XtextSwitchcaseAbstractRule in class XtextSwitch<java.lang.Boolean>object - the target of the switch.doSwitch(EObject)public java.lang.Boolean caseEnumLiteralDeclaration(EnumLiteralDeclaration object)
XtextSwitchcaseEnumLiteralDeclaration in class XtextSwitch<java.lang.Boolean>object - the target of the switch.doSwitch(EObject)public java.lang.Boolean caseRuleCall(RuleCall object)
XtextSwitchcaseRuleCall in class XtextSwitch<java.lang.Boolean>object - the target of the switch.doSwitch(EObject)public java.lang.Boolean caseAbstractElement(AbstractElement object)
XtextSwitchcaseAbstractElement in class XtextSwitch<java.lang.Boolean>object - the target of the switch.doSwitch(EObject)public java.lang.Boolean caseAction(Action object)
XtextSwitchcaseAction in class XtextSwitch<java.lang.Boolean>object - the target of the switch.doSwitch(EObject)public java.lang.Boolean caseGroup(Group object)
XtextSwitchcaseGroup in class XtextSwitch<java.lang.Boolean>object - the target of the switch.doSwitch(EObject)public java.lang.Boolean caseAlternatives(Alternatives object)
XtextSwitchcaseAlternatives in class XtextSwitch<java.lang.Boolean>object - the target of the switch.doSwitch(EObject)public java.lang.Boolean caseUnorderedGroup(UnorderedGroup object)
XtextSwitchcaseUnorderedGroup in class XtextSwitch<java.lang.Boolean>object - the target of the switch.doSwitch(EObject)public java.lang.Boolean caseAssignment(Assignment object)
XtextSwitchcaseAssignment in class XtextSwitch<java.lang.Boolean>object - the target of the switch.doSwitch(EObject)public java.lang.Boolean caseCrossReference(CrossReference object)
XtextSwitchcaseCrossReference in class XtextSwitch<java.lang.Boolean>object - the target of the switch.doSwitch(EObject)public void createErrorMessages(RuleCall object)
public void acceptError(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.ecore.EStructuralFeature feature,
java.lang.String code,
java.lang.String... issueData)
public void acceptWarning(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.ecore.EStructuralFeature feature,
java.lang.String code,
java.lang.String... issueData)
public void acceptError(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.ecore.EStructuralFeature feature,
int index,
java.lang.String code,
java.lang.String... issueData)
ValidationMessageAcceptoracceptError in interface ValidationMessageAcceptormessage - the error message. May not be null.object - the object or the feature holder. May not be null.feature - the feature or null if the complete instance should be annotated.index - the index of the erroneous value or -1 if all values are considered to be invalid. The index is ignored if
the feature is null or the feature is a single value feature.code - the optional issue code.issueData - the optional issue data.public void acceptError(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
int offset,
int length,
java.lang.String code,
java.lang.String... issueData)
ValidationMessageAcceptoracceptError in interface ValidationMessageAcceptormessage - the error message. May not be null.offset - the absolute offset in the resource.length - the length of the erroneous range.code - the optional issue code.issueData - the optional issue data.public void acceptWarning(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.ecore.EStructuralFeature feature,
int index,
java.lang.String code,
java.lang.String... issueData)
ValidationMessageAcceptoracceptWarning in interface ValidationMessageAcceptormessage - the warning message. May not be null.object - the object or the feature holder. May not be null.feature - the feature or null if the complete instance should be annotated.index - the index of the relevant value or -1 if all values are considered to be affected. The index is ignored if
the feature is null or the feature is a single value feature.code - the optional issue code.issueData - the optional issue data.public void acceptWarning(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
int offset,
int length,
java.lang.String code,
java.lang.String... issueData)
ValidationMessageAcceptoracceptWarning in interface ValidationMessageAcceptormessage - the warning message. May not be null.offset - the absolute offset in the resource.length - the length of the invalid range.code - the optional issue code.issueData - the optional issue data.public void acceptInfo(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.ecore.EStructuralFeature feature,
int index,
java.lang.String code,
java.lang.String... issueData)
ValidationMessageAcceptoracceptInfo in interface ValidationMessageAcceptormessage - the info message. May not be null.object - the object or the feature holder. May not be null.feature - the feature or null if the complete instance should be annotated.index - the index of the interesting value or -1 if all values are considered to be interesting. The index is ignored if
the feature is null or the feature is a single value feature.code - the optional issue code.issueData - the optional issue data.public void acceptInfo(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
int offset,
int length,
java.lang.String code,
java.lang.String... issueData)
ValidationMessageAcceptoracceptInfo in interface ValidationMessageAcceptormessage - the info message. May not be null.offset - the absolute offset in the resource.length - the length of the annotated range.code - the optional issue code.issueData - the optional issue data.