Package org.apache.beehive.netui.compiler.typesystem.declaration

Examples of org.apache.beehive.netui.compiler.typesystem.declaration.FieldDeclaration


       
        if ( fields.size() > 0 )
        {
            for ( Iterator i = fields.iterator(); i.hasNext(); )
            {
                FieldDeclaration field = ( FieldDeclaration ) i.next();
                AnnotationInstance fieldAnnotation =
                        CompilerUtils.getAnnotation( field, JpfLanguageConstants.SHARED_FLOW_FIELD_TAG_NAME );
               
                if ( fieldAnnotation == null )
                {
View Full Code Here


        //
        DeclaredType outputFormType = CompilerUtils.getDeclaredType( annotation, OUTPUT_FORM_BEAN_TYPE_ATTR, true );
        String outputFormMember = CompilerUtils.getString( annotation, OUTPUT_FORM_BEAN_ATTR, true );
        if ( outputFormMember != null )
        {
            FieldDeclaration field = CompilerUtils.getClassField( jclass, outputFormMember, null );
            assert outputFormType == null// checker should catch this
            assert field != null;           // checker should catch this
            assert field.getType() instanceof DeclaredType : field.getType().getClass().getName(); // checker enforces
            outputFormType = ( DeclaredType ) field.getType();
        }
        setOutputFormBeanMember( outputFormMember );
        setOutputFormBeanType( outputFormType != null ? CompilerUtils.getLoadableName( outputFormType ) : null );
       
        //
View Full Code Here

        //
        Collection fields = CompilerUtils.getClassFields( jclass );
       
        for ( Iterator ii = fields.iterator(); ii.hasNext();
        {
            FieldDeclaration field = ( FieldDeclaration ) ii.next();
            checkField( field, jclass );
        }

        //
        // Check the methods.  Note that we're checking public and protected inherited methods, too.
View Full Code Here

        //
        Collection fields = CompilerUtils.getClassFields( jclass );
       
        for ( Iterator ii = fields.iterator(); ii.hasNext();
        {
            FieldDeclaration field = ( FieldDeclaration ) ii.next();
            checkField( field, jclass );
        }

        //
        // Check the methods.  Note that we're checking public and protected inherited methods, too.
View Full Code Here

       
        if ( fields.size() > 0 )
        {
            for ( Iterator i = fields.iterator(); i.hasNext(); )
            {
                FieldDeclaration field = ( FieldDeclaration ) i.next();
                AnnotationInstance fieldAnnotation =
                        CompilerUtils.getAnnotation( field, JpfLanguageConstants.SHARED_FLOW_FIELD_TAG_NAME );
               
                if ( fieldAnnotation == null )
                {
View Full Code Here

        {
            String memberFieldName = CompilerUtils.getString( annotation, OUTPUT_FORM_BEAN_ATTR, true );
           
            if ( memberFieldName != null )
            {
                FieldDeclaration field = CompilerUtils.findField( outerType, memberFieldName );
                if ( field != null ) formBeanType = field.getType();
            }
        }
       
        String formTypeName =
                formBeanType != null && formBeanType instanceof DeclaredType
View Full Code Here

        Collection fields =
                CompilerUtils.getClassFields( CompilerUtils.getOuterClass( classMember ) );
       
        for ( Iterator ii = fields.iterator(); ii.hasNext();
        {
            FieldDeclaration field = ( FieldDeclaration ) ii.next();
            if ( field.getSimpleName().equals( fieldName ) )
            {
                TypeInstance fieldType = CompilerUtils.getGenericBoundsType( field.getType() );
               
                if ( _requiredSuperclassName != null
                     && ! CompilerUtils.isAssignableFrom( _requiredSuperclassName, fieldType, getEnv() ) )
                {
                    addError( member, "error.wrong-field-type", new Object[]{ fieldName, _requiredSuperclassName } );
View Full Code Here

        //
        DeclaredType outputFormType = CompilerUtils.getDeclaredType( annotation, OUTPUT_FORM_BEAN_TYPE_ATTR, true );
        String outputFormMember = CompilerUtils.getString( annotation, OUTPUT_FORM_BEAN_ATTR, true );
        if ( outputFormMember != null )
        {
            FieldDeclaration field = CompilerUtils.getClassField( jclass, outputFormMember, null );
            assert outputFormType == null// checker should catch this
            assert field != null;           // checker should catch this
            assert field.getType() instanceof DeclaredType : field.getType().getClass().getName(); // checker enforces
            outputFormType = ( DeclaredType ) field.getType();
        }
        setOutputFormBeanMember( outputFormMember );
        setOutputFormBeanType( outputFormType != null ? CompilerUtils.getLoadableName( outputFormType ) : null );
       
        //
View Full Code Here

        addForwards( annotation, parentApp, jclass );
       
        String formMember = getFormMember();
        if ( formMember != null )
        {
            FieldDeclaration field = CompilerUtils.findField( jclass, formMember );
            assert field != null// checker should prevent this
            setFormBeanName( addFormBean( field.getType(), parentApp ) );
        }
        else
        {
            setReadonly( true );     // can't modify member state; mark as read-only
           
View Full Code Here

        // check for a form bean member in the delegate --
        // the page-flow-scoped form referenced by the action (a member variable)
        String formMember = CompilerUtils.getString(annotation, USE_FORM_BEAN_ATTR, true);
        if (formMember != null) {
            setFormMember(formMember);
            FieldDeclaration field = CompilerUtils.findField(jclass, formMember);
            assert field != null// checker should prevent this
            setFormBeanName(addFormBean(field.getType(), parent));
        }
        else {
            // can't modify member state; mark as read-only
            setReadonly(Boolean.valueOf(true));
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.compiler.typesystem.declaration.FieldDeclaration

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.