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

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


    {
        Collection validationBeanAnnotations = mca.getValidatableBeans();
       
        for ( Iterator ii = validationBeanAnnotations.iterator(); ii.hasNext();
        {
            AnnotationInstance validationBeanAnnotation = ( AnnotationInstance ) ii.next();
            DeclaredType beanType = CompilerUtils.getDeclaredType( validationBeanAnnotation, TYPE_ATTR, true );
            assert beanType != null;    // checker should enforce this
           
            Collection validationFieldAnnotations =
                    CompilerUtils.getAnnotationArray( validationBeanAnnotation, VALIDATABLE_PROPERTIES_ATTR, false );
           
            for ( Iterator i2 = validationFieldAnnotations.iterator(); i2.hasNext();
            {
                AnnotationInstance validationFieldAnnotation = ( AnnotationInstance ) i2.next();
                String propName = CompilerUtils.getString( validationFieldAnnotation, PROPERTY_NAME_ATTR, true );
                assert propName != null;            // checker should enforce this
                assert ! propName.equals( "" );     // TODO: get checker to enforce this
               
                //
View Full Code Here


            {
                List annotations = CompilerUtils.getAnnotationArray( value );
               
                for ( Iterator i3 = annotations.iterator(); i3.hasNext();
                {
                    AnnotationInstance i = ( AnnotationInstance ) i3.next();
                    addFieldRuleFromAnnotation( ruleInfo, i, locale, applyToAllLocales );
                }
            }
        }
       
View Full Code Here

        if ( messageArgs != null )
        {
            int inferredPosition = 0;
            for ( Iterator ii = messageArgs.iterator(); ii.hasNext();
            {
                AnnotationInstance ann = ( AnnotationInstance ) ii.next();
                String arg = CompilerUtils.getString( ann, ARG_ATTR, true );
                String bundle = CompilerUtils.getString( ann, BUNDLE_NAME_ATTR, true );
                Integer position = CompilerUtils.getInteger( ann, POSITION_ATTR, true );

                if ( position == null )
View Full Code Here

    {
        if ( messageResources != null )
        {
            for ( Iterator ii = messageResources.iterator(); ii.hasNext();
            {
                AnnotationInstance ann = ( AnnotationInstance ) ii.next();
                addMessageResources( new GenMessageBundleModel( this, ann ) );
            }
        }
    }
View Full Code Here

    {
        if ( messageBundles != null )
        {
            for ( Iterator ii = messageBundles.iterator(); ii.hasNext();
            {
                AnnotationInstance ann = ( AnnotationInstance ) ii.next();
                addMessageResources( new GenMessageBundleModel( this, ann ) );
            }
        }
    }
View Full Code Here

    {
        if ( simpleActionAnnotations != null )
        {
            for ( Iterator ii = simpleActionAnnotations.iterator(); ii.hasNext();
            {
                AnnotationInstance ann = ( AnnotationInstance ) ii.next();
                addActionMapping( new GenSimpleActionModel( ann, this, _jclass ) );
            }
        }
    }
View Full Code Here

       
        ClassDeclaration formClassDecl = ( ClassDeclaration ) formTypeDecl;
       
        while ( true )
        {
            AnnotationInstance ann = CompilerUtils.getAnnotation( formClassDecl, FORM_BEAN_TAG_NAME );
           
            if ( ann != null )
            {
                String defaultMessageResources = CompilerUtils.getString( ann, MESSAGE_BUNDLE_ATTR, true );
               
View Full Code Here

                    getFlowControllerInfo().getMergedControllerAnnotation().getForwards();
            String forwardName = ( String ) member.getValue();
           
            for ( Iterator ii = forwards.iterator(); ii.hasNext();
            {
                AnnotationInstance forwardAnn = ( AnnotationInstance ) ii.next();
                if ( forwardName.equals( CompilerUtils.getString( forwardAnn, NAME_ATTR, true ) ) ) return null;
            }
           
            // TODO: comment
            if ( forwardName.equals( "_auto" ) ) return null;
View Full Code Here

    public Object onCheck( AnnotationTypeElementDeclaration valueDecl, AnnotationValue value,
                           AnnotationInstance[] parentAnnotations, MemberDeclaration classMember,
                           int annotationArrayIndex )
            throws FatalCompileTimeException
    {
        AnnotationInstance parentAnnotation = parentAnnotations[ parentAnnotations.length - 1 ];
       
        // if we have an external redirect just bail
        if ( CompilerUtils.getBoolean( parentAnnotation, EXTERNAL_REDIRECT_ATTR, false ).booleanValue() )
        {
            return null;
View Full Code Here

       
        public Object onCheck( AnnotationTypeElementDeclaration valueDecl, AnnotationValue member,
                               AnnotationInstance[] parentAnnotations, MemberDeclaration classMember,
                               int annotationArrayIndex )
        {
            AnnotationInstance parentAnnotation = parentAnnotations[ parentAnnotations.length - 1 ];
            String language = CompilerUtils.getString( parentAnnotation, LANGUAGE_ATTR, true );
           
            if ( ( ( Boolean ) member.getValue() ).booleanValue() )
            {
                if ( language != null )
View Full Code Here

TOP

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

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.