|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.util.XtextSwitch<java.lang.Boolean> org.eclipse.xtext.xtext.PredicateUsesUnorderedGroupInspector
public class PredicateUsesUnorderedGroupInspector
Checks whether a predicate
uses an
unordered group
.
Field Summary |
---|
Fields inherited from class org.eclipse.xtext.util.XtextSwitch |
---|
modelPackage |
Fields inherited from interface org.eclipse.xtext.validation.ValidationMessageAcceptor |
---|
INSIGNIFICANT_INDEX |
Constructor Summary | |
---|---|
PredicateUsesUnorderedGroupInspector(ValidationMessageAcceptor validationMessageAcceptor)
|
Method Summary | |
---|---|
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,
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,
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 |
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 |
caseCrossReference(CrossReference object)
Returns the result of interpreting the object as an instance of 'Cross Reference' |
java.lang.Boolean |
caseParserRule(ParserRule object)
Returns the result of interpreting the object as an instance of 'Parser Rule' |
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(UnorderedGroup object)
|
void |
inspect(Grammar grammar)
|
protected boolean |
shouldTraverse(AbstractElement object)
|
Methods inherited from class org.eclipse.xtext.util.XtextSwitch |
---|
caseAbstractMetamodelDeclaration, caseAbstractNegatedToken, caseAbstractRule, caseAction, caseAlternatives, caseCharacterRange, caseEnumLiteralDeclaration, caseEnumRule, caseEOF, caseGeneratedMetamodel, caseGrammar, caseGroup, caseKeyword, caseNegatedToken, caseReferencedMetamodel, caseTerminalRule, caseTypeRef, caseUntilToken, caseWildcard, defaultCase, doSwitch, doSwitch, doSwitch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PredicateUsesUnorderedGroupInspector(ValidationMessageAcceptor validationMessageAcceptor)
Method Detail |
---|
public void inspect(Grammar grammar)
public java.lang.Boolean caseAbstractElement(AbstractElement object)
XtextSwitch
caseAbstractElement
in class XtextSwitch<java.lang.Boolean>
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Boolean caseAssignment(Assignment object)
XtextSwitch
caseAssignment
in class XtextSwitch<java.lang.Boolean>
object
- the target of the switch.
doSwitch(EObject)
protected boolean shouldTraverse(AbstractElement object)
public java.lang.Boolean caseCrossReference(CrossReference object)
XtextSwitch
caseCrossReference
in class XtextSwitch<java.lang.Boolean>
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Boolean caseCompoundElement(CompoundElement object)
XtextSwitch
caseCompoundElement
in class XtextSwitch<java.lang.Boolean>
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Boolean caseUnorderedGroup(UnorderedGroup object)
XtextSwitch
caseUnorderedGroup
in class XtextSwitch<java.lang.Boolean>
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Boolean caseRuleCall(RuleCall object)
XtextSwitch
caseRuleCall
in class XtextSwitch<java.lang.Boolean>
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Boolean caseParserRule(ParserRule object)
XtextSwitch
caseParserRule
in class XtextSwitch<java.lang.Boolean>
object
- the target of the switch.
doSwitch(EObject)
public void createErrorMessages(UnorderedGroup object)
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)
ValidationMessageAcceptor
acceptError
in interface ValidationMessageAcceptor
message
- 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.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)
ValidationMessageAcceptor
acceptWarning
in interface ValidationMessageAcceptor
message
- 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.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)
ValidationMessageAcceptor
acceptError
in interface ValidationMessageAcceptor
message
- 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, int offset, int length, java.lang.String code, java.lang.String... issueData)
ValidationMessageAcceptor
acceptWarning
in interface ValidationMessageAcceptor
message
- 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)
ValidationMessageAcceptor
acceptInfo
in interface ValidationMessageAcceptor
message
- 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.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)
ValidationMessageAcceptor
acceptInfo
in interface ValidationMessageAcceptor
message
- 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |