diff options
author | 2017-05-15 16:56:01 +0200 | |
---|---|---|
committer | 2017-05-15 19:51:22 +0200 | |
commit | da6bbce1ee317f3b4d7ca245058049ab2a032848 (patch) | |
tree | c32d28b144454f8ad1ed6c96ab7cebe2f89bb836 /src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java | |
parent | 296cd4913d40b756e29fbe0aa6055addf228da6d (diff) |
Further Refactoring/Yak Shaving
* Extract the FieldInitializer with placeholder ids from the
AndroidResourceClassWriter
* Extract a resource sink interface from the AndroidResourceClassWriter (a little renaming, the change isn't actually that big.)
RELNOTES: None
PiperOrigin-RevId: 156053478
Diffstat (limited to 'src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java')
-rw-r--r-- | src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java b/src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java index bcbf99acca..0c0edd92a5 100644 --- a/src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java +++ b/src/tools/android/java/com/google/devtools/build/android/XmlResourceValue.java @@ -43,16 +43,13 @@ public interface XmlResourceValue { XmlResourceValue combineWith(XmlResourceValue value); /** - * Queue up writing the resource to the given {@link AndroidResourceClassWriter}. - * Each resource can generate one or more (in the case of styleable) fields and inner classes - * in the R class. + * Queue up writing the resource to the given {@link AndroidResourceClassWriter}. Each resource + * can generate one or more (in the case of styleable) fields and inner classes in the R class. * * @param key The FullyQualifiedName of the resource - * @param resourceClassWriter the R java class writer + * @param sink the symbol sink for producing source and classes */ - void writeResourceToClass( - FullyQualifiedName key, - AndroidResourceClassWriter resourceClassWriter); + void writeResourceToClass(FullyQualifiedName key, AndroidResourceSymbolSink sink); /** Returns a representation of the xml value as a string suitable for conflict messages. */ String asConflictStringWith(DataSource source); |