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

com.develhack.lombok.javac.handlers.assertion.ValidNumberHandler Maven / Gradle / Ivy

Go to download

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