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 TypeMethodDescriptionvoid
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) Get equivalent target but which only accepts a single item.getType()
final boolean
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.
-
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:
compileFromStack
in classTarget
-
compileWrite
-
getType
-