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.
|
Constructor Summary |
QuoteExp(java.lang.Object val)
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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
QuoteExp
public QuoteExp(java.lang.Object val)
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