Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.weld.annotated.slim.unbacked;
 
 import static org.jboss.weld.util.collections.WeldCollections.immutableList;
 import static org.jboss.weld.util.reflection.Reflections.cast;
 
import  edu.umd.cs.findbugs.annotations.SuppressWarnings;
@SuppressWarnings(value = { "SE_BAD_FIELD""SE_NO_SUITABLE_CONSTRUCTOR""SE_NO_SERIALVERSIONID" }, justification = "False positive from FindBugs - serialization is handled by SerializationProxy.")
public class UnbackedAnnotatedMethod<X> extends UnbackedAnnotatedMember<X> implements AnnotatedMethod<X>, Serializable {
    public static <X, Y extends X> AnnotatedMethod<X> of(AnnotatedMethod<X> originalMethodUnbackedAnnotatedType<Y> declaringTypeSharedObjectCache cache) {
        UnbackedAnnotatedType<X> downcastDeclaringType = cast(declaringType);
        return new UnbackedAnnotatedMethod<X>(originalMethod.getBaseType(), originalMethod.getTypeClosure(), originalMethod.getAnnotations(), downcastDeclaringType,
                originalMethod.getParameters(), originalMethod.getJavaMember(), cache);
    }
    private final Method method;
    private final List<AnnotatedParameter<X>> parameters;
    public UnbackedAnnotatedMethod(Type baseTypeSet<TypetypeClosureSet<AnnotationannotationsUnbackedAnnotatedType<X> declaringType,
            List<AnnotatedParameter<X>> originalParametersMethod methodSharedObjectCache cache) {
        super(baseTypetypeClosurecache.getSharedSet(annotations), declaringType);
        this. = method;
        List<AnnotatedParameter<X>> parameters = new ArrayList<AnnotatedParameter<X>>(originalParameters.size());
        for (AnnotatedParameter<X> originalParameter : originalParameters) {
            parameters.add(new UnbackedAnnotatedParameter<X>(originalParameter.getBaseType(), originalParameter.getTypeClosure(), cache.getSharedSet(originalParameter.getAnnotations()),
                    originalParameter.getPosition(), this));
        }
        this. = immutableList(parameters);
    }
    public Method getJavaMember() {
        return ;
    }
    public List<AnnotatedParameter<X>> getParameters() {
        return ;
    }
    @Override
    public String toString() {
        return Formats.formatAnnotatedMethod(this);
    }
    // Serialization
    private Object writeReplace() throws ObjectStreamException {
        return new UnbackedMemberIdentifier<X>(getDeclaringType(), AnnotatedTypes.createMethodId(getAnnotations(), getParameters()));
    }
    private void readObject(ObjectInputStream streamthrows InvalidObjectException {
        throw ..proxyRequired();
    }
New to GrepCode? Check out our FAQ X