gnu.expr

Class ConsumerTarget


public class ConsumerTarget
extends Target

A Target which is some variable that implements gnu.lists.Consumer.

Field Summary

Fields inherited from class gnu.expr.Target

Ignore, pushObject

Constructor Summary

ConsumerTarget(Variable consumer)

Method Summary

void
compileFromStack(Compilation comp, Type stackType)
static void
compileUsingConsumer(Expression exp, Compilation comp, Target target)
Compile an expression using a temporary Consumer, if needed.
static void
compileUsingConsumer(Expression exp, Compilation comp, Target target, Method makeMethod, Method resultMethod)
Variable
getConsumerVariable()
Type
getType()
boolean
isContextTarget()
True iff this target is the current CallContext's current Consumer.
static Target
makeContextTarget(Compilation comp)
Make a Target that uses the current CallContext's current Consumer.

Methods inherited from class gnu.expr.Target

compileFromStack, getType, pushValue

Constructor Details

ConsumerTarget

public ConsumerTarget(Variable consumer)

Method Details

compileFromStack

public void compileFromStack(Compilation comp,
                             Type stackType)
Overrides:
compileFromStack in interface Target

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)

getConsumerVariable

public Variable getConsumerVariable()

getType

public Type getType()
Overrides:
getType in interface Target

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.