Package com.android.manifmerger
Class Actions
java.lang.Object
com.android.manifmerger.Actions
Contains all actions taken during a merging invocation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines all possible actions taken from the merging tool for an xml element or attribute.static classDefines a merging tool action for an xml attributestatic classDefines a merging tool action for an xml element.static classDefines an abstract record contain common metadata for elements and attributes actions. -
Constructor Summary
ConstructorsConstructorDescriptionActions(Map<XmlNode.NodeKey, com.android.manifmerger.Actions.DecisionTreeRecord> records) -
Method Summary
Modifier and TypeMethodDescriptionblame(XmlDocument xmlDocument) com.google.common.collect.ImmutableList<Actions.AttributeRecord>getAttributeRecords(XmlNode.NodeKey elementKey, XmlNode.NodeName attributeName) Returns theImmutableListofActions.AttributeRecordfor the attribute identified by attributeName of the element identified by elementKey.Returns aImmutableSetof all the element's keys that have at least oneActions.NodeRecord.com.google.common.collect.ImmutableList<Actions.NodeRecord>Returns anImmutableListofActions.NodeRecordfor the element identified with the passed key.com.google.common.collect.ImmutableList<XmlNode.NodeName>getRecordedAttributeNames(XmlNode.NodeKey nodeKey) Returns aImmutableListof all attributes names that have at least one record for the element identified with the passed key.com.google.common.collect.ImmutableMultimap<Integer,Actions.Record> getResultingSourceMapping(XmlDocument xmlDocument) static Actionsload(InputStream inputStream) static Actionspersist()
-
Constructor Details
-
Actions
-
-
Method Details
-
getNodeKeys
Returns aImmutableSetof all the element's keys that have at least oneActions.NodeRecord. -
getNodeRecords
@NonNull public com.google.common.collect.ImmutableList<Actions.NodeRecord> getNodeRecords(@NonNull XmlNode.NodeKey key) Returns anImmutableListofActions.NodeRecordfor the element identified with the passed key. -
getRecordedAttributeNames
@NonNull public com.google.common.collect.ImmutableList<XmlNode.NodeName> getRecordedAttributeNames(XmlNode.NodeKey nodeKey) Returns aImmutableListof all attributes names that have at least one record for the element identified with the passed key. -
getAttributeRecords
@NonNull public com.google.common.collect.ImmutableList<Actions.AttributeRecord> getAttributeRecords(XmlNode.NodeKey elementKey, XmlNode.NodeName attributeName) Returns theImmutableListofActions.AttributeRecordfor the attribute identified by attributeName of the element identified by elementKey. -
persist
-
load
-
load
-
getResultingSourceMapping
public com.google.common.collect.ImmutableMultimap<Integer,Actions.Record> getResultingSourceMapping(@NonNull XmlDocument xmlDocument) throws ParserConfigurationException, SAXException, IOException -
blame
@NonNull public String blame(@NonNull XmlDocument xmlDocument) throws IOException, SAXException, ParserConfigurationException
-