com.threerings.expr
Class ExpressionDefinition

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.expr.ExpressionDefinition
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
ExpressionDefinition.Color4fDefinition, ExpressionDefinition.FloatDefinition, ExpressionDefinition.IntegerDefinition, ExpressionDefinition.StringDefinition, ExpressionDefinition.Transform3DDefinition

@EditorTypes(value={ExpressionDefinition.FloatDefinition.class,ExpressionDefinition.IntegerDefinition.class,ExpressionDefinition.Color4fDefinition.class,ExpressionDefinition.StringDefinition.class,ExpressionDefinition.Transform3DDefinition.class})
public abstract class ExpressionDefinition
extends DeepObject
implements Exportable

The superclass of the expression definitions.


Nested Class Summary
static class ExpressionDefinition.Color4fDefinition
          Defines a color variable.
static class ExpressionDefinition.FloatDefinition
          Defines a float variable.
static class ExpressionDefinition.IntegerDefinition
          Defines an integer variable.
static class ExpressionDefinition.StringDefinition
          Defines a string variable.
static class ExpressionDefinition.Transform3DDefinition
          Defines a transform variable.
 
Field Summary
 String name
          The name of the symbol to define.
 
Constructor Summary
ExpressionDefinition()
           
 
Method Summary
abstract  Object getValue(Scope scope, ArrayList<Updater> updaters)
          Retrieves the value for this definition.
 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
 

Field Detail

name

@Editable
public String name
The name of the symbol to define.

Constructor Detail

ExpressionDefinition

public ExpressionDefinition()
Method Detail

getValue

public abstract Object getValue(Scope scope,
                                ArrayList<Updater> updaters)
Retrieves the value for this definition.

Parameters:
updaters - the list of updaters to contain the value's updater.

invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.