org.eclipse.xtext.common.types
Enum JvmVisibility

java.lang.Object
  extended by java.lang.Enum<JvmVisibility>
      extended by org.eclipse.xtext.common.types.JvmVisibility
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<JvmVisibility>, org.eclipse.emf.common.util.Enumerator

public enum JvmVisibility
extends java.lang.Enum<JvmVisibility>
implements org.eclipse.emf.common.util.Enumerator

A representation of the literals of the enumeration 'Jvm Visibility', and utility methods for working with them.

See Also:
TypesPackage.getJvmVisibility()
EMF generated code
EMF model element

Enum Constant Summary
DEFAULT
          The 'DEFAULT' literal object.
PRIVATE
          The 'PRIVATE' literal object.
PROTECTED
          The 'PROTECTED' literal object.
PUBLIC
          The 'PUBLIC' literal object.
 
Field Summary
static int DEFAULT_VALUE
          The 'DEFAULT' literal value.
static int PRIVATE_VALUE
          The 'PRIVATE' literal value.
static int PROTECTED_VALUE
          The 'PROTECTED' literal value.
static int PUBLIC_VALUE
          The 'PUBLIC' literal value.
static java.util.List<JvmVisibility> VALUES
          A public read-only list of all the 'Jvm Visibility' enumerators.
 
Method Summary
static JvmVisibility get(int value)
          Returns the 'Jvm Visibility' literal with the specified integer value.
static JvmVisibility get(java.lang.String literal)
          Returns the 'Jvm Visibility' literal with the specified literal value.
static JvmVisibility getByName(java.lang.String name)
          Returns the 'Jvm Visibility' literal with the specified name.
 java.lang.String getLiteral()
           
 java.lang.String getName()
           
 int getValue()
           
 java.lang.String toString()
          Returns the literal value of the enumerator, which is its string representation.
static JvmVisibility valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JvmVisibility[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEFAULT

public static final JvmVisibility DEFAULT
The 'DEFAULT' literal object.

See Also:
DEFAULT_VALUE
EMF generated code
EMF ordered

PRIVATE

public static final JvmVisibility PRIVATE
The 'PRIVATE' literal object.

See Also:
PRIVATE_VALUE
EMF generated code
EMF ordered

PROTECTED

public static final JvmVisibility PROTECTED
The 'PROTECTED' literal object.

See Also:
PROTECTED_VALUE
EMF generated code
EMF ordered

PUBLIC

public static final JvmVisibility PUBLIC
The 'PUBLIC' literal object.

See Also:
PUBLIC_VALUE
EMF generated code
EMF ordered
Field Detail

DEFAULT_VALUE

public static final int DEFAULT_VALUE
The 'DEFAULT' literal value.

If the meaning of 'DEFAULT' literal object isn't clear, there really should be more of a description here...

See Also:
DEFAULT, Constant Field Values
EMF generated code
EMF model element
EMF ordered

PRIVATE_VALUE

public static final int PRIVATE_VALUE
The 'PRIVATE' literal value.

If the meaning of 'PRIVATE' literal object isn't clear, there really should be more of a description here...

See Also:
PRIVATE, Constant Field Values
EMF generated code
EMF model element
EMF ordered

PROTECTED_VALUE

public static final int PROTECTED_VALUE
The 'PROTECTED' literal value.

If the meaning of 'PROTECTED' literal object isn't clear, there really should be more of a description here...

See Also:
PROTECTED, Constant Field Values
EMF generated code
EMF model element
EMF ordered

PUBLIC_VALUE

public static final int PUBLIC_VALUE
The 'PUBLIC' literal value.

If the meaning of 'PUBLIC' literal object isn't clear, there really should be more of a description here...

See Also:
PUBLIC, Constant Field Values
EMF generated code
EMF model element
EMF ordered

VALUES

public static final java.util.List<JvmVisibility> VALUES
A public read-only list of all the 'Jvm Visibility' enumerators.

EMF generated code
Method Detail

values

public static final JvmVisibility[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(JvmVisibility c : JvmVisibility.values())
        System.out.println(c);

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

valueOf

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

get

public static JvmVisibility get(java.lang.String literal)
Returns the 'Jvm Visibility' literal with the specified literal value.

EMF generated code

getByName

public static JvmVisibility getByName(java.lang.String name)
Returns the 'Jvm Visibility' literal with the specified name.

EMF generated code

get

public static JvmVisibility get(int value)
Returns the 'Jvm Visibility' literal with the specified integer value.

EMF generated code

getValue

public int getValue()

Specified by:
getValue in interface org.eclipse.emf.common.util.Enumerator
EMF generated code

getName

public java.lang.String getName()

Specified by:
getName in interface org.eclipse.emf.common.util.Enumerator
EMF generated code

getLiteral

public java.lang.String getLiteral()

Specified by:
getLiteral in interface org.eclipse.emf.common.util.Enumerator
EMF generated code

toString

public java.lang.String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class java.lang.Enum<JvmVisibility>
EMF generated code