de.upb.hni.vmagic.literal
Class HexLiteral

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

public class HexLiteral
extends Literal

Hexadecimal literal.


Constructor Summary
HexLiteral(int value)
          Creates a hex literal by converting a integer value.
HexLiteral(java.lang.String value)
          Creates a hex literal.
 
Method Summary
 SubtypeIndication getType()
          Returns the type of this expression.
 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

HexLiteral

public HexLiteral(java.lang.String value)
Creates a hex literal.

Parameters:
value - the value

HexLiteral

public HexLiteral(int value)
Creates a hex literal by converting a integer value.

Parameters:
value - the integer value
Method Detail

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