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

public final Enum Ownership

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

Determines the ownership of a field or method, i.e. if a member is defined in as static and belongs to a class or in contrast to an instance.

Field Summary

Modifier and TypeField and Description
private final int
mask

The mask the modifier contributor.

public static final Ownership
MEMBER

Modifier for a instance ownership of a type member.

public static final Ownership
STATIC

Modifier for type ownership of a type member.

Constructor Summary

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

Creates a new ownership 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 this ownership representation represents a static member.
isStatic
()

Checks if the current state describes a static member.

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

Field Detail

maskback to summary
private final int mask

The mask the modifier contributor.

MEMBERback to summary
public static final Ownership MEMBER

Modifier for a instance ownership of a type member. (This is the default modifier.)

STATICback to summary
public static final Ownership STATIC

Modifier for type ownership of a type member.

Constructor Detail

Ownershipback to summary
private Ownership(int mask)

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

isStaticback to summary
public boolean isStatic()

Checks if the current state describes a static member.

Returns:boolean

true if this ownership representation represents a static member.

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