|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.togethersoft.sca.ast.visitor.AstStatementVisitorAdapter
Empty implementation of AstStatementVisitor. Classes derived from
AstStatementVisitorAdapter do not have to implement all the visiting
methods. It is sufficient to override the required methods only.
| Fields inherited from interface com.togethersoft.sca.ast.visitor.AstVisitor |
SHALLOW |
| Constructor Summary | |
AstStatementVisitorAdapter()
Creates a statement visitor with the default options. |
|
AstStatementVisitorAdapter(int options)
Creates a statement visitor with the specified options. |
|
| Method Summary | |
int |
getOptions()
Returns this visitor's options. |
void |
visitAssertStatement(AstAssertStatement stmt)
Visits an assertion statement. |
void |
visitBreakStatement(AstBreakStatement stmt)
Visits a break statement. |
void |
visitCompoundStatement(AstCompoundStatement stmt)
Visits a compound statement. |
void |
visitContinueStatement(AstContinueStatement stmt)
Visits a continue statement. |
void |
visitDeclarationStatement(AstDeclarationStatement stmt)
Visits a declaration statement. |
void |
visitDoStatement(AstDoStatement stmt)
Visits a do-while loop statement. |
void |
visitEmptyStatement(AstEmptyStatement stmt)
Visits an empty statement. |
void |
visitExpressionStatement(AstExpressionStatement stmt)
Visits an expression statement. |
void |
visitForStatement(AstForStatement stmt)
Visits a for loop statement. |
void |
visitIfStatement(AstIfStatement stmt)
Visits an if statement. |
void |
visitReturnStatement(AstReturnStatement stmt)
Visits a return statement. |
void |
visitStatement(AstStatement stmt)
The default implementation calls visitStatement
for each visited statement. |
void |
visitSwitchStatement(AstSwitchStatement stmt)
Visits a switch statement. |
void |
visitSynchronizedStatement(AstSynchronizedStatement stmt)
Visits a synchronized statement. |
void |
visitThrowStatement(AstThrowStatement stmt)
Visits a throw statement. |
void |
visitTryStatement(AstTryStatement stmt)
Visits a try statement. |
void |
visitWhileStatement(AstWhileStatement stmt)
Visits a while loop statement. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AstStatementVisitorAdapter()
AstVisitorpublic AstStatementVisitorAdapter(int options)
options - visitor optionsAstVisitor| Method Detail |
public int getOptions()
getOptions in interface AstVisitorpublic void visitAssertStatement(AstAssertStatement stmt)
AstStatementVisitorvisitAssertStatement in interface AstStatementVisitorpublic void visitBreakStatement(AstBreakStatement stmt)
AstStatementVisitorvisitBreakStatement in interface AstStatementVisitorpublic void visitCompoundStatement(AstCompoundStatement stmt)
AstStatementVisitorvisitCompoundStatement in interface AstStatementVisitorpublic void visitContinueStatement(AstContinueStatement stmt)
AstStatementVisitorvisitContinueStatement in interface AstStatementVisitorpublic void visitDeclarationStatement(AstDeclarationStatement stmt)
AstStatementVisitorvisitDeclarationStatement in interface AstStatementVisitorpublic void visitDoStatement(AstDoStatement stmt)
AstStatementVisitorvisitDoStatement in interface AstStatementVisitorpublic void visitEmptyStatement(AstEmptyStatement stmt)
AstStatementVisitorvisitEmptyStatement in interface AstStatementVisitorpublic void visitExpressionStatement(AstExpressionStatement stmt)
AstStatementVisitorvisitExpressionStatement in interface AstStatementVisitorpublic void visitForStatement(AstForStatement stmt)
AstStatementVisitorvisitForStatement in interface AstStatementVisitorpublic void visitIfStatement(AstIfStatement stmt)
AstStatementVisitorvisitIfStatement in interface AstStatementVisitorpublic void visitReturnStatement(AstReturnStatement stmt)
AstStatementVisitorvisitReturnStatement in interface AstStatementVisitorpublic void visitStatement(AstStatement stmt)
visitStatement
for each visited statement.public void visitSwitchStatement(AstSwitchStatement stmt)
AstStatementVisitorvisitSwitchStatement in interface AstStatementVisitorpublic void visitSynchronizedStatement(AstSynchronizedStatement stmt)
AstStatementVisitorvisitSynchronizedStatement in interface AstStatementVisitorpublic void visitThrowStatement(AstThrowStatement stmt)
AstStatementVisitorvisitThrowStatement in interface AstStatementVisitorpublic void visitTryStatement(AstTryStatement stmt)
AstStatementVisitorvisitTryStatement in interface AstStatementVisitorpublic void visitWhileStatement(AstWhileStatement stmt)
AstStatementVisitorvisitWhileStatement in interface AstStatementVisitor
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||