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 executing the Expression whose target this is.
 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()
           
 java.lang.String toString()
           
 
Methods inherited from class gnu.expr.Target
pushValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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 executing the Expression whose target this is. If null, execution should continue just after the Expression.


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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getType

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