Package sc.bind
Class ConditionalBinding
- java.lang.Object
-
- sc.bind.AbstractListener
-
- sc.bind.DestinationListener
-
- sc.bind.AbstractMethodBinding
-
- sc.bind.ConditionalBinding
-
public class ConditionalBinding extends AbstractMethodBinding
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface sc.bind.IListener
IListener.SyncType
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
operator
-
Fields inherited from interface sc.bind.IListener
ARRAY_ELEMENT_CHANGED, ARRAY_ELEMENT_INVALIDATED, ARRAY_ELEMENT_VALIDATED, LISTENER_ADDED, PENDING_VALUE_SENTINEL, UNSET_VALUE_SENTINEL, VALUE_CHANGED, VALUE_CHANGED_MASK, VALUE_INVALIDATED, VALUE_REQUESTED, VALUE_VALIDATED
-
-
Constructor Summary
Constructors Constructor Description ConditionalBinding(java.lang.Object dstObject, IBinding dstBinding, java.lang.String op, IBinding[] parameterBindings, BindingDirection dir, int flags, BindOptions opts)
ConditionalBinding(java.lang.String op, IBinding[] parameterBindings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
invokeMethod(java.lang.Object obj, boolean pendingChild)
protected java.lang.Object
invokeReverseMethod(java.lang.Object obj, java.lang.Object value)
Called when reverse bindings fireprotected boolean
needsMethodObj()
Override in subclasses that do not use the methObj so we can tell when the method just could not be resolvedjava.lang.StringBuilder
toBindingString(boolean displayValue)
java.lang.String
toString(java.lang.String operation, boolean displayValue)
-
Methods inherited from class sc.bind.AbstractMethodBinding
accessBinding, activate, addBindingListener, applyBinding, applyChangedValue, applyPendingChildValue, applyPendingValue, applyReverseBinding, cleanParamValues, equalObjects, getBoundParams, getBoundValueForChild, getPropertyValue, hasNullParams, hasPendingParams, hasUnsetParams, initFlagsOnChildren, initializeBinding, initParams, invalidateBinding, isConstant, isRefreshDisabled, isReversible, isValid, parentBindingChanged, refreshBinding, removeBindingListener, removeListener, setBindingParent, setMethObj, useParens, valueInvalidated, valueValidated
-
Methods inherited from class sc.bind.DestinationListener
accessObj, addCurrentScopeContext, getCurrentScopeContexts, getTrace, getUnsetOrPending, getVerbose, initFlags, isCrossScope, isDefinedObject, isValidObject, toString, toString
-
Methods inherited from class sc.bind.AbstractListener
arrayElementChanged, arrayElementInvalidated, arrayElementValidated, getPriority, getSync, listenerAdded, performCast, valueChanged, valueRequested
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface sc.bind.IBinding
performCast
-
-
-
-
Constructor Detail
-
ConditionalBinding
public ConditionalBinding(java.lang.String op, IBinding[] parameterBindings)
-
ConditionalBinding
public ConditionalBinding(java.lang.Object dstObject, IBinding dstBinding, java.lang.String op, IBinding[] parameterBindings, BindingDirection dir, int flags, BindOptions opts)
-
-
Method Detail
-
needsMethodObj
protected boolean needsMethodObj()
Description copied from class:AbstractMethodBinding
Override in subclasses that do not use the methObj so we can tell when the method just could not be resolved- Overrides:
needsMethodObj
in classAbstractMethodBinding
-
invokeMethod
protected java.lang.Object invokeMethod(java.lang.Object obj, boolean pendingChild)
- Specified by:
invokeMethod
in classAbstractMethodBinding
-
invokeReverseMethod
protected java.lang.Object invokeReverseMethod(java.lang.Object obj, java.lang.Object value)
Called when reverse bindings fire- Specified by:
invokeReverseMethod
in classAbstractMethodBinding
-
toString
public java.lang.String toString(java.lang.String operation, boolean displayValue)
- Overrides:
toString
in classDestinationListener
-
toBindingString
public java.lang.StringBuilder toBindingString(boolean displayValue)
- Overrides:
toBindingString
in classAbstractMethodBinding
-
-