org.millscript.millscript.syntax
Class AndSyntax

java.lang.Object
  extended by org.millscript.millscript.syntax.Syntax
      extended by org.millscript.millscript.syntax.PostfixSyntax
          extended by org.millscript.millscript.syntax.SimplePostfixSyntax
              extended by org.millscript.millscript.syntax.AndSyntax
All Implemented Interfaces:
PostfixSyntaxInterface

public final class AndSyntax
extends SimplePostfixSyntax

This class implements and syntax.

<expr> and <expr>

The expression on the right hand side will only be executed if execution of the left hand side returns true.

See Also:
AndExpr

Constructor Summary
AndSyntax()
           
 
Method Summary
 AndExpr simple(Expr lhs, Expr rhs)
          Returns the expression for this simple postfix syntax, which is made by combining the left and right hand side expressions.
 
Methods inherited from class org.millscript.millscript.syntax.SimplePostfixSyntax
postfix
 
Methods inherited from class org.millscript.millscript.syntax.PostfixSyntax
getPrecedence, setPrec
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndSyntax

public AndSyntax()
Method Detail

simple

public AndExpr simple(Expr lhs,
                      Expr rhs)
Description copied from class: SimplePostfixSyntax
Returns the expression for this simple postfix syntax, which is made by combining the left and right hand side expressions.

Parameters:
lhs - the expression on the left hand side of this syntax
rhs - the expression on the right hand side of this syntax
Returns:
the expression for this syntax
See Also:
SimplePostfixSyntax.simple(org.millscript.millscript.expr.Expr, org.millscript.millscript.expr.Expr)


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