org.jboss.forge.shell
Enum PromptType
java.lang.Object
java.lang.Enum<PromptType>
org.jboss.forge.shell.PromptType
- All Implemented Interfaces:
- Serializable, Comparable<PromptType>
public enum PromptType
- extends Enum<PromptType>
- Author:
- Lincoln Baxter, III
|
Method Summary |
boolean |
matches(String value)
|
static PromptType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PromptType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
ANY
public static final PromptType ANY
DEPENDENCY_ID
public static final PromptType DEPENDENCY_ID
JAVA_PACKAGE
public static final PromptType JAVA_PACKAGE
JAVA_VARIABLE_NAME
public static final PromptType JAVA_VARIABLE_NAME
JAVA_CLASS
public static final PromptType JAVA_CLASS
FILE_PATH
public static final PromptType FILE_PATH
values
public static PromptType[] 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 (PromptType c : PromptType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PromptType 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
matches
public boolean matches(String value)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.