Public Member Functions | Protected Attributes

IntegerConstant Class Reference

Inheritance diagram for IntegerConstant:
Constant Variable Symbol

List of all members.

Public Member Functions

 IntegerConstant (String name, int value)
 IntegerConstant (String svalue)
 IntegerConstant (String name, String svalue)
int getValue ()
void setValue (int value)
String toString ()

Protected Attributes

int value

Detailed Description

The symbol table representation of CONST i=3; You would create new IntegerConstant("i", 3)


Constructor & Destructor Documentation

IntegerConstant.IntegerConstant ( String  name,
int  value 
)

References Variable.setType(), and setValue().

IntegerConstant.IntegerConstant ( String  svalue  ) 
IntegerConstant.IntegerConstant ( String  name,
String  svalue 
)

References Variable.setType(), and setValue().


Member Function Documentation

int IntegerConstant.getValue (  ) 

References value.

void IntegerConstant.setValue ( int  value  ) 

Referenced by IntegerConstant().

String IntegerConstant.toString (  ) 

Reimplemented from Variable.

References value.


Member Data Documentation

int IntegerConstant.value [protected]

Referenced by getValue(), and toString().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties