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

public final Enum TypeManifestation

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

Describes a type's manifestation, i.e. if a type is final, abstract, an interface or neither.

Field Summary

Modifier and TypeField and Description
public static final TypeManifestation
ABSTRACT

Modifier for an abstract class.

public static final TypeManifestation
ANNOTATION

Modifier for an annotation.

public static final TypeManifestation
FINAL

Modifier for a final class.

public static final TypeManifestation
INTERFACE

Modifier for an interface.

private final int
mask

The mask the modifier contributor.

public static final TypeManifestation
PLAIN

Modifier for a non-final, non-abstract, non-interface, non-enum type.

Constructor Summary

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

Creates a new type manifestation.

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

Returns:

true if a type represents an abstract type but not an interface type.
isAbstract
()

Returns true if a type represents an abstract type but not an interface type.

public boolean

Returns:

true if a type represents an annotation type.
isAnnotation
()

Returns true if a type represents an annotation type.

public boolean
isDefault()

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

Determines if this is the default modifier.
public boolean

Returns:

true if a type represents a final type.
isFinal
()

Returns true if a type represents a final type.

public boolean

Returns:

true if a type represents an interface type.
isInterface
()

Returns true if a type represents an interface type.

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

Field Detail

ABSTRACTback to summary
public static final TypeManifestation ABSTRACT

Modifier for an abstract class.

ANNOTATIONback to summary
public static final TypeManifestation ANNOTATION

Modifier for an annotation.

FINALback to summary
public static final TypeManifestation FINAL

Modifier for a final class.

INTERFACEback to summary
public static final TypeManifestation INTERFACE

Modifier for an interface.

maskback to summary
private final int mask

The mask the modifier contributor.

PLAINback to summary
public static final TypeManifestation PLAIN

Modifier for a non-final, non-abstract, non-interface, non-enum type. (This is the default modifier.)

Constructor Detail

TypeManifestationback to summary
private TypeManifestation(int mask)

Creates a new type manifestation.

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.

isAbstractback to summary
public boolean isAbstract()

Returns true if a type represents an abstract type but not an interface type.

Returns:boolean

true if a type represents an abstract type but not an interface type.

isAnnotationback to summary
public boolean isAnnotation()

Returns true if a type represents an annotation type.

Returns:boolean

true if a type represents an annotation type.

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.

isFinalback to summary
public boolean isFinal()

Returns true if a type represents a final type.

Returns:boolean

true if a type represents a final type.

isInterfaceback to summary
public boolean isInterface()

Returns true if a type represents an interface type.

Returns:boolean

true if a type represents an interface type.

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