gnu.expr
Class ConsumerTarget
java.lang.Object
gnu.expr.Target
gnu.expr.ConsumerTarget
public class ConsumerTarget
- extends Target
A Target which is some variable that implements gnu.lists.Consumer.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsumerTarget
public ConsumerTarget(Variable consumer)
getConsumerVariable
public Variable getConsumerVariable()
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.
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)
compileFromStack
public void compileFromStack(Compilation comp,
Type stackType)
- Specified by:
compileFromStack
in class Target
getType
public Type getType()
- Specified by:
getType
in class Target