|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.manifmerger.PlaceholderHandler
public class PlaceholderHandler
Replaces all placeholders of the form ${name} with a tool invocation provided value
Nested Class Summary | |
---|---|
static interface |
PlaceholderHandler.KeyBasedValueResolver<T>
Interface to provide a value for a placeholder key. |
Constructor Summary | |
---|---|
PlaceholderHandler()
|
Method Summary | |
---|---|
void |
visit(XmlDocument xmlDocument,
PlaceholderHandler.KeyBasedValueResolver<java.lang.String> valueProvider,
com.android.manifmerger.MergingReport.Builder mergingReportBuilder)
Visits a document's entire tree and check each attribute for a placeholder existence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlaceholderHandler()
Method Detail |
---|
public void visit(@NonNull XmlDocument xmlDocument, @NonNull PlaceholderHandler.KeyBasedValueResolver<java.lang.String> valueProvider, @NonNull com.android.manifmerger.MergingReport.Builder mergingReportBuilder)
PlaceholderHandler.KeyBasedValueResolver
to provide a value
for the placeholder.
If no value is provided, an error will be generated.
xmlDocument
- the xml document to visitvalueProvider
- the placeholder value provider.mergingReportBuilder
- to report errors and log actions.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |