org.millscript.millscript.expr
Class FnCompExpr
java.lang.Object
org.millscript.millscript.expr.Expr<A>
org.millscript.millscript.expr.BinaryOpExpr<FnCompAction>
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 expressiona - the left hand side component function expressionb - the right hand side component function expression
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 expressionb - 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.