Package org.jboss.jdeparser
Enum JClassItem.Kind
- java.lang.Object
-
- java.lang.Enum<JClassItem.Kind>
-
- org.jboss.jdeparser.JClassItem.Kind
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JClassItem.Kind>
- Enclosing interface:
- JClassItem
@Deprecated public static enum JClassItem.Kind extends java.lang.Enum<JClassItem.Kind>
Deprecated.The kind of class item.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANNOTATION_INTERFACE
Deprecated.A nested annotation interface.BLANK_LINE
Deprecated.A blank line.BLOCK_COMMENT
Deprecated.A block comment.CLASS
Deprecated.A nested class.CONSTRUCTOR
Deprecated.A constructor.ENUM
Deprecated.A nested enum.ENUM_CONSTANT
Deprecated.An enum constant.FIELD
Deprecated.A field.INIT_BLOCK
Deprecated.An initialization block.INTERFACE
Deprecated.A nested interface.LINE_COMMENT
Deprecated.A line comment.METHOD
Deprecated.A constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
in(JClassItem.Kind v1)
Deprecated.Determine whether this instance is equal to one of the given instances.boolean
in(JClassItem.Kind... values)
Deprecated.Determine whether this instance is equal to one of the given instances.boolean
in(JClassItem.Kind v1, JClassItem.Kind v2)
Deprecated.Determine whether this instance is equal to one of the given instances.boolean
in(JClassItem.Kind v1, JClassItem.Kind v2, JClassItem.Kind v3)
Deprecated.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)
Deprecated.Determine whether this instance is equal to one of the given instances.static boolean
isFull(java.util.EnumSet<JClassItem.Kind> set)
Deprecated.Determine whether the given set is fully populated (or "full"), meaning it contains all possible values.static JClassItem.Kind
valueOf(java.lang.String name)
Deprecated.Returns the enum constant of this type with the specified name.static JClassItem.Kind[]
values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LINE_COMMENT
public static final JClassItem.Kind LINE_COMMENT
Deprecated.A line comment. The item will implementJComment
.
-
BLOCK_COMMENT
public static final JClassItem.Kind BLOCK_COMMENT
Deprecated.A block comment. The item will implementJComment
.
-
BLANK_LINE
public static final JClassItem.Kind BLANK_LINE
Deprecated.A blank line.
-
ENUM_CONSTANT
public static final JClassItem.Kind ENUM_CONSTANT
Deprecated.An enum constant. The item will implementJEnumConstant
.
-
FIELD
public static final JClassItem.Kind FIELD
Deprecated.A field. The item will implementJVarDeclaration
.
-
INIT_BLOCK
public static final JClassItem.Kind INIT_BLOCK
Deprecated.An initialization block. The item will implementJBlock
. The block may be static; examine the modifiers to make this determination.
-
CONSTRUCTOR
public static final JClassItem.Kind CONSTRUCTOR
Deprecated.A constructor. The item will implementJMethodDef
.
-
METHOD
public static final JClassItem.Kind METHOD
Deprecated.A constructor. The item will implementJMethodDef
.
-
ENUM
public static final JClassItem.Kind ENUM
Deprecated.A nested enum. The item will implementJClassDef
.
-
ANNOTATION_INTERFACE
public static final JClassItem.Kind ANNOTATION_INTERFACE
Deprecated.A nested annotation interface. The item will implementJClassDef
.
-
INTERFACE
public static final JClassItem.Kind INTERFACE
Deprecated.A nested interface. The item will implementJClassDef
.
-
CLASS
public static final JClassItem.Kind CLASS
Deprecated.A nested class. The item will implementJClassDef
.
-
-
Method Detail
-
values
public static JClassItem.Kind[] values()
Deprecated.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 (JClassItem.Kind c : JClassItem.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JClassItem.Kind valueOf(java.lang.String name)
Deprecated.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isFull
public static boolean isFull(java.util.EnumSet<JClassItem.Kind> set)
Deprecated.Determine whether the given set is fully populated (or "full"), meaning it contains all possible values.- Parameters:
set
- the set- Returns:
true
if the set is full,false
otherwise
-
in
public boolean in(JClassItem.Kind v1)
Deprecated.Determine whether this instance is equal to one of the given instances.- Parameters:
v1
- the first instance- Returns:
true
if one of the instances matches this one,false
otherwise
-
in
public boolean in(JClassItem.Kind v1, JClassItem.Kind v2)
Deprecated.Determine whether this instance is equal to one of the given instances.- Parameters:
v1
- the first instancev2
- the second instance- Returns:
true
if one of the instances matches this one,false
otherwise
-
in
public boolean in(JClassItem.Kind v1, JClassItem.Kind v2, JClassItem.Kind v3)
Deprecated.Determine whether this instance is equal to one of the given instances.- Parameters:
v1
- the first instancev2
- the second instancev3
- the third instance- Returns:
true
if one of the instances matches this one,false
otherwise
-
in
public boolean in(JClassItem.Kind v1, JClassItem.Kind v2, JClassItem.Kind v3, JClassItem.Kind v4)
Deprecated.Determine whether this instance is equal to one of the given instances.- Parameters:
v1
- the first instancev2
- the second instancev3
- the third instancev4
- the fourth instance- Returns:
true
if one of the instances matches this one,false
otherwise
-
in
public boolean in(JClassItem.Kind... values)
Deprecated.Determine whether this instance is equal to one of the given instances.- Parameters:
values
- the possible values- Returns:
true
if one of the instances matches this one,false
otherwise
-
-