public class ConsumerTarget extends Target
Modifier and Type | Field and Description |
---|---|
static ConsumerTarget |
contextInstance |
static ClassType |
typeSequences |
Ignore, pushObject
Constructor and Description |
---|
ConsumerTarget(Variable consumer) |
ConsumerTarget(Variable consumer,
Type type) |
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) |
static void |
compileUsingValues(Expression exp,
Compilation comp,
Target target) |
boolean |
compileWrite(Expression exp,
Compilation comp) |
Variable |
getConsumerVariable() |
ConsumerTarget |
getSingleTarget()
Get equivalent target but which only accepts a single item.
|
Type |
getType() |
boolean |
isContextTarget()
True iff this target is the current CallContext's current Consumer.
|
static Target |
makeContextTarget(Compilation comp,
Type type)
Make a Target that uses the current CallContext's current Consumer.
|
public static final ConsumerTarget contextInstance
public static final ClassType typeSequences
public ConsumerTarget(Variable consumer)
public ConsumerTarget getSingleTarget()
public Variable getConsumerVariable()
public final boolean isContextTarget()
public static Target makeContextTarget(Compilation comp, Type type)
public static void compileUsingValues(Expression exp, Compilation comp, Target target)
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)