org.fiolino.common.var.Debugged Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons Show documentation
Show all versions of commons Show documentation
General structure to easily create dynamic logic via MethodHandles and others.
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;
}