Package manifold.ext.props.rt.api
Enum PropOption
- java.lang.Object
-
- java.lang.Enum<PropOption>
-
- manifold.ext.props.rt.api.PropOption
-
- All Implemented Interfaces:
Serializable,Comparable<PropOption>
public enum PropOption extends Enum<PropOption>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PropOptionfromModifier(int modifier)intgetModifier()intor(int modifier)intor(PropOption option)static PropOptionvalueOf(String name)Returns the enum constant of this type with the specified name.static PropOption[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Abstract
public static final PropOption Abstract
For use withget,setto override the non-use ofabstractmodifier on a@varproperty, or individually withgetandset. If specified, the generated get/set method will be abstract. Note only properties declared in interfaces and abstract classes can beabstract. If the corresponding get/set method is user-defined, it must be declaredabstract.// only the setter method is abstract @var @set(Abstract) String name;
-
Final
public static final PropOption Final
For use withget,setto override the non-use offinalmodifier on a@varproperty, or individually withgetandset. If specified, the generated get/set method will be final. Note properties declared in interfaces cannot befinal. If the corresponding get/set method is user-defined, it must be declaredfinal.// only the setter is final @var @set(Final) String name;
-
Private
public static final PropOption Private
-
Package
public static final PropOption Package
-
Protected
public static final PropOption Protected
-
Public
public static final PropOption Public
-
-
Method Detail
-
values
public static PropOption[] 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 (PropOption c : PropOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropOption valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getModifier
public int getModifier()
- Returns:
- The Java
Modifierintegral value corresponding with the option.
-
or
public int or(PropOption option)
-
or
public int or(int modifier)
-
fromModifier
public static PropOption fromModifier(int modifier)
-
-