marf.nlp.Parsing
Class FuncSymTabEntry

java.lang.Object
  extended by marf.nlp.Parsing.SymTabEntry
      extended by marf.nlp.Parsing.FuncSymTabEntry

public class FuncSymTabEntry
extends SymTabEntry

FuncSymTabEntry represents a symbol table entry for function definition.

$Id: FuncSymTabEntry.java,v 1.11 2007/12/18 21:37:53 mokhov Exp $

Since:
0.3.0.2
Version:
$Revision: 1.11 $
Author:
Serguei Mokhov

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

oRetValType

protected SymDataType oRetValType
Return Value Type.


oParams

protected java.util.Vector oParams
Parameter List. Parameters are VarSymTabEntries.

Constructor Detail

FuncSymTabEntry

public FuncSymTabEntry()
Constructor.

Method Detail

addParam

public void addParam(VarSymTabEntry poParam)
Add a new parameter.

Parameters:
poParam - a parameter to add

getParams

public java.util.Vector getParams()
Allows retrieval of parameter list as Vector.

Returns:
a parameter list

getDataType

public SymDataType getDataType()
Cannot be anything other than FUNCTION.

Overrides:
getDataType in class SymTabEntry
Returns:
SymDataType corresponding to the FUNCTION identifier.
See Also:
SymTabEntry.FUNCTION

setRetValDataType

public void setRetValDataType(SymDataType poSymDataType)
Allows setting the return data type.

Parameters:
poSymDataType - type of the return value

getRetValDataType

public SymDataType getRetValDataType()
Allows getting the data type of the function's return value.

Returns:
SymDataType corresponding to the return value
See Also:
SymDataType

getMARFSourceCodeRevision

public static java.lang.String getMARFSourceCodeRevision()
Returns source code revision information.

Returns:
revision string


SourceForge Logo