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

org.jboss.weld.util.annotated.ForwardingWeldClass Maven / Gradle / Ivy

There is a newer version: 3.0.0.Alpha1
Show newest version
/*
 * JBoss, Home of Professional Open Source
 * Copyright 2008, Red Hat, Inc., and individual contributors
 * by the @authors tag. See the copyright.txt in the distribution for a
 * full listing of individual contributors.
 *
 * 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 org.jboss.weld.util.annotated;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.Set;

import javax.enterprise.inject.spi.AnnotatedConstructor;
import javax.enterprise.inject.spi.AnnotatedField;
import javax.enterprise.inject.spi.AnnotatedMethod;

import org.jboss.weld.annotated.enhanced.ConstructorSignature;
import org.jboss.weld.annotated.enhanced.EnhancedAnnotatedConstructor;
import org.jboss.weld.annotated.enhanced.EnhancedAnnotatedField;
import org.jboss.weld.annotated.enhanced.EnhancedAnnotatedMethod;
import org.jboss.weld.annotated.enhanced.EnhancedAnnotatedType;
import org.jboss.weld.annotated.enhanced.MethodSignature;
import org.jboss.weld.annotated.slim.SlimAnnotatedType;

public abstract class ForwardingWeldClass extends ForwardingWeldAnnotated> implements EnhancedAnnotatedType {

    @Override
    protected abstract EnhancedAnnotatedType delegate();

    public Collection> getDeclaredEnhancedMethods() {
        return delegate().getDeclaredEnhancedMethods();
    }

    public  EnhancedAnnotatedMethod getDeclaredEnhancedMethod(MethodSignature signature) {
        return delegate().getDeclaredEnhancedMethod(signature);
    }

    public Set> getConstructors() {
        return delegate().getConstructors();
    }

    public Set> getMethods() {
        return delegate().getMethods();
    }

    public Set> getFields() {
        return delegate().getFields();
    }

    public Collection> getEnhancedConstructors(Class annotationType) {
        return delegate().getEnhancedConstructors(annotationType);
    }

    public Collection> getEnhancedConstructors() {
        return delegate().getEnhancedConstructors();
    }

    public Collection> getEnhancedFields(Class annotationType) {
        return delegate().getEnhancedFields(annotationType);
    }

    public Collection> getEnhancedMethods(Class annotationType) {
        return delegate().getEnhancedMethods(annotationType);
    }

    public EnhancedAnnotatedConstructor getNoArgsEnhancedConstructor() {
        return delegate().getNoArgsEnhancedConstructor();
    }

    public Collection> getEnhancedMethods() {
        return delegate().getEnhancedMethods();
    }

    public Collection> getDeclaredEnhancedFields(Class annotationType) {
        return delegate().getDeclaredEnhancedFields(annotationType);
    }

    public Collection> getDeclaredEnhancedFields() {
        return delegate().getDeclaredEnhancedFields();
    }

    public Collection> getDeclaredEnhancedMethods(Class annotationType) {
        return delegate().getDeclaredEnhancedMethods(annotationType);
    }

    public Collection> getDeclaredEnhancedMethodsWithAnnotatedParameters(Class annotationType) {
        return delegate().getDeclaredEnhancedMethodsWithAnnotatedParameters(annotationType);
    }

    public Collection> getEnhancedFields() {
        return delegate().getEnhancedFields();
    }

    @Deprecated
    public EnhancedAnnotatedMethod getEnhancedMethod(Method method) {
        return delegate().getEnhancedMethod(method);
    }

    public  EnhancedAnnotatedMethod getEnhancedMethod(MethodSignature signature) {
        return delegate().getEnhancedMethod(signature);
    }

    public EnhancedAnnotatedType getEnhancedSuperclass() {
        return delegate().getEnhancedSuperclass();
    }

    public boolean isLocalClass() {
        return delegate().isLocalClass();
    }

    public boolean isMemberClass() {
        return delegate().isMemberClass();
    }

    public boolean isAnonymousClass() {
        return delegate().isAnonymousClass();
    }

    @Override
    public boolean isParameterizedType() {
        return delegate().isParameterizedType();
    }

    public boolean isAbstract() {
        return delegate().isAbstract();
    }

    public boolean isEnum() {
        return delegate().isEnum();
    }

    public boolean isSerializable() {
        return delegate().isSerializable();
    }

    @Deprecated
    public EnhancedAnnotatedMethod getDeclaredEnhancedMethod(Method method) {
        return delegate().getDeclaredEnhancedMethod(method);
    }

    public  EnhancedAnnotatedField getDeclaredEnhancedField(String fieldName) {
        return delegate().getDeclaredEnhancedField(fieldName);
    }

    public  EnhancedAnnotatedMethod getDeclaredEnhancedMethod(MethodSignature signature, EnhancedAnnotatedType expectedReturnType) {
        return delegate().getDeclaredEnhancedMethod(signature);
    }

    public EnhancedAnnotatedConstructor getDeclaredEnhancedConstructor(ConstructorSignature signature) {
        return delegate().getDeclaredEnhancedConstructor(signature);
    }

    public  EnhancedAnnotatedType asEnhancedSubclass(EnhancedAnnotatedType clazz) {
        return delegate().asEnhancedSubclass(clazz);
    }

    public  S cast(Object object) {
        return delegate().cast(object);
    }

    public boolean isEquivalent(Class clazz) {
        return delegate().isEquivalent(clazz);
    }

    public String getSimpleName() {
        return delegate().getSimpleName();
    }

    public Collection getDeclaredMetaAnnotations(Class metaAnnotationType) {
        return delegate().getDeclaredMetaAnnotations(metaAnnotationType);
    }

    public boolean isDiscovered() {
        return delegate().isDiscovered();
    }

    @Override
    public SlimAnnotatedType slim() {
        return delegate().slim();
    }

    @Override
    public Collection> getEnhancedMethodsWithAnnotatedParameters(Class annotationType) {
        return delegate().getEnhancedMethodsWithAnnotatedParameters(annotationType);
    }
}