de.upb.hni.vmagic.literal
Class DecimalLiteral

java.lang.Object
  extended by de.upb.hni.vmagic.VhdlElement
      extended by de.upb.hni.vmagic.expression.Expression
          extended by de.upb.hni.vmagic.expression.Primary
              extended by de.upb.hni.vmagic.expression.Literal
                  extended by de.upb.hni.vmagic.literal.AbstractLiteral
                      extended by de.upb.hni.vmagic.literal.DecimalLiteral
All Implemented Interfaces:
Choice

public class DecimalLiteral
extends AbstractLiteral

Decimal literal.


Constructor Summary
DecimalLiteral(int value)
          Creates a decimal literal by converting a integer value.
DecimalLiteral(java.lang.String value)
          Creates a decimal literal.
 
Method Summary
 SubtypeIndication getType()
          Returns the type of this expression.
 java.lang.String getValue()
          Returns the value.
 void setValue(java.lang.String value)
          Sets the value.
 java.lang.String toString()
           
 
Methods inherited from class de.upb.hni.vmagic.expression.Primary
getPrecedence
 
Methods inherited from class de.upb.hni.vmagic.VhdlElement
getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DecimalLiteral

public DecimalLiteral(java.lang.String value)
Creates a decimal literal.

Parameters:
value - the value

DecimalLiteral

public DecimalLiteral(int value)
Creates a decimal literal by converting a integer value.

Parameters:
value - the integer value
Method Detail

getValue

public java.lang.String getValue()
Returns the value.

Returns:
the value

setValue

public void setValue(java.lang.String value)
Sets the value.

Parameters:
value - the value

getType

public SubtypeIndication getType()
Description copied from class: Expression
Returns the type of this expression.

Specified by:
getType in class Expression
Returns:
the type of this expression

toString

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