All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.bytebuddy.description.modifier.ModifierContributor Maven / Gradle / Ivy

Go to download

Byte Buddy is a Java library for creating Java classes at run time. This artifact is a build of Byte Buddy with all ASM dependencies repackaged into its own name space.

There is a newer version: 1.15.11
Show newest version
package net.bytebuddy.description.modifier;

/**
 * An element that describes a type modifier as described in the
 * JVMS.
 * 

 

* This allows for a more expressive and type safe alternative of defining a type's or type member's modifiers. * However, note that modifier's that apply competing modifiers (such as {@code private} and {@code protected} * should not be combined and will result in invalid types. An exception is thrown when built-in modifiers that * cannot be combined are used together. */ public interface ModifierContributor { /** * The empty modifier. */ int EMPTY_MASK = 0; /** * Returns the mask of this modifier. * * @return The modifier mask that is to be applied to the target type or type member. */ int getMask(); /** * A marker interface for modifiers that can be applied to methods. */ interface ForMethod extends ModifierContributor { /* marker interface */ } /** * A marker interface for modifiers that can be applied to fields. */ interface ForField extends ModifierContributor { /* marker interface */ } /** * A marker interface for modifiers that can be applied to types. */ interface ForType extends ModifierContributor { /* marker interface */ } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy