Spec-Zone .ru
спецификации, руководства, описания, API

Mirror API
DRAFT ea-b118

com.sun.mirror.declaration
Enum Modifier

java.lang.Object
  extended by java.lang.Enum<Modifier>
      extended by com.sun.mirror.declaration.Modifier
All Implemented Interfaces:
Serializable, Comparable<Modifier>

Deprecated. All components of this API have been superseded by the standardized annotation processing API. The replacement for the functionality of this enum is Modifier.

@Deprecated
public enum Modifier
extends Enum<Modifier>

Represents a modifier on the declaration of a program element such as a class, method, or field.

Not all modifiers are applicable to all kinds of declarations. When two or more modifiers appear in the source code of a declaration, then it is customary, though not required, that they appear in the same order as the constants listed in the detail section below.

Since:
1.5

Enum Constant Summary
Enum Constant and Description
ABSTRACT
          Deprecated. The modifier abstract
FINAL
          Deprecated. The modifier final
NATIVE
          Deprecated. The modifier native
PRIVATE
          Deprecated. The modifier private
PROTECTED
          Deprecated. The modifier protected
PUBLIC
          Deprecated. The modifier public
STATIC
          Deprecated. The modifier static
STRICTFP
          Deprecated. The modifier strictfp
SYNCHRONIZED
          Deprecated. The modifier synchronized
TRANSIENT
          Deprecated. The modifier transient
VOLATILE
          Deprecated. The modifier volatile
 
Method Summary
Modifier and Type Method and Description
 String toString()
          Deprecated. Returns this modifier's name in lowercase.
static Modifier valueOf(String name)
          Deprecated. Returns the enum constant of this type with the specified name.
static Modifier[] values()
          Deprecated. 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PUBLIC

public static final Modifier PUBLIC
Deprecated. 
The modifier public


PROTECTED

public static final Modifier PROTECTED
Deprecated. 
The modifier protected


PRIVATE

public static final Modifier PRIVATE
Deprecated. 
The modifier private


ABSTRACT

public static final Modifier ABSTRACT
Deprecated. 
The modifier abstract


STATIC

public static final Modifier STATIC
Deprecated. 
The modifier static


FINAL

public static final Modifier FINAL
Deprecated. 
The modifier final


TRANSIENT

public static final Modifier TRANSIENT
Deprecated. 
The modifier transient


VOLATILE

public static final Modifier VOLATILE
Deprecated. 
The modifier volatile


SYNCHRONIZED

public static final Modifier SYNCHRONIZED
Deprecated. 
The modifier synchronized


NATIVE

public static final Modifier NATIVE
Deprecated. 
The modifier native


STRICTFP

public static final Modifier STRICTFP
Deprecated. 
The modifier strictfp

Method Detail

values

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

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

valueOf

public static Modifier valueOf(String name)
Deprecated. 
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

toString

public String toString()
Deprecated. 
Returns this modifier's name in lowercase.

Overrides:
toString in class Enum<Modifier>

Mirror API
DRAFT ea-b118

Copyright © 2004, 2010, Oracle Corporation. All rights reserved.
DRAFT ea-b118

Scripting on this page tracks web page traffic, but does not change the content in any way.