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

public final Enum FieldPersistence

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

Describes the persistence of a field, i.e. if it is transient.

Field Summary

Modifier and TypeField and Description
private final int
mask

The modifier mask for this persistence type.

public static final FieldPersistence
PLAIN

Modifier for a non-transient field.

public static final FieldPersistence
TRANSIENT

Modifier for a transient field.

Constructor Summary

AccessConstructor and Description
private
FieldPersistence(int
The modifier mask for this persistence type.
mask
)

Creates a new field persistence description.

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 this manifestation represents a field that is transient.
isTransient
()

Returns true if this manifestation represents a field that is transient.

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

Field Detail

maskback to summary
private final int mask

The modifier mask for this persistence type.

PLAINback to summary
public static final FieldPersistence PLAIN

Modifier for a non-transient field. (This is the default modifier.)

TRANSIENTback to summary
public static final FieldPersistence TRANSIENT

Modifier for a transient field.

Constructor Detail

FieldPersistenceback to summary
private FieldPersistence(int mask)

Creates a new field persistence description.

Parameters
mask:int

The modifier mask for this persistence type.

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.

isTransientback to summary
public boolean isTransient()

Returns true if this manifestation represents a field that is transient.

Returns:boolean

true if this manifestation represents a field that is transient.

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