| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private Predicate | |
| private static final int[] |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | configure(Map<String, String> config)
Overrides default jdk. Configure the plugin based on the passed configuration. |
| public Plugin. | |
| public boolean | hasArguments()
Overrides default jdk. Has this plugin require one or more arguments? |
| public void | previsit(ResourcePool resources, StringTable strings)
Implements jdk. Previsit the collection of resources. |
| public ResourcePool | transform(ResourcePool in, ResourcePoolBuilder result)
Implements jdk. Visit the content of the modules that are composing the image. |
| predicate | back to summary |
|---|---|
| private Predicate<String> predicate | |
| SIZES | back to summary |
|---|---|
| private static final int[] SIZES | |
| StringSharingPlugin | back to summary |
|---|---|
| public StringSharingPlugin() | |
| StringSharingPlugin | back to summary |
|---|---|
| pack-priv StringSharingPlugin(Predicate<String> predicate) | |
| configure | back to summary |
|---|---|
| public void configure(Map<String, String> config) Overrides default jdk. Doc from jdk. Configure the plugin based on the passed configuration. This method is called prior to invoke the plugin.
| |
| getType | back to summary |
|---|---|
| public Plugin. Overrides default jdk. Doc from jdk. The type of this plugin.
| |
| hasArguments | back to summary |
|---|---|
| public boolean hasArguments() Overrides default jdk. Doc from jdk. Has this plugin require one or more arguments?
A plugin can have one or more optional arguments.
--plugin-option=arg_value
If there are more than arguments, command line option looks like:
--plugin-option=arg_value:arg2=value2:arg3=value3...
| |
| previsit | back to summary |
|---|---|
| public void previsit(ResourcePool resources, StringTable strings) Implements jdk. Doc from jdk. Previsit the collection of resources.
| |
| transform | back to summary |
|---|---|
| public ResourcePool transform(ResourcePool in, ResourcePoolBuilder result) Implements jdk. Doc from jdk. Visit the content of the modules that are composing the image.
| |
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private byte[] | optimize(ResourcePoolEntry resource, ResourcePoolBuilder resources, StringTable strings, Set<Integer> descriptorIndexes, byte[] content)
|
| public byte[] | |
| private void | |
| private void |
| CompactCPHelper | back to summary |
|---|---|
| private CompactCPHelper() | |
| optimize | back to summary |
|---|---|
private byte[] optimize(ResourcePoolEntry resource, ResourcePoolBuilder resources, StringTable strings, Set<Integer> descriptorIndexes, byte[] content) throws Exception
| |
| transform | back to summary |
|---|---|
| public byte[] transform(ResourcePoolEntry resource, ResourcePoolBuilder out, StringTable strings) throws IOException, Exception | |
| writeDescriptorReference | back to summary |
|---|---|
| private void writeDescriptorReference(DataOutputStream out, List<Integer> indexes) throws IOException | |
| writeUTF8Reference | back to summary |
|---|---|
| private void writeUTF8Reference(DataOutputStream out, int index) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private final ClassModel |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private Set | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void |
| cm | back to summary |
|---|---|
| private final ClassModel cm | |
| DescriptorsScanner | back to summary |
|---|---|
| private DescriptorsScanner(ClassModel cm) | |
| scan | back to summary |
|---|---|
| private Set | |
| scanAnnotation | back to summary |
|---|---|
| private void scanAnnotation(Annotation annotation, Set<Integer> utf8Descriptors) throws Exception | |
| scanAttributes | back to summary |
|---|---|
| private void scanAttributes(List<Attribute<?>> attributes, Set<Integer> utf8Descriptors) throws Exception | |
| scanConstantPool | back to summary |
|---|---|
| private void scanConstantPool(Set<Integer> utf8Descriptors) throws Exception | |
| scanElementValue | back to summary |
|---|---|
| private void scanElementValue(AnnotationValue value, Set<Integer> utf8Descriptors) throws Exception | |
| scanFields | back to summary |
|---|---|
| private void scanFields(Set<Integer> utf8Descriptors) throws Exception | |
| scanMethods | back to summary |
|---|---|
| private void scanMethods(Set<Integer> utf8Descriptors) throws Exception | |