Package gnu.expr
Class ConsumerTarget
java.lang.Object
gnu.expr.Target
gnu.expr.ConsumerTarget
A Target which is some variable that implements gnu.lists.Consumer.
-
Field Summary
FieldsFields inherited from class gnu.expr.Target
Ignore, pushObject -
Constructor Summary
ConstructorsConstructorDescriptionConsumerTarget(Variable consumer) ConsumerTarget(Variable consumer, Type type) -
Method Summary
Modifier and TypeMethodDescriptionvoidcompileFromStack(Compilation comp, Type stackType) static voidcompileUsingConsumer(Expression exp, Compilation comp, Target target) Compile an expression using a temporary Consumer, if needed.static voidcompileUsingConsumer(Expression exp, Compilation comp, Target target, Method makeMethod, Method resultMethod) static voidcompileUsingValues(Expression exp, Compilation comp, Target target) booleancompileWrite(Expression exp, Compilation comp) Get equivalent target but which only accepts a single item.getType()final booleanTrue iff this target is the current CallContext's current Consumer.static TargetmakeContextTarget(Compilation comp, Type type) Make a Target that uses the current CallContext's current Consumer.
-
Field Details
-
contextInstance
-
typeSequences
-
-
Constructor Details
-
ConsumerTarget
-
ConsumerTarget
-
-
Method Details
-
getSingleTarget
Get equivalent target but which only accepts a single item. -
getConsumerVariable
-
isContextTarget
public final boolean isContextTarget()True iff this target is the current CallContext's current Consumer. -
makeContextTarget
Make a Target that uses the current CallContext's current Consumer. -
compileUsingValues
-
compileUsingConsumer
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
- Specified by:
compileFromStackin classTarget
-
compileWrite
-
getType
-