
com.develhack.lombok.javac.handlers.assertion.ValidNumberHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of develhacked-lombok Show documentation
Show all versions of develhacked-lombok Show documentation
The library enhancing Java classes at compilation by annotations that contained in the Develhack Core Library.
The newest version!
package com.develhack.lombok.javac.handlers.assertion;
import lombok.javac.JavacAnnotationHandler;
import org.mangosdk.spi.ProviderFor;
import com.develhack.annotation.assertion.ValidNumber;
import com.sun.tools.javac.tree.JCTree.JCVariableDecl;
@ProviderFor(JavacAnnotationHandler.class)
public class ValidNumberHandler extends AbstractAssertionHandler {
public ValidNumberHandler() {
super(ValidNumber.class);
}
@Override
protected String getCheckMethodName() {
return nullable ? "checkValidNumberIfNonnull" : "checkValidNumber";
}
@Override
protected boolean checkVariableType(JCVariableDecl variable) {
return checkRealType(variable);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy