| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Visitor design pattern implementation for SciStatements.
It defines defferent methods for visiting different kinds of statements (declaration
statement, return statement etc.).
These methods are called up from SciStatement.accept method which determines the
kind of the statement and runs this visitor's corresponding method, passing the statement as a parameter.
For example, this command
someSciDeclarationStatement.accept(mySciStatementVisitor); //mySciStatementVisitor implements SciStatementVisitor
will call mySciStatementVisitor.visitDeclarationStatement(SciDeclarationStatement) method, passing
someSciDeclarationStatement to it.
The methods of this interface can be also called from
SciScope.visitStatements methods.
Every method returns a result of its actions. It can be null if it is not required from this
visitor to return any information.
| Method Summary | |
Object | visitAssertStatement(SciAssertStatement sciAssertStatement)Performs an action upon SciAssertStatement. |
Object | visitCaseStatement(SciCaseStatement sciCaseStatement)Performs an action upon SciCaseStatement. |
Object | visitCatchBlockStatement(SciCatchBlockStatement sciCatchBlockStatement)Performs an action upon SciCatchBlockStatement. |
Object | visitCompoundStatement(SciCompoundStatement sciCompoundStatement)Performs an action upon SciCompoundStatement. |
Object | visitDeclarationStatement(SciDeclarationStatement sciDeclarationStatement)Performs an action upon SciDeclarationStatement. |
Object | visitEventHandlingStatement(SciEventHandlingStatement sciStatement)Performs an action upon SciEventHandlingStatement. |
Object | visitExpressionListStatement(SciExpressionListStatement sciStatement)Performs an action upon SciExpressionListStatement. |
Object | visitExpressionStatement(SciExpressionStatement sciExpressionStatement)Performs an action upon SciExpressionStatement. |
Object | visitIfStatement(SciIfStatement sciIfStatement)Performs an action upon SciIfStatement. |
Object | visitLoopStatement(SciLoopStatement sciLoopStatement)Performs an action upon SciLoopStatement. |
Object | visitReturnStatement(SciReturnStatement sciReturnStatement)Performs an action upon SciReturnStatement. |
Object | visitStatement(SciStatement sciStatement)Performs an action upon SciStatement. |
Object | visitSwitchStatement(SciSwitchStatement sciSwitchStatement)Performs an action upon SciSwitchStatement. |
Object | visitThrowStatement(SciThrowStatement sciThrowStatement)Performs an action upon SciThrowStatement. |
Object | visitTryStatement(SciTryStatement sciTryStatement)Performs an action upon SciTryStatement. |
| Method Detail |
public Object visitAssertStatement(SciAssertStatement sciAssertStatement)
SciAssertStatement.SciAssertStatement which is the subject for the actionpublic Object visitCaseStatement(SciCaseStatement sciCaseStatement)
SciCaseStatement.SciReturnStatement which is the subject for the actionpublic Object visitCatchBlockStatement(SciCatchBlockStatement sciCatchBlockStatement)
SciCatchBlockStatement.SciCatchBlockStatement which is the subject for the actionpublic Object visitCompoundStatement(SciCompoundStatement sciCompoundStatement)
SciCompoundStatement.SciCompoundStatement which is the subject for the actionpublic Object visitDeclarationStatement(SciDeclarationStatement sciDeclarationStatement)
SciDeclarationStatement.SciDeclarationStatement which is the subject for the actionpublic Object visitEventHandlingStatement(SciEventHandlingStatement sciStatement)
SciEventHandlingStatement.SciEventHandlingStatement which is the subject for the actionpublic Object visitExpressionListStatement(SciExpressionListStatement sciStatement)
SciExpressionListStatement.SciExpressionListStatement which is the subject for the actionpublic Object visitExpressionStatement(SciExpressionStatement sciExpressionStatement)
SciExpressionStatement.SciExpressionStatement which is the subject for the actionpublic Object visitIfStatement(SciIfStatement sciIfStatement)
SciIfStatement.SciIfStatement which is the subject for the actionpublic Object visitLoopStatement(SciLoopStatement sciLoopStatement)
SciLoopStatement.SciLoopStatement which is the subject for the actionpublic Object visitReturnStatement(SciReturnStatement sciReturnStatement)
SciReturnStatement.SciReturnStatement which is the subject for the actionpublic Object visitStatement(SciStatement sciStatement)
SciStatement.SciStatement which is the subject for the actionpublic Object visitSwitchStatement(SciSwitchStatement sciSwitchStatement)
SciSwitchStatement.SciSwitchStatement which is the subject for the actionpublic Object visitThrowStatement(SciThrowStatement sciThrowStatement)
SciThrowStatement.SciThrowStatement which is the subject for the actionpublic Object visitTryStatement(SciTryStatement sciTryStatement)
SciTryStatement.SciTryStatement which is the subject for the action
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||