public class LayoutBinder extends Object implements FileScopeProvider
Constructor and Description |
---|
LayoutBinder(ResourceBundle.LayoutFileBundle layoutBundle) |
Modifier and Type | Method and Description |
---|---|
IdentifierExpr |
addVariable(String name,
String type,
Location location,
boolean declared) |
BindingTarget |
createBindingTarget(ResourceBundle.BindingTargetBundle targetBundle) |
List<BindingTarget> |
getBindingTargets() |
String |
getClassName() |
String |
getImplementationName() |
String |
getLayoutname() |
ExprModel |
getModel() |
String |
getModulePackage() |
String |
getPackage() |
List<BindingTarget> |
getSortedTargets() |
String |
getTag() |
HashMap<String,String> |
getUserDefinedVariables() |
boolean |
hasVariations() |
boolean |
isEmpty() |
boolean |
isMerge() |
Expr |
parse(String input,
boolean isTwoWay,
Location locationInFile) |
String |
provideScopeFilePath() |
void |
resolveWhichExpressionsAreUsed() |
void |
sealModel() |
String |
writeViewBinder(int minSdk) |
String |
writeViewBinderBaseClass(boolean forLibrary) |
public LayoutBinder(ResourceBundle.LayoutFileBundle layoutBundle)
public void resolveWhichExpressionsAreUsed()
public IdentifierExpr addVariable(String name, String type, Location location, boolean declared)
public BindingTarget createBindingTarget(ResourceBundle.BindingTargetBundle targetBundle)
public List<BindingTarget> getBindingTargets()
public List<BindingTarget> getSortedTargets()
public boolean isEmpty()
public ExprModel getModel()
public void sealModel()
public String writeViewBinderBaseClass(boolean forLibrary)
public String writeViewBinder(int minSdk)
public String getPackage()
public boolean isMerge()
public String getModulePackage()
public String getLayoutname()
public String getImplementationName()
public String getClassName()
public String getTag()
public boolean hasVariations()
public String provideScopeFilePath()
provideScopeFilePath
in interface FileScopeProvider