|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRuleFile
IRuleFile is the top level interface - it contains the entire, fully resolved AST of a rule file.
Field Summary |
---|
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode |
---|
NEWLINE |
Method Summary | |
---|---|
List<IDeclaration> |
getDeclarations()
Return a collection of the declarations in this file. |
List<IVariableDeclaration> |
getGlobalVariableDeclarations()
Get the list of global variable declarations. |
IModelFileReference[] |
getModelFileReferences()
Return the model file references, as they were declared in this rule file. |
IOperatorFileReference[] |
getOperatorFileReferences()
Return an array of operator file references - can be empty. |
IRuleDeclaration |
getRuleById(String id)
Look up a rule declaration by ID. |
List<IRuleSetDeclaration> |
getRuleSetDeclarations()
Return a list of all rule set declarations. |
Methods inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode |
---|
accept, dump, getColumn, getLine, getUserData, setUserData |
Method Detail |
---|
IModelFileReference[] getModelFileReferences()
IOperatorFileReference[] getOperatorFileReferences()
List<IDeclaration> getDeclarations()
IConstraintRuleDeclaration
and IValidationFragmentDeclaration
objects.
Clients calling this method should be defensive and check each objects to ensure it is handled correctly.
IRuleDeclaration getRuleById(String id)
id
- the rule id
List<IRuleSetDeclaration> getRuleSetDeclarations()
IRuleSetDeclaration
objects.
List<IVariableDeclaration> getGlobalVariableDeclarations()
IVariableDeclaration
objects with some special properties:
IVariableDeclaration.getExpression()
is always an
ILiteralString
, IDecimalNumber
or IIntegerNumber
,
but never a model reference.
IVariableDeclaration#getConstraint()
is always null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |