scale.clef.decl
Enum Accessibility

java.lang.Object
  extended by java.lang.Enum<Accessibility>
      extended by scale.clef.decl.Accessibility
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Accessibility>

public enum Accessibility
extends java.lang.Enum<Accessibility>

This enum specifies the accessibility of a declaration - public, private, etc.

$Id$

Copyright 2008 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.


Enum Constant Summary
PRIVATE
          Specifies that the method is accessible only within its namespace.
PROTECTED
          Specifies than an identifier is accessible only within its namespace.
PUBLIC
          Specifies that the method is accessible outside of its namespace.
 
Method Summary
 java.lang.String toString()
           
static Accessibility valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Accessibility[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PUBLIC

public static final Accessibility PUBLIC
Specifies that the method is accessible outside of its namespace. This value is the default.


PROTECTED

public static final Accessibility PROTECTED
Specifies than an identifier is accessible only within its namespace. This attribute may only be used for class members, in which case it denotes the semantics of C++'s protected construct.


PRIVATE

public static final Accessibility PRIVATE
Specifies that the method is accessible only within its namespace.

Method Detail

values

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

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

valueOf

public static Accessibility valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<Accessibility>