org.millscript.millscript.expr
Class IndexExpr

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

public final class IndexExpr
extends FakeExpr
implements OneResult

This class implements an index expression. An index expression doesn't have its own actions, rather it wraps to the index function.

See Also:
IndexSyntax, IndexFunction

Constructor Summary
IndexExpr()
           
 
Method Summary
static ApplyExpr make(Expr lhs, Expr rhs)
          Returns an expression applying the index 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

IndexExpr

public IndexExpr()
Method Detail

make

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

Parameters:
lhs - the expression returning the object to index
rhs - an expression returning the object to index with
Returns:
an ApplyExpr applying the IndexFunction to the specified left and right hand side expressions


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