METAGEN-52 Removing unused functions

This commit is contained in:
Hardy Ferentschik 2012-01-17 14:57:26 +01:00 committed by Strong Liu
parent bd37d376aa
commit 434145e75d
1 changed files with 0 additions and 30 deletions

View File

@ -16,7 +16,6 @@
*/
package org.hibernate.jpamodelgen.util;
import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
@ -116,21 +115,6 @@ public final class TypeUtils {
return false;
}
/**
* Returns {@code true} if the provided annotation type is of the same type as the provided class, {@code false} otherwise.
* This method uses the string class names for comparison. See also
* <a href="http://www.retep.org/2009/02/getting-class-values-from-annotations.html">getting-class-values-from-annotations</a>.
*
* @param annotationMirror The annotation mirror
* @param clazz the class name to check against
*
* @return {@code true} if the provided annotation type is of the same type as the provided class, {@code false} otherwise.
*/
public static boolean isAnnotationMirrorOfType(AnnotationMirror annotationMirror, Class<? extends Annotation> clazz) {
assert clazz != null;
return isAnnotationMirrorOfType( annotationMirror, clazz.getName() );
}
/**
* Returns {@code true} if the provided annotation type is of the same type as the provided class, {@code false} otherwise.
* This method uses the string class names for comparison. See also
@ -172,20 +156,6 @@ public final class TypeUtils {
return mirror;
}
/**
* Checks whether the {@code Element} hosts an annotation of the specified class.
*
* @param element the element to check for the hosted annotation
* @param clazz the annotation class to check for
*
* @return the annotation mirror for the specified annotation class from the {@code Element} or {@code null} in case
* the {@code TypeElement} does not host the specified annotation.
*/
public static AnnotationMirror getAnnotationMirror(Element element, Class<? extends Annotation> clazz) {
assert clazz != null;
return getAnnotationMirror( element, clazz.getName() );
}
public static Object getAnnotationValue(AnnotationMirror annotationMirror, String parameterValue) {
assert annotationMirror != null;
assert parameterValue != null;