Enum JavaPath.ClsSrc

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<JavaPath.ClsSrc>
    Enclosing class:
    JavaPath

    public static enum JavaPath.ClsSrc
    extends java.lang.Enum<JavaPath.ClsSrc>
    Determines whether a class file or a source file is meant.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      Class  
      Source  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ClsSrc()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) abstract java.lang.String fileEnding()
      Returns the ending of a class file or of a source file.
      (package private) abstract java.lang.String trimInnerClass​(java.lang.String clsName)
      Returns the name of the class enclosing clsName (including clsName itself) which has its own source/class-file.
      static JavaPath.ClsSrc valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static JavaPath.ClsSrc[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • fileEnding

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

        abstract java.lang.String trimInnerClass​(java.lang.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.