public static enum JClassItem.Kind extends java.lang.Enum<JClassItem.Kind>
| Enum Constant and Description |
|---|
ANNOTATION_INTERFACE
A nested annotation interface.
|
BLANK_LINE
A blank line.
|
BLOCK_COMMENT
A block comment.
|
CLASS
A nested class.
|
CONSTRUCTOR
A constructor.
|
ENUM
A nested enum.
|
ENUM_CONSTANT
An enum constant.
|
FIELD
A field.
|
INIT_BLOCK
An initialization block.
|
INTERFACE
A nested interface.
|
LINE_COMMENT
A line comment.
|
METHOD
A constructor.
|
| Modifier and Type | Field and Description |
|---|---|
private static int |
fullSize |
| Modifier and Type | Method and Description |
|---|---|
boolean |
in(JClassItem.Kind... values)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(JClassItem.Kind v1)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(JClassItem.Kind v1,
JClassItem.Kind v2)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(JClassItem.Kind v1,
JClassItem.Kind v2,
JClassItem.Kind v3)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(JClassItem.Kind v1,
JClassItem.Kind v2,
JClassItem.Kind v3,
JClassItem.Kind v4)
Determine whether this instance is equal to one of the given instances.
|
static boolean |
isFull(java.util.EnumSet<JClassItem.Kind> set)
Determine whether the given set is fully populated (or "full"), meaning it contains all possible values.
|
static JClassItem.Kind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JClassItem.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JClassItem.Kind LINE_COMMENT
JComment.public static final JClassItem.Kind BLOCK_COMMENT
JComment.public static final JClassItem.Kind BLANK_LINE
public static final JClassItem.Kind ENUM_CONSTANT
JEnumConstant.public static final JClassItem.Kind FIELD
JVarDeclaration.public static final JClassItem.Kind INIT_BLOCK
JBlock. The block may be static; examine
the modifiers to make this determination.public static final JClassItem.Kind CONSTRUCTOR
JMethodDef.public static final JClassItem.Kind METHOD
JMethodDef.public static final JClassItem.Kind ENUM
JClassDef.public static final JClassItem.Kind ANNOTATION_INTERFACE
JClassDef.public static final JClassItem.Kind INTERFACE
JClassDef.public static final JClassItem.Kind CLASS
JClassDef.public static JClassItem.Kind[] values()
for (JClassItem.Kind c : JClassItem.Kind.values()) System.out.println(c);
public static JClassItem.Kind 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 static boolean isFull(java.util.EnumSet<JClassItem.Kind> set)
set - the settrue if the set is full, false otherwisepublic boolean in(JClassItem.Kind v1)
v1 - the first instancetrue if one of the instances matches this one, false otherwisepublic boolean in(JClassItem.Kind v1, JClassItem.Kind v2)
v1 - the first instancev2 - the second instancetrue if one of the instances matches this one, false otherwisepublic boolean in(JClassItem.Kind v1, JClassItem.Kind v2, JClassItem.Kind v3)
v1 - the first instancev2 - the second instancev3 - the third instancetrue if one of the instances matches this one, false otherwisepublic boolean in(JClassItem.Kind v1, JClassItem.Kind v2, JClassItem.Kind v3, JClassItem.Kind v4)
v1 - the first instancev2 - the second instancev3 - the third instancev4 - the fourth instancetrue if one of the instances matches this one, false otherwisepublic boolean in(JClassItem.Kind... values)
values - the possible valuestrue if one of the instances matches this one, false otherwise