|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.octagroup.foregej.java.tools.GenericTool
This is a generic tool that can be extended.
All the process
methods returns true so that processing is
forwarded to the next level.
Constructor Summary | |
GenericTool()
|
Method Summary | |
boolean |
process(AST_CLASS_DEF clazz)
Signals that we have discovered a class. |
void |
process(AST_CTOR_DEF ctor)
Signals that we have discovered a constructor. |
boolean |
process(AST_INTERFACE_DEF interfaze)
Signals that we have discovered an interface. |
void |
process(AST_METHOD_DEF method)
Signals that we have discovered a method. |
void |
process(AST_VARIABLE_DEF method)
Signals that we have discovered a variable. |
boolean |
process(CompilationUnit cu)
The tool that implements this method must return true if the compilation unit should be processed any further. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GenericTool()
Method Detail |
public boolean process(CompilationUnit cu)
Tool
process
in interface Tool
cu
- Tool.process(com.octagroup.foregej.java.lang.ast.CompilationUnit)
public boolean process(AST_INTERFACE_DEF interfaze)
Tool
process
in interface Tool
interfaze
- Tool.process(com.octagroup.foregej.java.lang.ast.AST_INTERFACE_DEF)
public boolean process(AST_CLASS_DEF clazz)
Tool
process
in interface Tool
clazz
- Tool.process(com.octagroup.foregej.java.lang.ast.AST_CLASS_DEF)
public void process(AST_METHOD_DEF method)
Tool
process
in interface Tool
method
- Tool.process(com.octagroup.foregej.java.lang.ast.AST_METHOD_DEF)
public void process(AST_VARIABLE_DEF method)
Tool
process
in interface Tool
method
- Tool.process(com.octagroup.foregej.java.lang.ast.AST_VARIABLE_DEF)
public void process(AST_CTOR_DEF ctor)
Tool
process
in interface Tool
ctor
- Tool.process(com.octagroup.foregej.java.lang.ast.AST_CTOR_DEF)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |