Package org.jruby.javasupport.binding
Enum Priority
- All Implemented Interfaces:
Serializable,Comparable<Priority>,java.lang.constant.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 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanasImportantAs(AssignedName other) booleanlessImportantThan(AssignedName other) booleanmoreImportantThan(AssignedName other) static PriorityReturns the enum constant of this type with the specified name.static Priority[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RESERVED
-
METHOD
-
FIELD
-
PROTECTED_METHOD
-
WEAKLY_RESERVED
-
ALIAS
-
GET_ALIAS
-
IS_ALIAS
-
PROTECTED_FIELD
-
-
Field Details
-
value
private final int value
-
-
Constructor Details
-
Priority
private Priority(int value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-
asImportantAs
-
lessImportantThan
-
moreImportantThan
-