Enum JavaPath.ClsSrc

    • Constructor Detail

      • ClsSrc

        private ClsSrc()
    • Method Detail

      • values

        public static JavaPath.ClsSrc[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (JavaPath.ClsSrc c : JavaPath.ClsSrc.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JavaPath.ClsSrc valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • fileEnding

        abstract String fileEnding()
        Returns the ending of a class file or of a source file.
        Returns:
        either .class or .java.
      • trimInnerClass

        abstract String trimInnerClass​(String clsName)
        Returns the name of the class enclosing clsName (including clsName itself) which has its own source/class-file.
        Parameters:
        clsName - the name of a class as a String value.
        Returns:
        The name of the class enclosing clsName (including clsName itself) which has its own source/class-file. Note that for class files, this is just clsName itself, whereas for source files the part of the classname following JavaPath.INNER_CLASS_SEP is stripped off.