org.netbeans.modules.lexer/2 1.39.1 1

org.netbeans.api.lexer
Enum PartType

java.lang.Object
  extended by java.lang.Enum<PartType>
      extended by org.netbeans.api.lexer.PartType
All Implemented Interfaces:
Serializable, Comparable<PartType>

public enum PartType
extends Enum<PartType>

Whether Token represents a complete token or just a part of a complete token.
A complete token may consist of one start token, zero or more middle tokens and zero or more end tokens (there may be incomplete token at the end of input e.g. an incomplete block comment so there is just a start part of a token).


Enum Constant Summary
COMPLETE
          A given token represents a complete token.
END
          A given token represents end part of a complete token.
MIDDLE
          A given token represents middle part of a complete token.
START
          A given token represents initial part of a complete token.
 
Method Summary
static PartType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PartType[] 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

COMPLETE

public static final PartType COMPLETE
A given token represents a complete token.


START

public static final PartType START
A given token represents initial part of a complete token.


MIDDLE

public static final PartType MIDDLE
A given token represents middle part of a complete token.


END

public static final PartType END
A given token represents end part of a complete token.

Method Detail

values

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

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

valueOf

public static PartType 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

org.netbeans.modules.lexer/2 1.39.1 1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.