|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.prorefactor.treeparser.Symbol org.prorefactor.treeparser.Routine
public class Routine
Represents the definition of a Routine. Is a Symbol - used as an entry in the symbol table. A Routine is a Program_root, PROCEDURE, FUNCTION, or METHOD.
Field Summary |
---|
Fields inherited from interface org.prorefactor.treeparser.SymbolI |
---|
NAME_ORDER |
Constructor Summary | |
---|---|
Routine()
Only to be used for persistence/serialization. |
|
Routine(java.lang.String name,
SymbolScope definingScope,
SymbolScope routineScope)
|
Method Summary | |
---|---|
void |
addParameter(Parameter p)
Called by the tree parser. |
Symbol |
copyBare(SymbolScope scope)
Generate a bare-bones copy of this symbol. |
java.lang.String |
fullName()
Get the "full" name for this symbol. |
java.util.ArrayList<Parameter> |
getParameters()
|
int |
getProgressType()
Return TokenTypes: Program_root, PROCEDURE, FUNCTION, or METHOD. |
JPNode |
getReturnDatatypeNode()
Null for PROCEDURE, node of the datatype for FUNCTION or METHOD. |
SymbolScope |
getRoutineScope()
|
Routine |
setProgressType(int t)
|
void |
setReturnDatatypeNode(JPNode n)
Set by TreeParser01 for functions and methods. |
void |
writeXferBytes(DataXferStream out)
Implement Xferable. |
void |
writeXferSchema(DataXferStream out)
Implement Xferable. |
Methods inherited from class org.prorefactor.treeparser.Symbol |
---|
getAllRefsCount, getAsNode, getDefineNode, getIndirectDefineIdNode, getLikeNode, getName, getNumReads, getNumWrites, getScope, isExported, isImported, noteReference, setAsNode, setDefOrIdNode, setLikeNode, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Routine()
public Routine(java.lang.String name, SymbolScope definingScope, SymbolScope routineScope)
Method Detail |
---|
public void addParameter(Parameter p)
public Symbol copyBare(SymbolScope scope)
Symbol
copyBare
in class Symbol
public java.lang.String fullName()
SymbolI
fullName
in interface SymbolI
fullName
in class Symbol
Symbol.fullName()
public java.util.ArrayList<Parameter> getParameters()
public int getProgressType()
getProgressType
in interface SymbolI
getProgressType
in class Symbol
public JPNode getReturnDatatypeNode()
public SymbolScope getRoutineScope()
public Routine setProgressType(int t)
public void setReturnDatatypeNode(JPNode n)
public void writeXferBytes(DataXferStream out) throws java.io.IOException
writeXferBytes
in interface Xferable
writeXferBytes
in class Symbol
java.io.IOException
public void writeXferSchema(DataXferStream out) throws java.io.IOException
writeXferSchema
in interface Xferable
writeXferSchema
in class Symbol
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |