Package org.jruby.javasupport.binding
Enum Class Priority
- All Implemented Interfaces:
Serializable
,Comparable<Priority>
,Constable
Assigned names only override based priority of an assigned type, the type must be less than
or equal to the assigned type. For example, field name (FIELD) in a subclass will override
an alias (ALIAS) in a superclass, but not a method (METHOD).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionboolean
asImportantAs
(AssignedName other) boolean
lessImportantThan
(AssignedName other) boolean
moreImportantThan
(AssignedName other) static Priority
Returns the enum constant of this class with the specified name.static Priority[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RESERVED
-
METHOD
-
FIELD
-
PROTECTED_METHOD
-
WEAKLY_RESERVED
-
ALIAS
-
GET_ALIAS
-
IS_ALIAS
-
PROTECTED_FIELD
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
asImportantAs
-
lessImportantThan
-
moreImportantThan
-