private class JarWrapper.PreferredListWriter.DirNode extends Object
Modifier and Type | Field and Description |
---|---|
(package private) List |
files |
(package private) String |
path |
(package private) int |
prefPackageLen |
(package private) int |
prefSubtreeLen |
(package private) List |
subdirs |
(package private) int |
unprefPackageLen |
(package private) int |
unprefSubtreeLen |
Constructor and Description |
---|
JarWrapper.PreferredListWriter.DirNode(String path) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
compileList()
Computes minimal list length using dynamic programming.
|
(package private) void |
writeDir(Writer w,
boolean contextPref)
Writes preferred list entries (if any) for this directory, which
inherits the given preferred value as its default.
|
(package private) void |
writeFiles(Writer w,
boolean contextPref)
Writes preferred list entries (if any) for files in this
directory, which has the given preferred value as its default.
|
(package private) void |
writeList(Writer w)
Writes preferred list.
|
final String path
final List subdirs
final List files
int prefSubtreeLen
int prefPackageLen
int unprefSubtreeLen
int unprefPackageLen
JarWrapper.PreferredListWriter.DirNode(String path)
void compileList()
void writeList(Writer w) throws IOException
IOException
void writeDir(Writer w, boolean contextPref) throws IOException
IOException
void writeFiles(Writer w, boolean contextPref) throws IOException
IOException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.