|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.prorefactor.treeparser03.TP03Support
public class TP03Support
Provides all functions called by TreeParser03. TreeParser03 does not, itself, define any actions. Instead, it only makes calls to the functions defined in this class.
| Field Summary | |
|---|---|
protected ProparseLdr |
parser
|
java.util.TreeSet |
targetSet
The result set - a sorted set of RefactorTarget objects. |
| Fields inherited from interface org.prorefactor.core.IConstants |
|---|
ABBREVIATED, CONTEXT_QUALIFIER, FALSE, FROM_USER_DICT, FULLTEXT, INLINE_VAR_DEF, NODE_TYPE_KEYWORD, OPERATOR, PROPARSEDIRECTIVE, QUALIFIED_CLASS_INT, QUALIFIED_CLASS_STRING, SOURCENUM, ST_DBTABLE, ST_TTABLE, ST_VAR, ST_WTABLE, STATE2, STATEHEAD, STORETYPE, TO_BE_CUT, TRUE, UNQUALIFIED_FIELD |
| Constructor Summary | |
|---|---|
TP03Support()
Construct TP03Support |
|
| Method Summary | |
|---|---|
void |
blockBegin()
Called when a Code_block begins. |
void |
blockEnd()
Called when a Code_block ends. |
void |
blockWithLabel(AST theNode)
Called when a labelled block's BLOCK_LABEL node is encountered. |
void |
cleanUp()
Release all Proparse node handles held in "targetSet". |
void |
define(AST defNode,
AST idNode)
Called when certain types of DEFINE nodes are found. |
void |
defineEnd()
Called at the end of a DEFINE statement. |
void |
fieldRef(AST refAST,
AST idNode)
Called at a Field_ref node. |
void |
noundo()
Called when a NO-UNDO node is found. |
void |
noundoUndoCheck(AST undoNode,
org.prorefactor.treeparser03.TP03Support.Block theBlock)
Raise a warning for variables and parameters which are targetted for refactoring (add NO-UNDO) but which are also assigned within a block which has an UNDO statement after it was assigned. |
void |
procedure(AST theNode)
Called when a PROCEDURE statement is encountered. |
void |
procedureEnd()
Called at the end of any PROCEDURE. |
void |
procedureExternal()
Called if the current procedure is EXTERNAL. |
void |
proparsedirective(AST ast)
Deal with PROPARSEDIRECTIVE nodes Only throws antlr RecognitionException for benefit of working with Antlr generated tree parser. |
void |
statementEnd()
Deal with end-of-statement. |
void |
undo()
Called when an UNDO node is found as an option to DEFINE TEMP-TABLE. |
void |
undoState(AST undoNode,
AST blockLabel)
Called when an UNDO statement is found. |
void |
updating(boolean inIsUpdating)
Called when in an ASSIGN, SET, IMPORT etc, where field assignment is done. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.util.TreeSet targetSet
protected ProparseLdr parser
| Constructor Detail |
|---|
public TP03Support()
| Method Detail |
|---|
public void blockBegin()
public void blockEnd()
public void blockWithLabel(AST theNode)
theNode - The BLOCK_LABEL node.public void cleanUp()
public void define(AST defNode,
AST idNode)
defNode - The DEFINE node.idNode - The ID node.public void defineEnd()
public void fieldRef(AST refAST,
AST idNode)
refAST - The Field_ref node.idNode - The ID node.public void noundo()
public void noundoUndoCheck(AST undoNode,
org.prorefactor.treeparser03.TP03Support.Block theBlock)
undoNode - The UNDO node.theBlock - The block which is the subject of the UNDO statement.public void procedure(AST theNode)
theNode - is the PROCEDURE node.public void procedureEnd()
public void procedureExternal()
public void proparsedirective(AST ast)
public void statementEnd()
public void undo()
public void undoState(AST undoNode,
AST blockLabel)
undoNode - The UNDO node.blockLabel - The block label node - might be null.public void updating(boolean inIsUpdating)
inIsUpdating - True at start of updating, false at end of updating.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||