Package org.eclipse.steady.java
Enum JavaId.Type
- java.lang.Object
-
- java.lang.Enum<JavaId.Type>
-
- org.eclipse.steady.java.JavaId.Type
-
- All Implemented Interfaces:
Serializable,Comparable<JavaId.Type>
- Enclosing class:
- JavaId
public static enum JavaId.Type extends Enum<JavaId.Type>
Supported Java programming constructs.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLASSCLASSINITCONSTRUCTORENUMINTERFACEMETHODNESTED_CLASSPACKAGE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JavaId.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static JavaId.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PACKAGE
public static final JavaId.Type PACKAGE
-
CLASS
public static final JavaId.Type CLASS
-
ENUM
public static final JavaId.Type ENUM
-
INTERFACE
public static final JavaId.Type INTERFACE
-
NESTED_CLASS
public static final JavaId.Type NESTED_CLASS
-
CONSTRUCTOR
public static final JavaId.Type CONSTRUCTOR
-
METHOD
public static final JavaId.Type METHOD
-
CLASSINIT
public static final JavaId.Type CLASSINIT
-
-
Method Detail
-
values
public static JavaId.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 (JavaId.Type c : JavaId.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 JavaId.Type 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 nameNullPointerException- if the argument is null
-
-