lombok-pg -

Package lombok

Interface Summary
Application Generates a public static void main(String[]) method that constructs a new object of your type and then calls the runApp(String[]) method on it.
JvmAgent Generates a public static void agentmain and public static void premain method that constructs a new object of your type and then calls the runAgent(boolean, String, Instrumentation) method on it.
 

Class Summary
Actions Collection of action templates.
Actions.Action0 Encapsulates a method that has no parameters and does not return a value
Actions.Action1<T1> Encapsulates a method that has a single parameter and does not return a value.
Actions.Action2<T1,T2> Encapsulates a method that has two parameters and does not return a value.
Actions.Action3<T1,T2,T3> Encapsulates a method that has three parameters and does not return a value.
Actions.Action4<T1,T2,T3,T4> Encapsulates a method that has four parameters and does not return a value.
Actions.Action5<T1,T2,T3,T4,T5> Encapsulates a method that has five parameters and does not return a value.
Actions.Action6<T1,T2,T3,T4,T5,T6> Encapsulates a method that has six parameters and does not return a value.
Actions.Action7<T1,T2,T3,T4,T5,T6,T7> Encapsulates a method that has seven parameters and does not return a value.
Actions.Action8<T1,T2,T3,T4,T5,T6,T7,T8> Encapsulates a method that has eight parameters and does not return a value.
Functions Collection of function templates.
Functions.Function0<R> Encapsulates a method that has no parameters and returns a value of the type specified by the R parameter.
Functions.Function1<T1,R> Encapsulates a method that has a single parameter and returns a value of the type specified by the R parameter.
Functions.Function2<T1,T2,R> Encapsulates a method that has two parameters and returns a value of the type specified by the R parameter.
Functions.Function3<T1,T2,T3,R> Encapsulates a method that has three parameters and returns a value of the type specified by the R parameter.
Functions.Function4<T1,T2,T3,T4,R> Encapsulates a method that has four parameters and returns a value of the type specified by the R parameter.
Functions.Function5<T1,T2,T3,T4,T5,R> Encapsulates a method that has five parameters and returns a value of the type specified by the R parameter.
Functions.Function6<T1,T2,T3,T4,T5,T6,R> Encapsulates a method that has six parameters and returns a value of the type specified by the R parameter.
Functions.Function7<T1,T2,T3,T4,T5,T6,T7,R> Encapsulates a method that has seven parameters and returns a value of the type specified by the R parameter.
Functions.Function8<T1,T2,T3,T4,T5,T6,T7,T8,R> Encapsulates a method that has eight parameters and returns a value of the type specified by the R parameter.
Predicates Collection of predicate templates.
Predicates.Predicate1<T1> Represents the method that defines a set of criteria and determines whether the specified object meets those criteria.
Tuple  
TypeArguments  
Yield  
 

Enum Summary
Position  
Singleton.Style  
 

Annotation Types Summary
Action Encapsulates a method that does not return a value.
AutoGenMethodStub With this annotation you can avoid cluttering your code with empty methods that an interface forces you to implement.
Await Lock Conditions void methodAnnotatedWithAwait() throws java.lang.InterruptedException { this.
AwaitBeforeAndSignalAfter Lock Conditions void methodAnnotatedWithAwait() throws java.lang.InterruptedException { this.
BoundPropertySupport Deprecated. doesn't do anything useful anymore.. everything is handled by @BoundSetter
BoundSetter Creates a "bound" setter for an annotated field.
Builder Put on any type to make lombok-pg create a fluent interface builder for it.
Builder.Extension Use this on methods in a @Builder-annotated class to specify extensions for the generated builder.
DoPrivileged Before: @DoPrivileged int test1() { // something return 0; } @DoPrivileged void test2() { // something else } After: int test1() { return AccessController.doPrivileged(new PrivilegedAction<Integer>() { public Integer run() { // something return 0; } }); } void test2() { AccessController.doPrivileged(new PrivilegedAction<Void>() { public Void run() { // something else return null; } }); }
EnumId This annotation allows you mark fields in enums as identifier, so these fields can be used to identify enum values.
FluentSetter Does pretty much the same as @Setter.
Function Encapsulates a method.
LazyGetter Does pretty much the same as @Getter(lazy=true).
ListenerSupport Swing and other frameworks make extensive use of event listeners (Observer pattern) which usually involves a fair amount of boilerplate.
Predicate Encapsulates a method that returns a boolean.
ReadLock Locking beyond @Synchronized.
Rethrow Simplifies rethrowing Exceptions by wrapping them.
Rethrows Helps defining complex Rethrow statements.
Sanitize Explicitly turns on sanitation for all method parameter annotated with @Sanitize.With("methodname") or @Sanitize.Normalize.
Sanitize.Normalize String parameter gets normalized using Normalizer.normalize(CharSequence, Normalizer.Form) with default form being NFKC Note: This works only on Strings.
Sanitize.With Specify a custom sanitation method.
Signal Lock Conditions void methodAnnotatedWithSignal() { this.
Singleton Two popular singleton templates.
SwingInvokeAndWait Wraps a bit of Swing pain.
SwingInvokeLater Wraps a bit of Swing pain.
Validate Explicitly turns on validation for all method parameter annotated with @Validate.With("methodname"), @Validate.NotNull() or @Validate.NotEmpty().
Validate.NotEmpty Triggers an empty check for the annotated parameter by invoking the isEmpty method of the parameter type.
Validate.NotNull Triggers a null-check for the annotated parameter.
Validate.With Specify a custom validation method.
VisibleForTesting An annotation that indicates that the visibility of a type or member has been relaxed to make the code testable.
WriteLock Locking beyond @Synchronized.
 


lombok-pg -

Copyright © 2010-2011 Philipp Eichhorn, licensed under the MIT licence.