Package com.iizigo.java
Enum JavaSource.Type
- java.lang.Object
- java.lang.Enum<JavaSource.Type>
- com.iizigo.java.JavaSource.Type
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JavaSource.Type>
- Enclosing class:
- JavaSource
public static enum JavaSource.Type extends java.lang.Enum<JavaSource.Type>
The Java source types.
Enum Constant Summary
Enum Constants Enum Constant Description BINARY
Binary class file, separate ".class" or inside a ".jar" file.PARSED
Parsed source file ".java" file extension, can be refactored.UNRESOLVED
An unresolved class from the listener has this state.
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JavaSource.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JavaSource.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
UNRESOLVED
public static final JavaSource.Type UNRESOLVED
An unresolved class from the listener has this state. An error will be set for the project of the listener if the reference cannot be granted, i.e. because no match can be found, binary or source, or that the classpath settings must be changed.
BINARY
public static final JavaSource.Type BINARY
Binary class file, separate ".class" or inside a ".jar" file.
PARSED
public static final JavaSource.Type PARSED
Parsed source file ".java" file extension, can be refactored.
Method Detail
values
public static JavaSource.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 (JavaSource.Type c : JavaSource.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 JavaSource.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 namejava.lang.NullPointerException
- if the argument is null