Examples of AnnotationTypeElementDeclaration


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

        return _sourcePosition;
    }
   
    public void addElementValue( String memberName, boolean memberIsArray, Object value, SourcePosition sourcePosition )
    {
        AnnotationTypeElementDeclaration elementDecl = _type.getAnnotationTypeDeclaration().getMember( memberName );
       
        if ( elementDecl == null )
        {
            XDocletCompilerUtils.addError( getPosition(), "error.no-such-member",
                                           new String[]{ memberName, _type.getAnnotationTypeDeclaration().getQualifiedName() } );
View Full Code Here

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

                HashMap elementValues = new HashMap();
               
                for ( Iterator j = attrNames.iterator(); j.hasNext(); )
                {
                    String attrName = ( String ) j.next();
                    AnnotationTypeElementDeclaration memberDecl = decl.getMember( attrName );
                    SourcePositionImpl pos = SourcePositionImpl.get( tag, attrName, element );
                    Object val = parseValue( memberDecl, tag.getAttributeValue( attrName ), pos );
                    AnnotationValue value = new AnnotationValueImpl( val, pos, memberDecl );
                    elementValues.put( memberDecl, value );
                }
View Full Code Here

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

            // as a child.
            //
            for ( int i = parentAnnotations.size() - 1; i >= 0; --i )
            {
                AnnotationInstanceImpl parentAnnotation = ( AnnotationInstanceImpl ) parentAnnotations.get( i );
                AnnotationTypeElementDeclaration elementDecl =
                        parentAnnotation.getAnnotationType().getAnnotationTypeDeclaration().getMember( memberArrayName );
               
                if ( elementDecl != null )
                {
                    foundTheRightParent = parentAnnotation;
View Full Code Here

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

        Map elementValues = annotation.getElementValues();

        for ( Iterator i = elementValues.entrySet().iterator(); i.hasNext(); )
        {
            Map.Entry entry = ( Map.Entry ) i.next();
            AnnotationTypeElementDeclaration elementDecl = ( AnnotationTypeElementDeclaration ) entry.getKey();
            AnnotationValue annotationValue = ( AnnotationValue ) entry.getValue();

            String name = elementDecl.getSimpleName();
            Object value = annotationValue.getValue();
            Element xmlAttr = _xw.addElement(xmlAnnotation, "annotation-attribute");
            _xw.addElementWithText(xmlAttr, "attribute-name", name);

            if ( value instanceof List )
View Full Code Here

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

        parentsIncludingMe[oldLen] = annotation;
       
        for ( Iterator ii = valuesPresent.entrySet().iterator(); ii.hasNext();
        {
            Map.Entry i = ( Map.Entry ) ii.next();
            AnnotationTypeElementDeclaration decl = ( AnnotationTypeElementDeclaration ) i.getKey();
            AnnotationValue value = ( AnnotationValue ) i.getValue();
            String memberName = decl.getSimpleName();
           
            wasPresent.add( memberName );
            onCheckMember( decl, value, annotation, parentAnnotations, classMember );
            Object grammarOrType = null;
           
View Full Code Here

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

        Map elementValues = annotation.getElementValues();
       
        for ( Iterator i = elementValues.entrySet().iterator(); i.hasNext(); )
        {
            Map.Entry entry = ( Map.Entry ) i.next();
            AnnotationTypeElementDeclaration elementDecl = ( AnnotationTypeElementDeclaration ) entry.getKey();
            AnnotationValue annotationValue = ( AnnotationValue ) entry.getValue();
           
            String name = elementDecl.getSimpleName();
            Object value = annotationValue.getValue();
            AnnotationAttribute xmlAttr = xmlAnnotation.addNewAnnotationAttribute();
            xmlAttr.setAttributeName( name );
           
            if ( value instanceof List )
View Full Code Here

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

        _members = members;
       
        _membersByName = new HashMap();
        for ( int i = 0; i < members.length; i++ )
        {
            AnnotationTypeElementDeclaration member = members[i];
            _membersByName.put( member.getSimpleName(), member );
        }
    }
View Full Code Here

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

                    getDelegate().getMethods();
            AnnotationTypeElementDeclaration[] array = new AnnotationTypeElementDeclaration[ delegateCollection.size() ];
            int j = 0;
            for ( com.sun.mirror.declaration.AnnotationTypeElementDeclaration i : delegateCollection )
            {
                AnnotationTypeElementDeclaration decl = WrapperFactory.get().getAnnotationTypeElementDeclaration( i );
                array[ j++ ] = decl;
                _membersByName.put( decl.getSimpleName(), decl );
            }
            _members = array;
        }

        return _members;
View Full Code Here

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

                HashMap elementValues = new HashMap();
               
                for ( Iterator j = attrNames.iterator(); j.hasNext(); )
                {
                    String attrName = ( String ) j.next();
                    AnnotationTypeElementDeclaration memberDecl = decl.getMember( attrName );
                    SourcePositionImpl pos = SourcePositionImpl.get( tag, attrName, element );
                    Object val = parseValue( memberDecl, tag.getAttributeValue( attrName ), pos );
                    AnnotationValue value = new AnnotationValueImpl( val, pos, memberDecl );
                    elementValues.put( memberDecl, value );
                }
View Full Code Here

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

            // as a child.
            //
            for ( int i = parentAnnotations.size() - 1; i >= 0; --i )
            {
                AnnotationInstanceImpl parentAnnotation = ( AnnotationInstanceImpl ) parentAnnotations.get( i );
                AnnotationTypeElementDeclaration elementDecl =
                        parentAnnotation.getAnnotationType().getAnnotationTypeDeclaration().getMember( memberArrayName );
               
                if ( elementDecl != null )
                {
                    foundTheRightParent = parentAnnotation;
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.