gnu.expr

Class ConsumerTarget

public class ConsumerTarget extends Target

A Target which is some variable that implements gnu.lists.Consumer.
Constructor Summary
ConsumerTarget(Variable consumer)
Method Summary
voidcompileFromStack(Compilation comp, Type stackType)
static voidcompileUsingConsumer(Expression exp, Compilation comp, Target target)
Compile an expression using a temporary Consumer, if needed.
static voidcompileUsingConsumer(Expression exp, Compilation comp, Target target, Method makeMethod, Method resultMethod)
booleancompileWrite(Expression exp, Compilation comp)
VariablegetConsumerVariable()
TypegetType()
booleanisContextTarget()
True iff this target is the current CallContext's current Consumer.
static TargetmakeContextTarget(Compilation comp)
Make a Target that uses the current CallContext's current Consumer.

Constructor Detail

ConsumerTarget

public ConsumerTarget(Variable consumer)

Method Detail

compileFromStack

public void compileFromStack(Compilation comp, Type stackType)

compileUsingConsumer

public static void compileUsingConsumer(Expression exp, Compilation comp, Target target)
Compile an expression using a temporary Consumer, if needed.

compileUsingConsumer

public static void compileUsingConsumer(Expression exp, Compilation comp, Target target, Method makeMethod, Method resultMethod)

compileWrite

public boolean compileWrite(Expression exp, Compilation comp)

getConsumerVariable

public Variable getConsumerVariable()

getType

public Type getType()

isContextTarget

public final boolean isContextTarget()
True iff this target is the current CallContext's current Consumer.

makeContextTarget

public static Target makeContextTarget(Compilation comp)
Make a Target that uses the current CallContext's current Consumer.