Package com.strobel.reflection
Enum MemberType
- java.lang.Object
-
- java.lang.Enum<MemberType>
-
- com.strobel.reflection.MemberType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MemberType>
public enum MemberType extends java.lang.Enum<MemberType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description All
Constructor
Custom
Field
Method
NestedType
TypeInfo
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set<MemberType>
constructors
private static java.util.Set<MemberType>
custom
private static java.util.Set<MemberType>
fields
(package private) int
mask
private static java.util.Set<MemberType>
methods
private static java.util.Set<MemberType>
nestedTypes
private static java.util.Set<MemberType>
types
-
Constructor Summary
Constructors Modifier Constructor Description private
MemberType(int mask)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Set<MemberType>
constructorsOnly()
static java.util.Set<MemberType>
customOnly()
static java.util.Set<MemberType>
fieldsOnly()
(package private) static int
mask(java.util.Set<MemberType> memberTypes)
static java.util.Set<MemberType>
methodsOnly()
static java.util.Set<MemberType>
nestedTypesOnly()
static java.util.Set<MemberType>
of(MemberType m1)
static java.util.Set<MemberType>
of(MemberType m1, MemberType m2)
static java.util.Set<MemberType>
of(MemberType m1, MemberType... others)
static java.util.Set<MemberType>
of(MemberType m1, MemberType m2, MemberType m3)
static java.util.Set<MemberType>
of(MemberType m1, MemberType m2, MemberType m3, MemberType m4)
static java.util.Set<MemberType>
of(MemberType m1, MemberType m2, MemberType m3, MemberType m4, MemberType m5)
static java.util.Set<MemberType>
typesOnly()
static MemberType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MemberType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Constructor
public static final MemberType Constructor
-
Field
public static final MemberType Field
-
Method
public static final MemberType Method
-
TypeInfo
public static final MemberType TypeInfo
-
Custom
public static final MemberType Custom
-
NestedType
public static final MemberType NestedType
-
All
public static final MemberType All
-
-
Field Detail
-
mask
final int mask
-
constructors
private static final java.util.Set<MemberType> constructors
-
fields
private static final java.util.Set<MemberType> fields
-
methods
private static final java.util.Set<MemberType> methods
-
types
private static final java.util.Set<MemberType> types
-
custom
private static final java.util.Set<MemberType> custom
-
nestedTypes
private static final java.util.Set<MemberType> nestedTypes
-
-
Method Detail
-
values
public static MemberType[] 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 (MemberType c : MemberType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MemberType 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
-
constructorsOnly
public static java.util.Set<MemberType> constructorsOnly()
-
fieldsOnly
public static java.util.Set<MemberType> fieldsOnly()
-
methodsOnly
public static java.util.Set<MemberType> methodsOnly()
-
typesOnly
public static java.util.Set<MemberType> typesOnly()
-
customOnly
public static java.util.Set<MemberType> customOnly()
-
nestedTypesOnly
public static java.util.Set<MemberType> nestedTypesOnly()
-
of
public static java.util.Set<MemberType> of(MemberType m1)
-
of
public static java.util.Set<MemberType> of(MemberType m1, MemberType m2)
-
of
public static java.util.Set<MemberType> of(MemberType m1, MemberType m2, MemberType m3)
-
of
public static java.util.Set<MemberType> of(MemberType m1, MemberType m2, MemberType m3, MemberType m4)
-
of
public static java.util.Set<MemberType> of(MemberType m1, MemberType m2, MemberType m3, MemberType m4, MemberType m5)
-
of
public static java.util.Set<MemberType> of(MemberType m1, MemberType... others)
-
mask
static int mask(java.util.Set<MemberType> memberTypes)
-
-