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

com.ui4j.bytebuddy.instrumentation.ModifierContributor Maven / Gradle / Ivy

The newest version!
package com.ui4j.bytebuddy.instrumentation;

/**
 * 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. */ static final 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. */ static interface ForMethod extends ModifierContributor { /* marker interface */ } /** * A marker interface for modifiers that can be applied to fields. */ static interface ForField extends ModifierContributor { /* marker interface */ } /** * A marker interface for modifiers that can be applied to types. */ static interface ForType extends ModifierContributor { /* marker interface */ } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy