src/jdk.jlink/share/classes/jdk/tools/jlink/plugin/Plugin.java
changeset 58842 6c255334120d
parent 47216 71c04702a3d5
equal deleted inserted replaced
58836:31ec3e55fa3d 58842:6c255334120d
     1 /*
     1 /*
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    37 
    37 
    38     /**
    38     /**
    39      * Order of categories matches the plugin sort order.
    39      * Order of categories matches the plugin sort order.
    40      * <ol>
    40      * <ol>
    41      * <li>FILTER: Filter in/out resources or files.</li>
    41      * <li>FILTER: Filter in/out resources or files.</li>
       
    42      * <li>ADDER: Add resources or files.</li>
    42      * <li>TRANSFORMER: Transform resources or files(eg: refactoring, bytecode
    43      * <li>TRANSFORMER: Transform resources or files(eg: refactoring, bytecode
    43      * manipulation).</li>
    44      * manipulation).</li>
    44      * <li>MODULEINFO_TRANSFORMER: Transform only module-info.class</li>
    45      * <li>MODULEINFO_TRANSFORMER: Transform only module-info.class</li>
    45      * <li>SORTER: Sort resources within the resource container.</li>
    46      * <li>SORTER: Sort resources within the resource container.</li>
    46      * <li>METAINFO_ADDER: Added meta info (like release, copyright etc.)</li>
    47      * <li>METAINFO_ADDER: Added meta info (like release, copyright etc.)</li>
    50      * <li>PACKAGER: Final processing</li>
    51      * <li>PACKAGER: Final processing</li>
    51      * </ol>
    52      * </ol>
    52      */
    53      */
    53     public enum Category {
    54     public enum Category {
    54         FILTER("FILTER"),
    55         FILTER("FILTER"),
       
    56         ADDER("ADDER"),
    55         TRANSFORMER("TRANSFORMER"),
    57         TRANSFORMER("TRANSFORMER"),
    56         MODULEINFO_TRANSFORMER("MODULEINFO_TRANSFORMER"),
    58         MODULEINFO_TRANSFORMER("MODULEINFO_TRANSFORMER"),
    57         SORTER("SORTER"),
    59         SORTER("SORTER"),
    58         METAINFO_ADDER("METAINFO_ADDER"),
    60         METAINFO_ADDER("METAINFO_ADDER"),
    59         COMPRESSOR("COMPRESSOR"),
    61         COMPRESSOR("COMPRESSOR"),
   150      */
   152      */
   151     public default boolean hasArguments() {
   153     public default boolean hasArguments() {
   152         return false;
   154         return false;
   153     }
   155     }
   154 
   156 
       
   157     public default boolean hasRawArgument() {
       
   158         return false;
       
   159     }
       
   160 
   155     /**
   161     /**
   156      * The plugin argument(s) description.
   162      * The plugin argument(s) description.
   157      * @return  The argument(s) description.
   163      * @return  The argument(s) description.
   158      */
   164      */
   159     public default String getArgumentsDescription() {
   165     public default String getArgumentsDescription() {