Package org.apache.beehive.netui.compiler.schema.annotations

Examples of org.apache.beehive.netui.compiler.schema.annotations.AnnotatedElement


       
        AnnotatedElement[] elements = _annotations.getAnnotatedElementArray();
       
        for ( int i = 0; i < elements.length; i++ )
        {
            AnnotatedElement element = elements[i];
            if ( element.getElementName().equals( declarationName ) )
            {
                // For now, we can be sure that there's only one element in this array.
                assert element.getAnnotationArray().length == 1 : element.getAnnotationArray().length;
                ProcessedAnnotation pa = element.getAnnotationArray( 0 );
                return pa.getAnnotationName().equals( annotationTypeName ) ? pa : null;
            }
        }
       
        return null;
View Full Code Here


        pa.setTypeName( typeDecl.getQualifiedName() );
    }
   
    public void include( MemberDeclaration memberDecl, AnnotationInstance annotation )
    {
        AnnotatedElement element = _doc.getProcessedAnnotations().addNewAnnotatedElement();
        String name = memberDecl instanceof TypeDeclaration
                      ? ( ( TypeDeclaration ) memberDecl ).getQualifiedName()
                      : memberDecl.getSimpleName();
        element.setElementName( name );
        ProcessedAnnotation xmlAnnotation = element.addNewAnnotation();
        include( xmlAnnotation, annotation );
    }
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.compiler.schema.annotations.AnnotatedElement

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.