public class BindingTarget extends Object implements LocationScopeProvider
Constructor and Description |
---|
BindingTarget(ResourceBundle.BindingTargetBundle bundle) |
Modifier and Type | Method and Description |
---|---|
void |
addBinding(String name,
Expr expr) |
InverseBinding |
addInverseBinding(String name,
SetterStore.BindingGetterCall call) |
List<Binding> |
getBindings() |
String |
getId() |
String |
getIncludedLayout() |
String |
getInterfaceType() |
List<InverseBinding> |
getInverseBindings() |
ExprModel |
getModel() |
String |
getOriginalTag() |
ModelClass |
getResolvedType() |
String |
getTag() |
String |
getViewClass() |
boolean |
isBinder() |
boolean |
isUsed() |
List<Location> |
provideScopeLocation() |
void |
resolveListeners() |
void |
resolveMultiSetters()
Called after BindingTarget is finalized.
|
void |
resolveTwoWayExpressions() |
void |
setModel(ExprModel model) |
boolean |
supportsTag() |
public BindingTarget(ResourceBundle.BindingTargetBundle bundle)
public boolean isUsed()
public String getInterfaceType()
public InverseBinding addInverseBinding(String name, SetterStore.BindingGetterCall call)
public List<Location> provideScopeLocation()
provideScopeLocation
in interface LocationScopeProvider
public String getId()
public String getTag()
public String getOriginalTag()
public String getViewClass()
public ModelClass getResolvedType()
public String getIncludedLayout()
public boolean isBinder()
public boolean supportsTag()
public List<InverseBinding> getInverseBindings()
public ExprModel getModel()
public void setModel(ExprModel model)
public void resolveListeners()
public void resolveTwoWayExpressions()
public void resolveMultiSetters()
We traverse all bindings and ask SetterStore to figure out if any can be combined. When N bindings are combined, they are demoted from being a binding expression and a new ArgList expression is added as the new binding expression that depends on others.