public class ConsumerTarget extends Target
Ignore, pushObject
Constructor and Description |
---|
ConsumerTarget(Variable consumer) |
Modifier and Type | Method and Description |
---|---|
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) |
boolean |
compileWrite(Expression exp,
Compilation comp) |
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.
|
public ConsumerTarget(Variable consumer)
public Variable getConsumerVariable()
public final boolean isContextTarget()
public static Target makeContextTarget(Compilation comp)
public static void compileUsingConsumer(Expression exp, Compilation comp, Target target)
public static void compileUsingConsumer(Expression exp, Compilation comp, Target target, Method makeMethod, Method resultMethod)
public void compileFromStack(Compilation comp, Type stackType)
compileFromStack
in class Target
public boolean compileWrite(Expression exp, Compilation comp)