|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--marf.nlp.Parsing.SymTabEntry
This class denotes one entry per user-defined symbol in the Sumbol Table. $Id: SymTabEntry.java,v 1.6 2005/06/16 19:58:57 mokhov Exp $
Field Summary | |
static int |
CLASS
Class Entry Type. |
protected marf.nlp.Parsing.SymDataType |
DataType
Data type of this symbols (e.g. |
protected boolean |
Declared
A flag inidcating that the symbol was (true) or was not (false) resolved. |
int |
EntryType
Current Entry type. |
static int |
FUNCTION
Function entry type. |
protected java.util.Vector |
GenCodeLocations
Locations in generated code (point, x - base, y - offset). |
protected int |
ID
Numeric ID of the entry. |
protected marf.nlp.Parsing.SymbolTable |
LocalSymTab
Local scope symbol table (if applicable). |
protected java.util.Vector |
LocationsList
List of locations where the give ID appears in the source code. |
protected boolean |
MultilplyDefined
A flag inidcating that the symbol was (true) or was not (false) resolved. |
protected java.lang.String |
Name
|
boolean |
Reserved
|
protected marf.nlp.Parsing.Token |
UID
Entry symbol, encapsulated as Token. |
static int |
VARIABLE
Variable entry type. |
Constructor Summary | |
SymTabEntry()
|
|
SymTabEntry(java.lang.String pstrName)
|
|
SymTabEntry(marf.nlp.Parsing.Token poUID)
|
|
SymTabEntry(marf.nlp.Parsing.Token poUID,
boolean pbDeclared)
|
|
SymTabEntry(marf.nlp.Parsing.Token poUID,
marf.nlp.Parsing.SymDataType poSymDataType)
|
Method Summary | |
void |
addLocation(java.awt.Point poPoisition)
Adds location to every occurrence of a token in the source code. |
marf.nlp.Parsing.SymDataType |
getDataType()
Get data type. |
int |
getID()
|
marf.nlp.Parsing.SymbolTable |
getLocalSymTab()
|
java.util.Vector |
getLocationsList()
Get list of occurrences of this token entry. |
static java.lang.String |
getMARFSourceCodeRevision()
Retrieves class' revision. |
marf.nlp.Parsing.Token |
getUID()
Returns UID. |
boolean |
isDeclared()
Determines if the Resolved property is true. |
boolean |
isMultiplyDefined()
|
void |
setDeclared(boolean pbDeclared)
Sets the value of the Declared property. |
void |
setID(int piID)
|
void |
setMultiplyDefined()
|
void |
setMultiplyDefined(boolean pbFlag)
Sets the value of the MultilplyDefined property. |
void |
setUID(marf.nlp.Parsing.Token poToken)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int ID
protected boolean Declared
public boolean Reserved
protected boolean MultilplyDefined
protected marf.nlp.Parsing.Token UID
protected marf.nlp.Parsing.SymDataType DataType
protected java.util.Vector LocationsList
protected java.util.Vector GenCodeLocations
protected marf.nlp.Parsing.SymbolTable LocalSymTab
public int EntryType
public static final int VARIABLE
public static final int FUNCTION
public static final int CLASS
protected java.lang.String Name
Constructor Detail |
public SymTabEntry()
public SymTabEntry(java.lang.String pstrName)
public SymTabEntry(marf.nlp.Parsing.Token poUID)
public SymTabEntry(marf.nlp.Parsing.Token poUID, boolean pbDeclared)
public SymTabEntry(marf.nlp.Parsing.Token poUID, marf.nlp.Parsing.SymDataType poSymDataType)
Method Detail |
public marf.nlp.Parsing.SymDataType getDataType()
public void addLocation(java.awt.Point poPoisition)
public java.util.Vector getLocationsList()
public marf.nlp.Parsing.Token getUID()
public void setUID(marf.nlp.Parsing.Token poToken)
public boolean isDeclared()
true if the Resolved property is true
public void setDeclared(boolean pbDeclared)
pbDeclared
- the new value of the Declared propertypublic boolean isMultiplyDefined()
public void setMultiplyDefined(boolean pbFlag)
pbFlag
- the new value of the MultilplyDefined propertypublic void setMultiplyDefined()
public marf.nlp.Parsing.SymbolTable getLocalSymTab()
public int getID()
public void setID(int piID)
public static java.lang.String getMARFSourceCodeRevision()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |