io.sarl.lang.validation.subvalidators
Class SARLScriptValidator
All Superinterfaces:
org.eclipse.emf.ecore.EValidator, org.eclipse.xtext.validation.ValidationMessageAcceptor
class SARLScriptValidator
extends AbstractSARLSubValidatorWithParentLink
A specialized validator to deal with SARL script without considering the defined elements inside.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.14
Property Summary
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
void checkClassPath(XtendFile)
Check if the correct SARL libraries are on the classpath.
void checkTopElementsAreUnique(SarlScript)
Check the top elements within a script are not duplicated.
Constructor Details
new
new
Action Details
checkClassPath(XtendFile)
def checkClassPath(XtendFile)
Check if the correct SARL libraries are on the classpath.

This function is overriding the function given by the Xtend validator for having finer tests, and firing a warning in place of an error.
Parameters:
sarlScript - the SARL script.
checkTopElementsAreUnique(SarlScript)
def checkTopElementsAreUnique(SarlScript)
Check the top elements within a script are not duplicated.
Parameters:
script - the SARL script