org.foray.hyphen
Enum PatternTree.Source

java.lang.Object
  extended by java.lang.Enum<PatternTree.Source>
      extended by org.foray.hyphen.PatternTree.Source
All Implemented Interfaces:
Serializable, Comparable<PatternTree.Source>
Enclosing class:
PatternTree

public static enum PatternTree.Source
extends Enum<PatternTree.Source>

Enumeration of the possible sources of this tree.


Enum Constant Summary
PARSED
          Indicates that the tree was parsed from an external file.
RESOURCES
          Indicates that the tree was deserialized from a system resource.
 
Method Summary
static PatternTree.Source valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PatternTree.Source[] 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

RESOURCES

public static final PatternTree.Source RESOURCES
Indicates that the tree was deserialized from a system resource.


PARSED

public static final PatternTree.Source PARSED
Indicates that the tree was parsed from an external file.

Method Detail

values

public static PatternTree.Source[] 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 (PatternTree.Source c : PatternTree.Source.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PatternTree.Source 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


Copyright © 2017. All rights reserved.