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

org.jboss.weld.annotated.slim.unbacked.UnbackedAnnotatedMember Maven / Gradle / Ivy

There is a newer version: 3.0.0.Alpha1
Show newest version
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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy