com.threerings.tudey.config
Class ExpressionConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.config.ExpressionConfig
All Implemented Interfaces:
Exportable, com.threerings.io.Streamable, Copyable, Cloneable
Direct Known Subclasses:
ExpressionConfig.BinaryOperation, ExpressionConfig.Constant, ExpressionConfig.NumTargets, ExpressionConfig.Parsed, ExpressionConfig.Previous, ExpressionConfig.Reference, ExpressionConfig.UnaryOperation

@EditorTypes(value={ExpressionConfig.Parsed.class,ExpressionConfig.Constant.class,ExpressionConfig.Reference.class,ExpressionConfig.Previous.class,ExpressionConfig.Increment.class,ExpressionConfig.Decrement.class,ExpressionConfig.Negate.class,ExpressionConfig.Add.class,ExpressionConfig.Subtract.class,ExpressionConfig.Multiply.class,ExpressionConfig.Divide.class,ExpressionConfig.Remainder.class,ExpressionConfig.Not.class,ExpressionConfig.And.class,ExpressionConfig.Or.class,ExpressionConfig.Xor.class,ExpressionConfig.Less.class,ExpressionConfig.Greater.class,ExpressionConfig.Equals.class,ExpressionConfig.LessEquals.class,ExpressionConfig.GreaterEquals.class,ExpressionConfig.NumTargets.class})
@Strippable
public abstract class ExpressionConfig
extends DeepObject
implements Exportable, com.threerings.io.Streamable

Configurations for (weakly typed) server-side expressions.


Nested Class Summary
static class ExpressionConfig.Add
          Computes the sum of the operands.
static class ExpressionConfig.And
          Computes the logical AND of the first and second operands.
static class ExpressionConfig.BinaryOperation
          Base class for binary operations.
static class ExpressionConfig.Constant
          A constant expression.
static class ExpressionConfig.Decrement
          Subtracts one from the operand.
static class ExpressionConfig.Divide
          Computes the quotient of the operands.
static class ExpressionConfig.Equals
          Finds out whether the first operand is equal to the second.
static class ExpressionConfig.Greater
          Finds out whether the first operand is greater than the second.
static class ExpressionConfig.GreaterEquals
          Finds out whether the first operand is greater than or equal to the second.
static class ExpressionConfig.Increment
          Adds one to the operand.
static class ExpressionConfig.Less
          Finds out whether the first operand is less then the second.
static class ExpressionConfig.LessEquals
          Finds out whether the first operand is less than or equal to the second.
static class ExpressionConfig.Multiply
          Computes the product of the operands.
static class ExpressionConfig.Negate
          Negates the operand.
static class ExpressionConfig.Not
          Computes the logical NOT of the operand.
static class ExpressionConfig.NumTargets
          The side of the target results.
static class ExpressionConfig.Or
          Computes the logical OR of the first and second operands.
static class ExpressionConfig.Parsed
          An expression entered as a string to be parsed.
static class ExpressionConfig.Previous
          The previous value.
static class ExpressionConfig.Reference
          A reference to another variable.
static class ExpressionConfig.Remainder
          Computes the remainder of division of the operands.
static class ExpressionConfig.Subtract
          Computes the difference of the operands.
static class ExpressionConfig.UnaryOperation
          Base class for unary operations.
static class ExpressionConfig.Xor
          Computes the logical XOR of the first and second operands.
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
com.threerings.io.Streamable.Closure
 
Constructor Summary
ExpressionConfig()
           
 
Method Summary
abstract  String getLogicClassName()
          Returns the name of the server-side logic class for this expression.
 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

ExpressionConfig

public ExpressionConfig()
Method Detail

getLogicClassName

public abstract String getLogicClassName()
Returns the name of the server-side logic class for this expression.


invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.