Top Description Fields Constructors Methods
net.bytebuddy.description.modifier

public final Enum EnumerationState

extends Enum<EnumerationState>
implements ForType, ForField
Class Inheritance
All Implemented Interfaces
net.bytebuddy.description.modifier.ModifierContributor.ForField, net.bytebuddy.description.modifier.ModifierContributor, net.bytebuddy.description.modifier.ModifierContributor.ForType
Imports
net.bytebuddy.jar.asm.Opcodes

Determines if a type describes an enumeration. Note that enumerations must never also be interfaces.

Field Summary

Modifier and TypeField and Description
public static final EnumerationState
ENUMERATION

Modifier for marking a type as an enumeration.

private final int
mask

The mask of the modifier contributor.

public static final EnumerationState
PLAIN

Modifier for marking a type as a non-enumeration.

Constructor Summary

AccessConstructor and Description
private
EnumerationState(int
The modifier mask of this instance.
mask
)

Creates a new enumeration state representation.

Method Summary

Modifier and TypeMethod and Description
public int
getMask()

Implements net.bytebuddy.description.modifier.ModifierContributor.getMask.

Returns the mask of this modifier.
public int
getRange()

Implements net.bytebuddy.description.modifier.ModifierContributor.getRange.

Returns the entire range of modifiers that address this contributor's property.
public boolean
isDefault()

Implements net.bytebuddy.description.modifier.ModifierContributor.isDefault.

Determines if this is the default modifier.
public boolean

Returns:

true if the current state describes an enumeration.
isEnumeration
()

Checks if the current state describes the enum state.

public static EnumerationState
public static EnumerationState[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ENUMERATIONback to summary
public static final EnumerationState ENUMERATION

Modifier for marking a type as an enumeration.

maskback to summary
private final int mask

The mask of the modifier contributor.

PLAINback to summary
public static final EnumerationState PLAIN

Modifier for marking a type as a non-enumeration. (This is the default modifier.)

Constructor Detail

EnumerationStateback to summary
private EnumerationState(int mask)

Creates a new enumeration state representation.

Parameters
mask:int

The modifier mask of this instance.

Method Detail

getMaskback to summary
public int getMask()

Implements net.bytebuddy.description.modifier.ModifierContributor.getMask.

Doc from net.bytebuddy.description.modifier.ModifierContributor.getMask.

Returns the mask of this modifier.

Returns:int

The modifier mask that is to be applied to the target type or type member.

getRangeback to summary
public int getRange()

Implements net.bytebuddy.description.modifier.ModifierContributor.getRange.

Doc from net.bytebuddy.description.modifier.ModifierContributor.getRange.

Returns the entire range of modifiers that address this contributor's property.

Returns:int

The range of this contributor's property.

isDefaultback to summary
public boolean isDefault()

Implements net.bytebuddy.description.modifier.ModifierContributor.isDefault.

Doc from net.bytebuddy.description.modifier.ModifierContributor.isDefault.

Determines if this is the default modifier.

Returns:boolean

true if this contributor represents the default modifier.

isEnumerationback to summary
public boolean isEnumeration()

Checks if the current state describes the enum state.

Returns:boolean

true if the current state describes an enumeration.

valueOfback to summary
public static EnumerationState valueOf(String name)
valuesback to summary
public static EnumerationState[] values()