org.jboss.weld.annotated.slim.unbacked.UnbackedAnnotatedMember Maven / Gradle / Ivy
package org.jboss.weld.annotated.slim.unbacked;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.util.Set;
import javax.enterprise.inject.spi.AnnotatedMember;
import org.jboss.weld.util.reflection.Reflections;
public abstract class UnbackedAnnotatedMember extends UnbackedAnnotated implements AnnotatedMember {
public UnbackedAnnotatedMember(Type baseType, Set typeClosure, Set annotations, UnbackedAnnotatedType declaringType) {
super(baseType, typeClosure, annotations);
this.declaringType = declaringType;
}
private UnbackedAnnotatedType declaringType;
public boolean isStatic() {
return Reflections.isStatic(getJavaMember());
}
public UnbackedAnnotatedType getDeclaringType() {
return declaringType;
}
}