marf.nlp.Parsing
Class VarSymTabEntry

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

public class VarSymTabEntry
extends SymTabEntry

Represents Variable SymTab Entry.

$Id: VarSymTabEntry.java,v 1.9 2007/12/18 21:37:56 mokhov Exp $

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

Field Summary
protected  int iDimension
          Dimension of an array.
protected  int iKind
          Variable kind.
protected  int iStructure
          Structure.
static int SCOPE_LOCAL
          Normal (local) variable kind.
static int SCOPE_MEMBER
          Class member.
static int SCOPE_PARAM
          Parameter variable.
static int TYPE_ARRAY
          Array.
static int TYPE_CLASS
          Object.
static int TYPE_SIMPLE
          Simple (scalar, primitive type) variable.
 
Fields inherited from class marf.nlp.Parsing.SymTabEntry
bDeclared, bMultilplyDefined, bReserved, CLASS, FUNCTION, iEntryType, iID, oDataType, oGenCodeLocations, oLocalSymTab, oLocationsList, oUID, strName, VARIABLE
 
Constructor Summary
VarSymTabEntry()
          Default Constructor.
 
Method Summary
 int getArrayDimension()
          Allows getting the dimensionality of the array.
static java.lang.String getMARFSourceCodeRevision()
          Returns source code revision information.
 void setArrayDimension(int piDimension)
          Allows setting the dimensionality of the array.
 void setDataType(int piType)
          Allows to set data type of the variable.
 
Methods inherited from class marf.nlp.Parsing.SymTabEntry
addLocation, getDataType, 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

iKind

protected int iKind
Variable kind.


SCOPE_LOCAL

public static final int SCOPE_LOCAL
Normal (local) variable kind.

See Also:
Constant Field Values

SCOPE_PARAM

public static final int SCOPE_PARAM
Parameter variable.

See Also:
Constant Field Values

SCOPE_MEMBER

public static final int SCOPE_MEMBER
Class member.

See Also:
Constant Field Values

iStructure

protected int iStructure
Structure.


TYPE_SIMPLE

public static final int TYPE_SIMPLE
Simple (scalar, primitive type) variable.

See Also:
Constant Field Values

TYPE_ARRAY

public static final int TYPE_ARRAY
Array.

See Also:
Constant Field Values

TYPE_CLASS

public static final int TYPE_CLASS
Object.

See Also:
Constant Field Values

iDimension

protected int iDimension
Dimension of an array. -1 for other structures

Constructor Detail

VarSymTabEntry

public VarSymTabEntry()
Default Constructor.

Method Detail

getArrayDimension

public int getArrayDimension()
Allows getting the dimensionality of the array.

Returns:
the dimensionality of current array

setArrayDimension

public void setArrayDimension(int piDimension)
Allows setting the dimensionality of the array.

Parameters:
piDimension - the new dimensionality value

setDataType

public void setDataType(int piType)
Allows to set data type of the variable.

Parameters:
piType - the new type

getMARFSourceCodeRevision

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

Returns:
revision string


SourceForge Logo