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

org.fiolino.common.var.Debugged Maven / Gradle / Ivy

Go to download

General structure to easily create dynamic logic via MethodHandles and others.

There is a newer version: 1.0.10
Show newest version
package org.fiolino.common.var;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;


/**
 * Declares whether the attribute shall be printed in Debugger. This overwrites the default behaviour, which
 * debugs all fields except transient ones.
 * 
 * @author kuli
 */
@Retention(RUNTIME)
@Target(FIELD)
public @interface Debugged {

    /**
     * If true, then this field gets printed in DebugPrinter.
     */
    boolean value();

    /**
     * If this is set, the field will be debugged even if it is null.
     */
    boolean printNull() default false;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy