| java.lang.Object gnu.expr.Target gnu.expr.ConsumerTarget
ConsumerTarget | public class ConsumerTarget extends Target (Code) | | A Target which is some variable that implements gnu.lists.Consumer.
|
Method Summary | |
public void | compileFromStack(Compilation comp, Type stackType) | void | compileFromStack(Compilation comp, Type stackType, int consumerPushed) Write stack value to Consumer. | public static void | compileUsingConsumer(Expression exp, Compilation comp, Target target) Compile an expression using a temporary Consumer, if needed. | public static void | compileUsingConsumer(Expression exp, Compilation comp, Target target, Method makeMethod, Method resultMethod) | public boolean | compileWrite(Expression exp, Compilation comp) | public Variable | getConsumerVariable() | public Type | getType() | final public boolean | isContextTarget() True iff this target is the current CallContext's current Consumer. | public static Target | makeContextTarget(Compilation comp) Make a Target that uses the current CallContext's current Consumer. |
isContextTarget | boolean isContextTarget(Code) | | |
compileFromStack | void compileFromStack(Compilation comp, Type stackType, int consumerPushed)(Code) | | Write stack value to Consumer.
Parameters: consumerPushed - if -1, then Consumer has not been pushed;if 1, Consumer was pushed before value, and value is a known singleton;if 0, Consumer was pushed before value, otherwise. |
compileUsingConsumer | public static void compileUsingConsumer(Expression exp, Compilation comp, Target target)(Code) | | Compile an expression using a temporary Consumer, if needed.
|
isContextTarget | final public boolean isContextTarget()(Code) | | True iff this target is the current CallContext's current Consumer.
|
makeContextTarget | public static Target makeContextTarget(Compilation comp)(Code) | | Make a Target that uses the current CallContext's current Consumer.
|
|
|