com.threerings.expr
Class BooleanExpression.Constant

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.expr.BooleanExpression
          extended by com.threerings.expr.BooleanExpression.Constant
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
BooleanExpression

public static class BooleanExpression.Constant
extends BooleanExpression

A constant expression.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.expr.BooleanExpression
BooleanExpression.And, BooleanExpression.BinaryOperation, BooleanExpression.BooleanEquals, BooleanExpression.Constant, BooleanExpression.Evaluator, BooleanExpression.FloatBinaryOperation, BooleanExpression.FloatEquals, BooleanExpression.FloatGreater, BooleanExpression.FloatGreaterEquals, BooleanExpression.FloatLess, BooleanExpression.FloatLessEquals, BooleanExpression.Not, BooleanExpression.Or, BooleanExpression.Parsed, BooleanExpression.Reference, BooleanExpression.StringEquals, BooleanExpression.Xor
 
Field Summary
 boolean value
          The value of the constant.
 
Constructor Summary
BooleanExpression.Constant()
          Creates a new constant expression with a value of false.
BooleanExpression.Constant(boolean value)
          Creates a new constant expression with the specified value.
 
Method Summary
 BooleanExpression.Evaluator createEvaluator(Scope scope)
          Creates an expression evaluator for the supplied context.
 
Methods inherited from class com.threerings.expr.BooleanExpression
invalidate
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

@Editable
public boolean value
The value of the constant.

Constructor Detail

BooleanExpression.Constant

public BooleanExpression.Constant(boolean value)
Creates a new constant expression with the specified value.


BooleanExpression.Constant

public BooleanExpression.Constant()
Creates a new constant expression with a value of false.

Method Detail

createEvaluator

public BooleanExpression.Evaluator createEvaluator(Scope scope)
Description copied from class: BooleanExpression
Creates an expression evaluator for the supplied context.

Specified by:
createEvaluator in class BooleanExpression


Copyright © 2011. All Rights Reserved.