org.millscript.millscript.expr
Class FnCompExpr

java.lang.Object
  extended by org.millscript.millscript.expr.Expr<A>
      extended by org.millscript.millscript.expr.BinaryOpExpr<FnCompAction>
          extended by org.millscript.millscript.expr.FnCompExpr
All Implemented Interfaces:
OneResult

public final class FnCompExpr
extends BinaryOpExpr<FnCompAction>

This class implements a compound function expression. A compound function expression has a left and right hand side function, the left hand side is executed first, then the right hand side is executed with the results of the left hand side as arguments. e.g.

rhs( lhs( args...) )

See Also:
FnCompAction

Constructor Summary
FnCompExpr(java.lang.String n, Expr<?> a, Expr<?> b)
          Creates a new compound function expression with the specified name and component function expressions.
 
Method Summary
 FnCompAction newAction(Action a, Action b)
          Compiles this expression into an action.
 
Methods inherited from class org.millscript.millscript.expr.BinaryOpExpr
compileIt, resolve
 
Methods inherited from class org.millscript.millscript.expr.Expr
arity, compile, isIntegerExpr, resolveList, setLineNumber, setOrigin, show, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FnCompExpr

public FnCompExpr(java.lang.String n,
                  Expr<?> a,
                  Expr<?> b)
Creates a new compound function expression with the specified name and component function expressions.

Parameters:
n - the name for the compound function expression
a - the left hand side component function expression
b - the right hand side component function expression
Method Detail

newAction

public FnCompAction newAction(Action a,
                              Action b)
Description copied from class: BinaryOpExpr
Compiles this expression into an action. This is method performs the expression specific compilation, but does not need to handle the left and right hand side expression compilation.

Specified by:
newAction in class BinaryOpExpr<FnCompAction>
Parameters:
a - the compiled left hand side expression
b - the compiled right hand side expression
Returns:
the Action for this expression
See Also:
BinaryOpExpr.newAction(org.millscript.millscript.action.Action, org.millscript.millscript.action.Action)


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.