java.lang.Object | +--com.ibm.lab.soln.jdt.HelloASTAction
The purpose of HelloASTAction is to introduce Abstract Syntax Trees (AST)
and demonstrate how to process them with the ASTVisitor subclass,
ASTNode2StringVisitor. This action will be shown on the window menu
under "Soln: Run Hello AST".
ASTNode2StringVisitor,
ASTNode,
ASTVisitor,
ICompilationUnit| Constructor Summary | |
HelloASTAction()
|
|
| Method Summary | |
void |
dispose()
|
void |
init(org.eclipse.ui.IWorkbenchWindow window)
|
void |
run(org.eclipse.jface.action.IAction action)
Execute the two examples: first, the AST of a "Hello, World", and then the AST of a Java source file provided by the user. |
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HelloASTAction()
| Method Detail |
public void dispose()
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegatepublic void init(org.eclipse.ui.IWorkbenchWindow window)
init in interface org.eclipse.ui.IWorkbenchWindowActionDelegatepublic void run(org.eclipse.jface.action.IAction action)
run in interface org.eclipse.ui.IActionDelegateIActionDelegate.run(IAction)
public void selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
selectionChanged in interface org.eclipse.ui.IActionDelegate