gnu.expr
Class QuoteExp

java.lang.Object
  |
  +--gnu.expr.Expression
        |
        +--gnu.expr.QuoteExp

public class QuoteExp
extends Expression

An Expression that evaluates to a constant value.


Field Summary
static QuoteExp falseExp
           
static QuoteExp nullExp
           
static QuoteExp trueExp
           
static QuoteExp undefined_exp
           
static QuoteExp voidExp
           
 
Constructor Summary
QuoteExp(java.lang.Object val)
           
 
Method Summary
 void compile(Compilation comp, Target target)
           
 java.lang.Object eval(Environment env)
           
 Type getType()
          Return the Type used to represent the values of this Expression.
 java.lang.Object getValue()
           
 void print(java.io.PrintWriter ps)
           
 
Methods inherited from class gnu.expr.Expression
compile, compileNotePosition, compileWithPosition, getColumn, getFile, getLine, setFile, setLine, setLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

undefined_exp

public static QuoteExp undefined_exp

voidExp

public static QuoteExp voidExp

trueExp

public static QuoteExp trueExp

falseExp

public static QuoteExp falseExp

nullExp

public static QuoteExp nullExp
Constructor Detail

QuoteExp

public QuoteExp(java.lang.Object val)
Method Detail

getValue

public final java.lang.Object getValue()

getType

public final Type getType()
Description copied from class: Expression
Return the Type used to represent the values of this Expression.
Overrides:
getType in class Expression

eval

public java.lang.Object eval(Environment env)
Overrides:
eval in class Expression

compile

public void compile(Compilation comp,
                    Target target)
Overrides:
compile in class Expression

print

public void print(java.io.PrintWriter ps)
Overrides:
print in class Expression