de.upb.hni.vmagic.literal
Class StringLiteral

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

public class StringLiteral
extends Literal

String literal.


Constructor Summary
StringLiteral(java.lang.String string)
          Creates a string literal.
 
Method Summary
 java.lang.String getString()
          Returns the string.
 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

StringLiteral

public StringLiteral(java.lang.String string)
Creates a string literal.

Parameters:
string - the string
Method Detail

getString

public java.lang.String getString()
Returns the string.

Returns:
the string

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