gnu.expr

Class QuoteExp

public class QuoteExp extends Expression

An Expression that evaluates to a constant value.
Field Summary
static QuoteExpfalseExp
static QuoteExpnullExp
static QuoteExptrueExp
protected Typetype
static QuoteExpundefined_exp
static QuoteExpvoidExp
Constructor Summary
QuoteExp(Object val)
QuoteExp(Object val, Type type)
Method Summary
voidapply(CallContext ctx)
voidcompile(Compilation comp, Target target)
static QuoteExpgetInstance(Object value)
TypegetType()
ObjectgetValue()
Expressioninline(ApplyExp exp, InlineCalls walker, Declaration decl)
protected booleanmustCompile()
voidprint(OutPort out)
booleanside_effects()
StringtoString()
ObjectvalueIfConstant()
protected Expressionwalk(ExpWalker walker)

Field Detail

falseExp

public static QuoteExp falseExp

nullExp

public static QuoteExp nullExp

trueExp

public static QuoteExp trueExp

type

protected Type type

undefined_exp

public static QuoteExp undefined_exp

voidExp

public static QuoteExp voidExp

Constructor Detail

QuoteExp

public QuoteExp(Object val)

QuoteExp

public QuoteExp(Object val, Type type)

Method Detail

apply

public void apply(CallContext ctx)

compile

public void compile(Compilation comp, Target target)

getInstance

public static QuoteExp getInstance(Object value)

getType

public final Type getType()

getValue

public final Object getValue()

inline

public Expression inline(ApplyExp exp, InlineCalls walker, Declaration decl)

mustCompile

protected boolean mustCompile()

print

public void print(OutPort out)

side_effects

public boolean side_effects()

toString

public String toString()

valueIfConstant

public final Object valueIfConstant()

walk

protected Expression walk(ExpWalker walker)