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

public final Enum SynchronizationState

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

Describes if a method is supposed to be synchronized.

Field Summary

Modifier and TypeField and Description
private final int
mask

The mask the modifier contributor.

public static final SynchronizationState
PLAIN

Modifier for non-synchronized method.

public static final SynchronizationState
SYNCHRONIZED

Modifier for a synchronized method.

Constructor Summary

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

Creates a new synchronization 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 is synchronized.
isSynchronized
()

Checks if the current state describes the synchronized state.

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

Field Detail

maskback to summary
private final int mask

The mask the modifier contributor.

PLAINback to summary
public static final SynchronizationState PLAIN

Modifier for non-synchronized method. (This is the default modifier.)

SYNCHRONIZEDback to summary
public static final SynchronizationState SYNCHRONIZED

Modifier for a synchronized method.

Constructor Detail

SynchronizationStateback to summary
private SynchronizationState(int mask)

Creates a new synchronization 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.

isSynchronizedback to summary
public boolean isSynchronized()

Checks if the current state describes the synchronized state.

Returns:boolean

true if the current state is synchronized.

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