org.holtz.zoe
Class StringLiteral

java.lang.Object
  extended by org.holtz.zoe.Expression
      extended by org.holtz.zoe.Value
          extended by org.holtz.zoe.Literal
              extended by org.holtz.zoe.StringLiteral

public class StringLiteral
extends Literal

A string Literal Operand of a Statement in a Zoel program.

Author:
Brian Holtz

Field Summary
 java.lang.String val
           
 
Constructor Summary
StringLiteral(java.lang.String theVal)
           
StringLiteral(StringLiteral obj2Copy)
           
 
Method Summary
 StringLiteral copy()
           
 boolean isTrue()
           
 double toNumber()
           
 java.lang.String toString()
           
 java.lang.String toString(java.lang.String statementSeparator, Expression currExpr, java.lang.String cursor)
           
 
Methods inherited from class org.holtz.zoe.Value
parse
 
Methods inherited from class org.holtz.zoe.Expression
parse, totalStatements
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

val

public java.lang.String val
Constructor Detail

StringLiteral

public StringLiteral(java.lang.String theVal)

StringLiteral

public StringLiteral(StringLiteral obj2Copy)
Method Detail

copy

public StringLiteral copy()
Specified by:
copy in class Expression

toString

public java.lang.String toString(java.lang.String statementSeparator,
                                 Expression currExpr,
                                 java.lang.String cursor)
Specified by:
toString in class Expression

isTrue

public boolean isTrue()
Specified by:
isTrue in class Literal

toString

public java.lang.String toString()
Specified by:
toString in class Expression

toNumber

public double toNumber()
Specified by:
toNumber in class Literal