Package org.mapstruct.ap.prism

Examples of org.mapstruct.ap.prism.XmlElementDeclPrism


            if ( !( candidate instanceof SourceMethod ) ) {
                continue;
            }

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

            if ( xmlElememtDecl == null ) {
                continue;
            }

            String name = xmlElememtDecl.name();
            TypeMirror scope = xmlElememtDecl.scope();
            TypeMirror target = sourceMappingMethod.getExecutable().getReturnType();

            boolean nameIsSetAndMatches = name != null && name.equals( targetPropertyName );
            boolean scopeIsSetAndMatches = scope != null && typeUtils.isSameType( scope, target );
View Full Code Here

TOP

Related Classes of org.mapstruct.ap.prism.XmlElementDeclPrism

Copyright © 2018 www.massapicom. 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.