com.threerings.expr
Class BooleanExpression

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.expr.BooleanExpression
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
BooleanExpression.BinaryOperation, BooleanExpression.Constant, BooleanExpression.FloatBinaryOperation, BooleanExpression.Not, BooleanExpression.Parsed, BooleanExpression.Reference, BooleanExpression.StringEquals

@EditorTypes(value={BooleanExpression.Parsed.class,BooleanExpression.Constant.class,BooleanExpression.Reference.class,BooleanExpression.Not.class,BooleanExpression.And.class,BooleanExpression.Or.class,BooleanExpression.Xor.class,BooleanExpression.BooleanEquals.class,BooleanExpression.FloatLess.class,BooleanExpression.FloatGreater.class,BooleanExpression.FloatEquals.class,BooleanExpression.FloatLessEquals.class,BooleanExpression.FloatGreaterEquals.class,BooleanExpression.StringEquals.class})
public abstract class BooleanExpression
extends DeepObject
implements Exportable

A boolean-valued expression.


Nested Class Summary
static class BooleanExpression.And
          Computes the logical AND of its operands.
static class BooleanExpression.BinaryOperation
          The superclass of the binary operations.
static class BooleanExpression.BooleanEquals
          Checks the equality of its operands.
static class BooleanExpression.Constant
          A constant expression.
static class BooleanExpression.Evaluator
          Performs the actual evaluation of the expression.
static class BooleanExpression.FloatBinaryOperation
          The superclass of the operations involving two float expressions.
static class BooleanExpression.FloatEquals
          Determines whether the first float is equal to the second.
static class BooleanExpression.FloatGreater
          Determines whether the first float is greater than the second.
static class BooleanExpression.FloatGreaterEquals
          Determines whether the first float is greater than or equal to the second.
static class BooleanExpression.FloatLess
          Determines whether the first float is less than the second.
static class BooleanExpression.FloatLessEquals
          Determines whether the first float is greater than or equal to the second.
static class BooleanExpression.Not
          Returns the logical NOT of the sub-expression.
static class BooleanExpression.Or
          Computes the logical OR of its operands.
static class BooleanExpression.Parsed
          An expression entered as a string to be parsed.
static class BooleanExpression.Reference
          A reference expression.
static class BooleanExpression.StringEquals
          Compares two strings for equality.
static class BooleanExpression.Xor
          Computes the logical XOR of its operands.
 
Constructor Summary
BooleanExpression()
           
 
Method Summary
abstract  BooleanExpression.Evaluator createEvaluator(Scope scope)
          Creates an expression evaluator for the supplied context.
 void invalidate()
          Invalidates any cached data.
 
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
 

Constructor Detail

BooleanExpression

public BooleanExpression()
Method Detail

createEvaluator

public abstract BooleanExpression.Evaluator createEvaluator(Scope scope)
Creates an expression evaluator for the supplied context.


invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.