Examples of InheritInverseConfigurationPrism


Examples of org.mapstruct.ap.prism.InheritInverseConfigurationPrism

        }
    }

    private SourceMethod getReverseMappingMethod(List<SourceMethod> rawMethods, SourceMethod method) {
        SourceMethod result = null;
        InheritInverseConfigurationPrism reversePrism = InheritInverseConfigurationPrism.getInstanceOn(
            method.getExecutable()
        );

        if ( reversePrism != null ) {

            // method is configured as being reverse method, collect candidates
            List<SourceMethod> candidates = new ArrayList<SourceMethod>();
            for ( SourceMethod oneMethod : rawMethods ) {
                if ( oneMethod.reverses( method ) ) {
                    candidates.add( oneMethod );
                }
            }

            String name = reversePrism.name();
            if ( candidates.size() == 1 ) {
                // no ambiguity: if no configuredBy is specified, or configuredBy specified and match
                if ( name.isEmpty() ) {
                    result = candidates.get( 0 );
                }
View Full Code Here

Examples of org.mapstruct.ap.prism.InheritInverseConfigurationPrism

    private void reportErrorIfInverseMethodHasInheritAnnotation(SourceMethod candidate,
                                                                SourceMethod method,
                                                                InheritInverseConfigurationPrism reversePrism) {

        InheritInverseConfigurationPrism candidatePrism = InheritInverseConfigurationPrism.getInstanceOn(
            candidate.getExecutable()
        );

        if ( candidatePrism != null ) {
            messager.printMessage(
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.