de.upb.hni.vmagic.literal
Class BasedLiteral

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.BasedLiteral
All Implemented Interfaces:
Choice

public class BasedLiteral
extends AbstractLiteral

Based literal.


Constructor Summary
BasedLiteral(java.lang.String value)
          Creates a based 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

BasedLiteral

public BasedLiteral(java.lang.String value)
Creates a based literal.

Parameters:
value - the 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