Package gnu.expr

Class ConsumerTarget


  • public class ConsumerTarget
    extends Target
    A Target which is some variable that implements gnu.lists.Consumer.
    • Field Detail

      • typeSequences

        public static final ClassType typeSequences
    • Constructor Detail

      • ConsumerTarget

        public ConsumerTarget​(Variable consumer)
      • ConsumerTarget

        public ConsumerTarget​(Variable consumer,
                              Type type)
    • Method Detail

      • getSingleTarget

        public ConsumerTarget getSingleTarget()
        Get equivalent target but which only accepts a single item.
      • 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,
                                               Type type)
        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.