|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INRLConstraintDetailVisitor
A more complete visitor class with callbacks for each type of node that can
be found in the AST for constraint files. INRLActionDetailVisitor
extends this to cover the action language.
The class has two methods for each construct:
before
method is called before the children
of the node are processed. You must return a boolean true if you want the
children to be processed, or false otherwise.
after
method is always visited (even if the before
method returned false), after the children have been processed.
How to use: To use this interface, do the following:
INRLConstraintDetailVisitor.Stub
.
ConstraintVisitorDispatcher
and pass your instance to it.
INRLAstNode.accept(INRLAstVisitor)
,
passing the dispatcher to it.
Nested Class Summary | |
---|---|
static class |
INRLConstraintDetailVisitor.Stub
Extend from this if you don't want to implement the full interface. |
Method Detail |
---|
void visitArithmeticExpressionAfter(IArithmeticExpression expr)
boolean visitArithmeticExpressionBefore(IArithmeticExpression expr)
void visitBinaryOperatorStatementAfter(IBinaryOperatorStatement statement)
boolean visitBinaryOperatorStatementBefore(IBinaryOperatorStatement statement)
void visitBinaryPredicateAfter(IBinaryPredicate predicate)
boolean visitBinaryPredicateBefore(IBinaryPredicate predicate)
void visitBooleanLiteral(IBooleanLiteral bool)
void visitCardinalityConstraint(ICardinalityConstraint constraint)
void visitCastExpressionAfter(ICastExpression expr)
boolean visitCastExpressionBefore(ICastExpression expr)
void visitCollectionIndexAfter(ICollectionIndex index)
boolean visitCollectionIndexBefore(ICollectionIndex index)
void visitCompoundReportAfter(ICompoundReport report)
boolean visitCompoundReportBefore(ICompoundReport report)
void visitConcatenatedReportAfter(IConcatenatedReport report)
boolean visitConcatenatedReportBefore(IConcatenatedReport report)
void visitConditionalReportAfter(IConditionalReport report)
boolean visitConditionalReportBefore(IConditionalReport report)
void visitConstraintRuleDeclarationAfter(IConstraintRuleDeclaration decl)
boolean visitConstraintRuleDeclarationBefore(IConstraintRuleDeclaration decl)
void visitDecimalNumber(IDecimalNumber number)
void visitExistsStatementAfter(IExistsStatement exists)
boolean visitExistsStatementBefore(IExistsStatement exists)
void visitForallStatementAfter(IForallStatement forall)
boolean visitForallStatementBefore(IForallStatement forall)
void visitFunctionalExpressionAfter(IFunctionalExpression expr)
boolean visitFunctionalExpressionBefore(IFunctionalExpression expr)
void visitGlobalExistsStatementAfter(IGlobalExistsStatement exists)
boolean visitGlobalExistsStatementBefore(IGlobalExistsStatement exists)
void visitIfThenStatementAfter(IIfThenStatement ifThen)
boolean visitIfThenStatementBefore(IIfThenStatement ifThen)
void visitIntegerNumber(IIntegerNumber number)
void visitIsInPredicateAfter(IIsInPredicate isIn)
boolean visitIsInPredicateBefore(IIsInPredicate isIn)
void visitIsNotInPredicateAfter(IIsNotInPredicate isNotIn)
boolean visitIsNotInPredicateBefore(IIsNotInPredicate isNotIn)
void visitIsSubtypePredicateAfter(IIsSubtypePredicate subType)
boolean visitIsSubtypePredicateBefore(IIsSubtypePredicate subType)
void visitLiteralString(ILiteralString literal)
void visitModelReferenceAfter(IModelReference ref)
boolean visitModelReferenceBefore(IModelReference ref)
void visitMultipleExistsStatementAfter(IMultipleExistsStatement statement)
boolean visitMultipleExistsStatementBefore(IMultipleExistsStatement statement)
void visitMultipleNotExistsStatementAfter(IMultipleNotExistsStatement statement)
boolean visitMultipleNotExistsStatementBefore(IMultipleNotExistsStatement statement)
void visitNotExistsStatementAfter(INotExistsStatement exists)
boolean visitNotExistsStatementBefore(INotExistsStatement exists)
void visitOperatorInvocationAfter(IOperatorInvocation op)
boolean visitOperatorInvocationBefore(IOperatorInvocation op)
void visitRuleFileAfter(IRuleFile file)
boolean visitRuleFileBefore(IRuleFile file)
void visitRuleSetDeclarationAfter(IRuleSetDeclaration decl)
boolean visitRuleSetDeclarationBefore(IRuleSetDeclaration decl)
void visitSelectionExpressionAfter(ISelectionExpression expr)
boolean visitSelectionExpressionBefore(ISelectionExpression expr)
void visitValidationFragmentApplicationAfter(IValidationFragmentApplication app)
boolean visitValidationFragmentApplicationBefore(IValidationFragmentApplication app)
void visitValidationFragmentDeclarationAfter(IValidationFragmentDeclaration decl)
boolean visitValidationFragmentDeclarationBefore(IValidationFragmentDeclaration decl)
void visitVariableDeclarationAfter(IVariableDeclaration decl)
boolean visitVariableDeclarationBefore(IVariableDeclaration decl)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |