public enum PropOption extends java.lang.Enum<PropOption>
Enum Constant and Description |
---|
Abstract
|
Final
|
Package
|
Private
|
Protected
|
Public
|
Modifier and Type | Method and Description |
---|---|
static PropOption |
fromModifier(int modifier) |
int |
getModifier() |
int |
or(int modifier) |
int |
or(PropOption option) |
static PropOption |
valueOf(java.lang.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.
|
public static final PropOption Abstract
get
, set
to override the non-use of abstract
modifier on a @var
property, or individually with get
and set
. If specified, the generated get/set method will be
abstract. Note only properties declared in interfaces and abstract classes can be abstract
. If the
corresponding get/set method is user-defined, it must be declared abstract
.
// only the setter method is abstract
@var @set(Abstract) String name;
public static final PropOption Final
get
, set
to override the non-use of final
modifier on a @var
property, or individually with get
and set
. If specified, the generated get/set method will be
final. Note properties declared in interfaces cannot be final
. If the corresponding get/set method is
user-defined, it must be declared final
.
// only the setter is final
@var @set(Final) String name;
public static final PropOption Private
public static final PropOption Package
public static final PropOption Protected
public static final PropOption Public
public static PropOption[] values()
for (PropOption c : PropOption.values()) System.out.println(c);
public static PropOption valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getModifier()
Modifier
integral value corresponding with the option.public int or(PropOption option)
public int or(int modifier)
public static PropOption fromModifier(int modifier)
Copyright © 2021. All rights reserved.