gnu.expr
Class SeriesTarget

java.lang.Object
  extended by gnu.expr.Target
      extended by gnu.expr.SeriesTarget

public class SeriesTarget
extends Target

The value in the result (as a sequence of values) is passed to a function.


Field Summary
 Label done
          Where to go when done.
 Label function
          A function to call (using jsr/jsr_w).
 Declaration param
          Where to place each value.
 Scope scope
          A surrounding Scope for local Variables.
 
Fields inherited from class gnu.expr.Target
Ignore, pushObject
 
Constructor Summary
SeriesTarget()
           
 
Method Summary
 void compileFromStack(Compilation comp, Type stackType)
           
 void compileFromStackSimple(Compilation comp, Type stackType)
           
 Type getType()
           
static boolean isSingletonType(Type type)
           
 
Methods inherited from class gnu.expr.Target
pushValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

param

public Declaration param
Where to place each value.


function

public Label function
A function to call (using jsr/jsr_w).


done

public Label done
Where to go when done.


scope

public Scope scope
A surrounding Scope for local Variables. This Scope should include both any calls to compileFromStackSimple and the entirety of the 'function' subroutine. This is protect against where a variable logically goes out of scope, but we cannot re-use the local variable slot until we're past the 'function'.

Constructor Detail

SeriesTarget

public SeriesTarget()
Method Detail

compileFromStackSimple

public void compileFromStackSimple(Compilation comp,
                                   Type stackType)

compileFromStack

public void compileFromStack(Compilation comp,
                             Type stackType)
Specified by:
compileFromStack in class Target

getType

public Type getType()
Specified by:
getType in class Target

isSingletonType

public static boolean isSingletonType(Type type)