Package org.qi4j.tools.model.descriptor

Examples of org.qi4j.tools.model.descriptor.CompositeMethodDetailDescriptor


        }

        Iterator<CompositeMethodDetailDescriptor> iter = list.iterator();
        while( iter.hasNext() )
        {
            CompositeMethodDetailDescriptor descriptor = iter.next();
            Method method = descriptor.descriptor().method();
            if( Property.class.isAssignableFrom( method.getReturnType() ) )
            {
                iter.remove();
            }
            else if( Association.class.isAssignableFrom( method.getReturnType() ) )
View Full Code Here


        }

        Iterator<CompositeMethodDetailDescriptor> iter = list.iterator();
        while( iter.hasNext() )
        {
            CompositeMethodDetailDescriptor descriptor = iter.next();
            Method method = descriptor.descriptor().method();
            if( Property.class.isAssignableFrom( method.getReturnType() )
                || Association.class.isAssignableFrom( method.getReturnType() )
                || ManyAssociation.class.isAssignableFrom( method.getReturnType() )
                || NamedAssociation.class.isAssignableFrom( method.getReturnType() ) )
            {
View Full Code Here

            {
                return this;
            }

            Icon icon;
            CompositeMethodDetailDescriptor descriptor = (CompositeMethodDetailDescriptor) value;

            Class compositeClass = first( descriptor.composite().descriptor().types() );
            Class mixinMethodClass = descriptor.descriptor().method().getDeclaringClass();
            if( mixinMethodClass.isAssignableFrom( compositeClass ) )
            {
                icon = publicIcon;
            }
            else
View Full Code Here

            {
                return this;
            }

            Icon icon;
            CompositeMethodDetailDescriptor descriptor = (CompositeMethodDetailDescriptor) value;
            Class compositeClass = first( descriptor.composite().descriptor().types() );
            Class mixinMethodClass = descriptor.descriptor().method().getDeclaringClass();
            if( mixinMethodClass.isAssignableFrom( compositeClass ) )
            {
                icon = publicIcon;
            }
            else
            {
                icon = privateIcon;
            }

            if( icon != null )
            {
                setIcon( icon );
            }

            Method method = descriptor.descriptor().method();
            Class<?> methodReturnType = method.getReturnType();

            if( Property.class.isAssignableFrom( methodReturnType ) )
            {
                Type t = GenericPropertyInfo.propertyTypeOf( method );
View Full Code Here

TOP

Related Classes of org.qi4j.tools.model.descriptor.CompositeMethodDetailDescriptor

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.