Enum ClasspathEntry.Type

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CONTAINER
      Eclipse container, stored but not used for now.
      EXTERNAL_DIRECTORY
      External directory outside project.
      EXTERNAL_LIBRARY
      External library file (ZIP or JAR) outside project.
      PROJECT
      Project dependency, only project name is set (no path).
      PROJECT_DIRECTORY
      Type of entry: project directory, path is relative the project.
      PROJECT_LIBRARY
      Type of entry: project library, path is relative the project.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ClasspathEntry.Type valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ClasspathEntry.Type[] 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
    • Enum Constant Detail

      • PROJECT_DIRECTORY

        public static final ClasspathEntry.Type PROJECT_DIRECTORY
        Type of entry: project directory, path is relative the project.
      • PROJECT_LIBRARY

        public static final ClasspathEntry.Type PROJECT_LIBRARY
        Type of entry: project library, path is relative the project.
      • EXTERNAL_LIBRARY

        public static final ClasspathEntry.Type EXTERNAL_LIBRARY
        External library file (ZIP or JAR) outside project.
      • EXTERNAL_DIRECTORY

        public static final ClasspathEntry.Type EXTERNAL_DIRECTORY
        External directory outside project.
      • PROJECT

        public static final ClasspathEntry.Type PROJECT
        Project dependency, only project name is set (no path).
      • CONTAINER

        public static final ClasspathEntry.Type CONTAINER
        Eclipse container, stored but not used for now.
    • Method Detail

      • values

        public static ClasspathEntry.Type[] 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 (ClasspathEntry.Type c : ClasspathEntry.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ClasspathEntry.Type 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