marf.nlp.Parsing
Class SymDataType

java.lang.Object
  extended by marf.nlp.Parsing.SymDataType

public class SymDataType
extends java.lang.Object

User-defined symbol's data type.

$Id: SymDataType.java,v 1.11 2008/01/03 03:21:57 mokhov Exp $

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

Field Summary
static int CLASS
          Class data type of the symbol.
static int FUNCTION
          Function data type of the symbol.
static int INTEGER
          Integer data type of the symbol.
static int REAL
          Real data type of the symbol.
static int UNKNOWN
          Unknown data type of the symbol.
 
Constructor Summary
SymDataType()
          Default Constructor.
SymDataType(int piType)
          Constructor with the type parameter.
 
Method Summary
static java.lang.String getMARFSourceCodeRevision()
          Retrieves class' revision.
 int getType()
          Allows querying for data type.
 void setType(int piType)
          Allows setting the date type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN

public static final int UNKNOWN
Unknown data type of the symbol.

See Also:
Constant Field Values

INTEGER

public static final int INTEGER
Integer data type of the symbol.

See Also:
Constant Field Values

REAL

public static final int REAL
Real data type of the symbol.

See Also:
Constant Field Values

CLASS

public static final int CLASS
Class data type of the symbol.

See Also:
Constant Field Values

FUNCTION

public static final int FUNCTION
Function data type of the symbol.

See Also:
Constant Field Values
Constructor Detail

SymDataType

public SymDataType()
Default Constructor.


SymDataType

public SymDataType(int piType)
Constructor with the type parameter.

Parameters:
piType - the desired data type to set
Throws:
java.lang.IllegalArgumentException - if the parameter is out of range
Method Detail

getType

public int getType()
Allows querying for data type.

Returns:
the current data type
Since:
0.3.0.5

setType

public void setType(int piType)
Allows setting the date type.

Parameters:
piType - the desired type
Throws:
java.lang.IllegalArgumentException - if the parameter is out of range
Since:
0.3.0.5

getMARFSourceCodeRevision

public static java.lang.String getMARFSourceCodeRevision()
Retrieves class' revision.

Returns:
revision string


SourceForge Logo