com.igormaznitsa.meta.checker.processors.NonDetermined Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of meta-checker Show documentation
Show all versions of meta-checker Show documentation
Maven plugin to make check of compiled classes contain annotations from meta-annotations module and print some useful info (it doesn't check jr-305 annotations, use FindBugs plugin!).
The newest version!
/*
* Copyright 2016 Igor Maznitsa.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.igormaznitsa.meta.checker.processors;
import com.igormaznitsa.meta.checker.Context;
import java.lang.annotation.Annotation;
import java.lang.annotation.ElementType;
import java.util.List;
import org.apache.bcel.classfile.AnnotationEntry;
import org.apache.bcel.classfile.JavaClass;
import org.apache.bcel.classfile.ParameterAnnotationEntry;
public class NonDetermined extends AbstractMetaAnnotationProcessor {
@Override
protected int doProcessing(final Context context, final JavaClass javaClass,
final ElementType type,
final ParameterAnnotationEntry parameterAnnotationEntry,
final AnnotationEntry annotationEntry) {
return 1;
}
@Override
public List> getProcessedAnnotationClasses() {
return List.of(com.igormaznitsa.meta.annotation.NonDetermined.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy