org.holtz.zoe.zoel
Class Literal

java.lang.Object
  extended by org.holtz.zoe.zoel.Expression
      extended by org.holtz.zoe.zoel.Value
          extended by org.holtz.zoe.zoel.Literal
Direct Known Subclasses:
Number, StringLiteral

public abstract class Literal
extends Value

A string or numeric Operand of a Statement in a Zoel program.

Author:
Brian Holtz

Constructor Summary
Literal()
           
 
Method Summary
abstract  boolean isTrue()
           
abstract  double toNumber()
           
 
Methods inherited from class org.holtz.zoe.zoel.Value
parse
 
Methods inherited from class org.holtz.zoe.zoel.Expression
copy, isFertile, nthStatement, parse, random, toString, toString, totalStatements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Literal

public Literal()
Method Detail

isTrue

public abstract boolean isTrue()

toNumber

public abstract double toNumber()