Java 2 Platform
v1.3

edu.umich.visualsoar.parser
Class Constant

java.lang.Object
  |
  +--edu.umich.visualsoar.parser.Constant

public class Constant
extends java.lang.Object


Field Summary
private  int d_beginLine
           
private  int d_constType
           
private  float d_floatConst
           
private  int d_intConst
           
private  java.lang.String d_symConst
           
static int FLOATING_CONST
           
static int INTEGER_CONST
           
static int SYMBOLIC_CONST
           
 
Constructor Summary
private Constant()
           
  Constant(float floatConst, int beginLine)
           
  Constant(int intConst, int beginLine)
           
  Constant(java.lang.String symConst, int beginLine)
           
 
Method Summary
 int getBeginLine()
           
 int getConstantType()
           
 float getFloatConst()
           
 int getIntConst()
           
 java.lang.String getSymConst()
           
 edu.umich.visualsoar.parser.Pair toPair()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

d_beginLine

private int d_beginLine

d_constType

private int d_constType

d_intConst

private int d_intConst

d_floatConst

private float d_floatConst

d_symConst

private java.lang.String d_symConst

INTEGER_CONST

public static final int INTEGER_CONST
See Also:
Constant Field Values

SYMBOLIC_CONST

public static final int SYMBOLIC_CONST
See Also:
Constant Field Values

FLOATING_CONST

public static final int FLOATING_CONST
See Also:
Constant Field Values
Constructor Detail

Constant

private Constant()

Constant

public Constant(java.lang.String symConst,
                int beginLine)

Constant

public Constant(int intConst,
                int beginLine)

Constant

public Constant(float floatConst,
                int beginLine)
Method Detail

getConstantType

public int getConstantType()

getBeginLine

public int getBeginLine()

getIntConst

public int getIntConst()

getFloatConst

public float getFloatConst()

getSymConst

public java.lang.String getSymConst()

toPair

public edu.umich.visualsoar.parser.Pair toPair()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Java 2 Platform
v1.3