| Package | Description |
|---|---|
| net.sourceforge.nrl.parser |
This top-level package contains utility classes referenced elsewhere.
|
| net.sourceforge.nrl.parser.ast.action.impl | |
| net.sourceforge.nrl.parser.ast.constraints.impl | |
| net.sourceforge.nrl.parser.ast.impl |
The ANTLR v3 implementation of the AST, including a JFlex lexer and ANTLR v3
parser.
|
| net.sourceforge.nrl.parser.operators |
Operator library management package.
|
| net.sourceforge.nrl.parser.type |
Abstract type assignment and type checking for the completed AST.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ModelLoadingError
Specific error for models which are referenced by something but could not
be loaded.
|
class |
SemanticError
A semantic error that occurred during AST creation or AST resolution.
|
class |
SyntaxError
An error that occurred during parsing.
|
| Modifier and Type | Method and Description |
|---|---|
List<NRLError> |
NRLParser.getErrors()
After any call to the parse or resolve methods, this method returns a list of errors, if any.
|
List<NRLError> |
INRLParser.getErrors()
Returns a collection of
SyntaxError and
SemanticError objects. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ActionAstResolver.collectActionFragmentIds(RuleFileImpl ruleFile,
List<NRLError> errors)
Collect action fragment identifiers in the actionFragmentIds list.
|
protected void |
ActionAstResolver.collectIdentifiers(RuleFileImpl ruleFile,
List<NRLError> errors)
Extends the base implementation to also collect fragment ids.
|
protected void |
ActionAstResolver.resolveReferences(RuleFileImpl ruleFile,
List<NRLError> errors)
Override the superclass method to also resolve fragment references.
|
| Modifier and Type | Method and Description |
|---|---|
List<NRLError> |
ValidationFragmentDependencyProcessor.resolve() |
| Modifier and Type | Field and Description |
|---|---|
protected List<NRLError> |
AntlrOperatorResolverVisitor.errors |
| Modifier and Type | Method and Description |
|---|---|
List<NRLError> |
AntlrOperatorResolverVisitor.getErrors()
Return the list of errors, after traversal.
|
List<NRLError> |
AntlrModelResolverVisitor.getErrors() |
List<NRLError> |
NRLActionParser_NRLConstraintRules.getSyntaxErrors() |
List<NRLError> |
NRLActionParser.getSyntaxErrors() |
List<NRLError> |
AntlrModelResolver.resolve(IRuleFile ruleFile)
Main method - resolve all model references in the entire AST.
|
List<NRLError> |
ConstraintAstResolver.resolve(RuleFileImpl ruleFile)
Resolve the rule file and return a list of
SemanticError objects if errors occurred. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ConstraintAstResolver.collectFragmentIds(RuleFileImpl ruleFile,
List<NRLError> errors)
Collect all fragment ids
|
protected void |
ConstraintAstResolver.collectGlobalVariableIds(RuleFileImpl ruleFile,
List<NRLError> errors)
Collect global variables.
|
protected void |
ConstraintAstResolver.collectIdentifiers(RuleFileImpl ruleFile,
List<NRLError> errors)
Collect all identifiable parts.
|
protected void |
ConstraintAstResolver.collectRuleIds(RuleFileImpl ruleFile,
List<NRLError> errors)
Collect all rule ids
|
protected void |
ConstraintAstResolver.collectRuleSetIds(RuleFileImpl ruleFile,
List<NRLError> errors)
Collect all rule set ids
|
static IModelElement |
ModelReferenceHelper.getModelElement(String elementName,
ModelReferenceImpl ref,
IModelCollection models,
List<NRLError> errors)
Look up a model element by name, handling both absolute and qualified names.
|
protected static void |
ModelReferenceHelper.raiseError(List<NRLError> errors,
ModelReferenceImpl ref,
int statusCode,
String message)
Helper method to raise errors on model references more efficiently.
|
protected void |
AntlrModelResolver.resolveAction(IAction action,
IClassifier context,
Map<String,IVariableDeclaration> globalVariables,
List<Variable> variables,
List<NRLError> errors) |
protected void |
AntlrModelResolver.resolveActionFragment(IActionFragmentDeclaration macro,
Map<String,IVariableDeclaration> globalVariables,
List<NRLError> errors) |
protected void |
AntlrModelResolver.resolveActions(IRuleFile ruleFile,
List<NRLError> errors) |
protected void |
AntlrModelResolver.resolveConstraints(IRuleFile ruleFile,
Map<String,IVariableDeclaration> globalVariables,
List<NRLError> errors) |
protected void |
AntlrModelResolver.resolveGlobalVariables(IRuleFile ruleFile,
List<NRLError> errors) |
protected void |
ConstraintAstResolver.resolveIncompleteExistsStatements(RuleFileImpl ruleFile,
List<NRLError> errors)
This resolves inclompete exists statements.
|
protected void |
AntlrModelResolver.resolveMultiContextDeclarations(IRuleFile ruleFile,
List<NRLError> errors) |
static void |
ModelReferenceHelper.resolveReference(ModelReferenceImpl ref,
IModelCollection models,
IModelElement contextElement,
IClassifier initialContext,
VariableContext variableContext,
Map<String,IVariableDeclaration> globalVariableContext,
List<NRLError> errors)
Resolve a reference by looking up the initial step and traversing a path.
|
protected void |
ConstraintAstResolver.resolveReferences(RuleFileImpl ruleFile,
List<NRLError> errors)
Resolve references within the AST.
|
protected void |
AntlrModelResolver.resolveRuleSets(IRuleFile ruleFile,
Map<String,IVariableDeclaration> globalVariables,
List<NRLError> errors)
Resolve the context and constraints of rule set declarations
|
protected void |
ConstraintAstResolver.resolveRuleSets(RuleFileImpl ruleFile,
List<NRLError> errors)
Resolve rule set references.
|
protected void |
AntlrModelResolver.resolveSingleContextDeclarations(IRuleFile ruleFile,
List<NRLError> errors) |
protected void |
AntlrModelResolver.resolveValidationFragmentDeclaration(IValidationFragmentDeclaration decl,
Map<String,IVariableDeclaration> globalVariables,
List<NRLError> errors) |
protected void |
ConstraintAstResolver.validateRuleParameters(IRuleFile ruleFile,
List<NRLError> errors)
Ensure that the names of rule parameters are ok.
|
| Constructor and Description |
|---|
AntlrModelResolverVisitor(IClassifier ruleContext,
IModelCollection models,
Map<String,IVariableDeclaration> globalVariables,
List<NRLError> errors)
Initialize a constraint visitor with a rule context classifier, the model, a map of global
variables and an error list to populate.
|
AntlrModelResolverVisitor(IClassifier ruleContext,
IModelCollection models,
Map<String,IVariableDeclaration> globalVariables,
List<Variable> contextVariables,
List<NRLError> errors) |
AntlrModelResolverVisitor(IModelCollection models,
Map<String,IVariableDeclaration> globalVariables,
List<Variable> contextVariables,
List<NRLError> errors) |
| Modifier and Type | Method and Description |
|---|---|
List<NRLError> |
Parameter.resolveModelReferences(IModelCollection models) |
List<NRLError> |
Operators.resolveModelReferences(IModelCollection models) |
List<NRLError> |
Operator.resolveModelReferences(IModelCollection models) |
List<NRLError> |
IParameter.resolveModelReferences(IModelCollection models)
Resolve all parameter type and return type references against models.
|
List<NRLError> |
IOperators.resolveModelReferences(IModelCollection models)
Resolve all parameter type and return type references against models.
|
List<NRLError> |
IOperator.resolveModelReferences(IModelCollection models)
Resolve all parameter type and return type references against models.
|
| Modifier and Type | Method and Description |
|---|---|
IOperators |
XmlOperatorLoader.load(File file,
List<NRLError> errors)
Load from a file - see
#load(Reader). |
IOperators |
XmlOperatorLoader.load(URI baseURI,
URI operatorFileUri,
List<NRLError> errors)
Load an operator file from a URI (relative or absolute) resolved against an absolute base URI.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<NRLError> |
ConstraintTypeChecker.errors |
| Modifier and Type | Method and Description |
|---|---|
List<NRLError> |
ITypeChecker.check(IOperators operators)
Type check an operator collection.
|
List<NRLError> |
ConstraintTypeChecker.check(IOperators operators) |
List<NRLError> |
ITypeChecker.check(IRuleFile ruleFile)
Type check a rule file and assign a type to all constraints.
|
List<NRLError> |
ConstraintTypeChecker.check(IRuleFile ruleFile) |
List<NRLError> |
ConstraintTypeChecker.getErrors() |
Copyright © 2006-2013. All Rights Reserved.