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

public final Enum SyntheticState

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

Defines if a type or member is supposed to be marked as synthetic.

Field Summary

Modifier and TypeField and Description
private final int
mask

The mask of the modifier contributor.

public static final SyntheticState
PLAIN

Modifier for not marking a type member as synthetic.

public static final SyntheticState
SYNTHETIC

Modifier for marking a type member as synthetic.

Constructor Summary

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

Creates a new synthetic 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 synthetic.
isSynthetic
()

Checks if the current state describes the synthetic state.

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

Field Detail

maskback to summary
private final int mask

The mask of the modifier contributor.

PLAINback to summary
public static final SyntheticState PLAIN

Modifier for not marking a type member as synthetic. (This is the default modifier.)

SYNTHETICback to summary
public static final SyntheticState SYNTHETIC

Modifier for marking a type member as synthetic.

Constructor Detail

SyntheticStateback to summary
private SyntheticState(int mask)

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

isSyntheticback to summary
public boolean isSynthetic()

Checks if the current state describes the synthetic state.

Returns:boolean

true if the current state is synthetic.

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