|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.nlp.Parsing.SymTabEntry marf.nlp.Parsing.FuncSymTabEntry
public class FuncSymTabEntry
FuncSymTabEntry represents a symbol table entry for function definition.
$Id: FuncSymTabEntry.java,v 1.11 2007/12/18 21:37:53 mokhov Exp $
Field Summary | |
---|---|
protected java.util.Vector |
oParams
Parameter List. |
protected SymDataType |
oRetValType
Return Value Type. |
Fields inherited from class marf.nlp.Parsing.SymTabEntry |
---|
bDeclared, bMultilplyDefined, bReserved, CLASS, FUNCTION, iEntryType, iID, oDataType, oGenCodeLocations, oLocalSymTab, oLocationsList, oUID, strName, VARIABLE |
Constructor Summary | |
---|---|
FuncSymTabEntry()
Constructor. |
Method Summary | |
---|---|
void |
addParam(VarSymTabEntry poParam)
Add a new parameter. |
SymDataType |
getDataType()
Cannot be anything other than FUNCTION. |
static java.lang.String |
getMARFSourceCodeRevision()
Returns source code revision information. |
java.util.Vector |
getParams()
Allows retrieval of parameter list as Vector. |
SymDataType |
getRetValDataType()
Allows getting the data type of the function's return value. |
void |
setRetValDataType(SymDataType poSymDataType)
Allows setting the return data type. |
Methods inherited from class marf.nlp.Parsing.SymTabEntry |
---|
addLocation, getID, getLocalSymTab, getLocationsList, getUID, isDeclared, isMultiplyDefined, setDeclared, setID, setMultiplyDefined, setMultiplyDefined, setUID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SymDataType oRetValType
protected java.util.Vector oParams
Constructor Detail |
---|
public FuncSymTabEntry()
Method Detail |
---|
public void addParam(VarSymTabEntry poParam)
poParam
- a parameter to addpublic java.util.Vector getParams()
public SymDataType getDataType()
getDataType
in class SymTabEntry
SymTabEntry.FUNCTION
public void setRetValDataType(SymDataType poSymDataType)
poSymDataType
- type of the return valuepublic SymDataType getRetValDataType()
SymDataType
public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |