Package org.jboss.jandex
Enum ClassInfo.NestingType
- java.lang.Object
-
- java.lang.Enum<ClassInfo.NestingType>
-
- org.jboss.jandex.ClassInfo.NestingType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ClassInfo.NestingType>
- Enclosing class:
- ClassInfo
public static enum ClassInfo.NestingType extends java.lang.Enum<ClassInfo.NestingType>
Describes the form of nesting used by a class
-
-
Constructor Summary
Constructors Modifier Constructor Description private
NestingType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClassInfo.NestingType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ClassInfo.NestingType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOP_LEVEL
public static final ClassInfo.NestingType TOP_LEVEL
A standard class declared within its own source unit.
-
INNER
public static final ClassInfo.NestingType INNER
A named class directly enclosed within another class.This would ideally be named
MEMBER
, because it includes static nested classes (which are not inner) and doesn't include local/anonymous classes (which are inner), but we keep the nameINNER
to not break compatibility.
-
LOCAL
public static final ClassInfo.NestingType LOCAL
A named class enclosed within a code block.
-
ANONYMOUS
public static final ClassInfo.NestingType ANONYMOUS
An unnamed class enclosed within a code block.
-
-
Method Detail
-
values
public static ClassInfo.NestingType[] 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 (ClassInfo.NestingType c : ClassInfo.NestingType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClassInfo.NestingType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-