Examples of SourceMethod


Examples of org.mapstruct.ap.model.source.SourceMethod

            // retrieve annotations
            Set<TypeMirror> combinedAnnotations = new HashSet<TypeMirror>();

            // first from the method itself
            SourceMethod candidateSM = (SourceMethod) candidate;
            List<? extends AnnotationMirror> methodAnnotations = candidateSM.getExecutable().getAnnotationMirrors();
            for ( AnnotationMirror methodAnnotation : methodAnnotations ) {
                addOnlyWhenQualifier( combinedAnnotations, methodAnnotation );
            }

            // then from the mapper (if declared)
View Full Code Here

Examples of org.mapstruct.ap.model.source.SourceMethod

        // only true source methods are qualifying
        if ( !(mappingMethod instanceof SourceMethod) ) {
            return methods;
        }

        SourceMethod sourceMappingMethod = (SourceMethod) mappingMethod;

        List<T> nameMatches = new ArrayList<T>();
        List<T> scopeMatches = new ArrayList<T>();
        List<T> nameAndScopeMatches = new ArrayList<T>();

        for ( T candidate : methods ) {
            if ( !( candidate instanceof SourceMethod ) ) {
                continue;
            }

            SourceMethod candidateMethod = (SourceMethod) candidate;
            XmlElementDeclPrism xmlElememtDecl = XmlElementDeclPrism.getInstanceOn( candidateMethod.getExecutable() );

            if ( xmlElememtDecl == null ) {
                continue;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.