Forge - Shell API 1.2.0.Final

org.jboss.forge.shell
Enum PromptType

java.lang.Object
  extended by java.lang.Enum<PromptType>
      extended by org.jboss.forge.shell.PromptType
All Implemented Interfaces:
Serializable, Comparable<PromptType>

public enum PromptType
extends Enum<PromptType>

Author:
Lincoln Baxter, III

Enum Constant Summary
ANY
           
DEPENDENCY_ID
           
FILE_PATH
           
JAVA_CLASS
           
JAVA_PACKAGE
           
JAVA_VARIABLE_NAME
           
 
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.
 
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

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
Method Detail

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)

Forge - Shell API 1.2.0.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.