org.millscript.millscript.expr
Class SubrangeExpr

java.lang.Object
  extended by org.millscript.millscript.expr.Expr<Action>
      extended by org.millscript.millscript.expr.FakeExpr
          extended by org.millscript.millscript.expr.SubrangeExpr
All Implemented Interfaces:
OneResult

public final class SubrangeExpr
extends FakeExpr
implements OneResult

This class implements a subrange expression. A subrange expression doesn't have its own actions, rather it wraps to the subrange sequence function.

See Also:
IndexSyntax, SubrangeFunction

Constructor Summary
SubrangeExpr()
           
 
Method Summary
static ApplyExpr make(Expr lhs, Expr rhs, Expr rhs2)
          Returns an expression applying the subrange function to the specified left and right hand side expressions.
 
Methods inherited from class org.millscript.millscript.expr.FakeExpr
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

SubrangeExpr

public SubrangeExpr()
Method Detail

make

public static ApplyExpr make(Expr lhs,
                             Expr rhs,
                             Expr rhs2)
Returns an expression applying the subrange function to the specified left and right hand side expressions.

Parameters:
lhs - the expression returning the object to subrange
rhs - an expression returning the starting point object
rhs2 - an expression returning the end point object
Returns:
an ApplyExpr applying the SubrangeFunction to the specified left and right hand side expressions


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