Top Description Fields Constructors Methods
net.bytebuddy.implementation.auxiliary

public final Enum TrivialType

extends Enum<TrivialType>
implements AuxiliaryType
Class Inheritance
All Implemented Interfaces
net.bytebuddy.implementation.auxiliary.AuxiliaryType
Imports
net.bytebuddy.ByteBuddy, .ClassFileVersion, net.bytebuddy.description.annotation.AnnotationDescription, net.bytebuddy.dynamic.DynamicType, net.bytebuddy.dynamic.scaffold.MethodGraph, .TypeValidation, net.bytebuddy.dynamic.scaffold.subclass.ConstructorStrategy, net.bytebuddy.implementation.MethodAccessorFactory, net.bytebuddy.utility.RandomString, java.util.Collections

A trivial type that extends java.lang.Object without defining any fields, methods or constructors. This type is meant to be used as a marker type only.

Field Summary

Modifier and TypeField and Description
private final boolean
eager

Determines if this type determines the SignatureRelevant annotation.

public static final TrivialType
PLAIN

A non-annotated trivial type.

public static final TrivialType
SIGNATURE_RELEVANT

A trivial type that defines the SignatureRelevant annotation.

Constructor Summary

AccessConstructor and Description
private
TrivialType(boolean
Determines if this type determines the SignatureRelevant annotation.
eager
)

Creates a new trivial type.

Method Summary

Modifier and TypeMethod and Description
public String
getSuffix()

Implements net.bytebuddy.implementation.auxiliary.AuxiliaryType.getSuffix.

Produces a suffix that gives this auxiliary type a stable name.
public DynamicType
make(String
The fully qualified binary name for this auxiliary type. The type should be in the same package than the instrumented type this auxiliary type is providing services to in order to allow package-private access.
auxiliaryTypeName
,
ClassFileVersion
The class file version the auxiliary class should be written in.
classFileVersion
,
MethodAccessorFactory
A factory for accessor methods.
methodAccessorFactory
)

Implements net.bytebuddy.implementation.auxiliary.AuxiliaryType.make.

Creates a new auxiliary type.
public static TrivialType
public static TrivialType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

eagerback to summary
private final boolean eager

Determines if this type determines the SignatureRelevant annotation.

PLAINback to summary
public static final TrivialType PLAIN

A non-annotated trivial type.

SIGNATURE_RELEVANTback to summary
public static final TrivialType SIGNATURE_RELEVANT

A trivial type that defines the SignatureRelevant annotation.

Constructor Detail

TrivialTypeback to summary
private TrivialType(boolean eager)

Creates a new trivial type.

Parameters
eager:boolean

Determines if this type determines the SignatureRelevant annotation.

Method Detail

getSuffixback to summary
public String getSuffix()

Implements net.bytebuddy.implementation.auxiliary.AuxiliaryType.getSuffix.

Doc from net.bytebuddy.implementation.auxiliary.AuxiliaryType.getSuffix.

Produces a suffix that gives this auxiliary type a stable name. A best effort is made that this suffix is unique.

Returns:String

The suffix for this auxiliary type.

makeback to summary
public DynamicType make(String auxiliaryTypeName, ClassFileVersion classFileVersion, MethodAccessorFactory methodAccessorFactory)

Implements net.bytebuddy.implementation.auxiliary.AuxiliaryType.make.

Doc from net.bytebuddy.implementation.auxiliary.AuxiliaryType.make.

Creates a new auxiliary type.

Parameters
auxiliaryTypeName:String

The fully qualified binary name for this auxiliary type. The type should be in the same package than the instrumented type this auxiliary type is providing services to in order to allow package-private access.

classFileVersion:ClassFileVersion

The class file version the auxiliary class should be written in.

methodAccessorFactory:MethodAccessorFactory

A factory for accessor methods.

Returns:DynamicType

A dynamically created type representing this auxiliary type.

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