|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.expr.ExpressionBinding
@EditorTypes(value={ExpressionBinding.FloatBinding.class,ExpressionBinding.IntegerBinding.class,ExpressionBinding.Color4fBinding.class,ExpressionBinding.StringBinding.class,ExpressionBinding.Transform3DBinding.class})
public abstract class ExpressionBindingThe superclass of the expression bindings.
| Nested Class Summary | |
|---|---|
static class |
ExpressionBinding.Color4fBinding
A color binding. |
static class |
ExpressionBinding.FloatBinding
A float binding. |
static class |
ExpressionBinding.IntegerBinding
An integer binding. |
static class |
ExpressionBinding.StringBinding
A string binding. |
static class |
ExpressionBinding.Transform3DBinding
A transform binding. |
| Field Summary | |
|---|---|
protected Property[][] |
_flagPaths
The cached dirty flag paths. |
protected Property[][] |
_paths
The cached paths. |
String[] |
flags
The paths of any dirty flags to set. |
String[] |
paths
The paths of the bound variables. |
| Constructor Summary | |
|---|---|
ExpressionBinding()
|
|
| Method Summary | ||
|---|---|---|
protected Property[][] |
createPaths(ConfigManager cfgmgr,
Object reference,
String[] paths,
Class<?> type)
Creates and returns the paths in the supplied array using the given object as a reference. |
|
abstract Updater |
createUpdater(ConfigManager cfgmgr,
Scope scope,
Object object)
Creates a value updater for the supplied context and target object. |
|
protected
|
createUpdater(ConfigManager cfgmgr,
Scope scope,
Object object,
ObjectExpression<T> expression,
Class<T> clazz)
Creates an updater for an object expression. |
|
protected Tuple<Property,Object>[] |
getFlags(ConfigManager cfgmgr,
Object object)
Returns the array of property/object pairs representing the flags to set. |
|
protected Tuple<Property,Object>[] |
getTargets(ConfigManager cfgmgr,
Object object,
Class<?> type)
Returns the array of property/object pairs representing the targets to update. |
|
void |
invalidate()
Invalidates any cached data. |
|
protected Tuple<Property,Object>[] |
resolvePaths(Object object,
Property[][] paths)
Resolves the supplied paths against the object, return a property/object pair to use to update the property. |
|
| Methods inherited from class com.threerings.util.DeepObject |
|---|
clone, copy, copy, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@Editable(width=40) public String[] paths
@Editable(width=40) public String[] flags
@DeepOmit protected transient Property[][] _paths
@DeepOmit protected transient Property[][] _flagPaths
| Constructor Detail |
|---|
public ExpressionBinding()
| Method Detail |
|---|
public abstract Updater createUpdater(ConfigManager cfgmgr,
Scope scope,
Object object)
public void invalidate()
protected <T> Updater createUpdater(ConfigManager cfgmgr,
Scope scope,
Object object,
ObjectExpression<T> expression,
Class<T> clazz)
protected Tuple<Property,Object>[] getTargets(ConfigManager cfgmgr,
Object object,
Class<?> type)
type - the required type.
protected Tuple<Property,Object>[] getFlags(ConfigManager cfgmgr,
Object object)
protected Property[][] createPaths(ConfigManager cfgmgr,
Object reference,
String[] paths,
Class<?> type)
type - the required end type.
protected Tuple<Property,Object>[] resolvePaths(Object object,
Property[][] paths)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||