Examples of XDoc


Examples of xjavadoc.XDoc

    public Declaration[] getDeclarationsAnnotatedWith( AnnotationTypeDeclaration decl )
    {
        //
        // Note: for now we only examine the single public source class for any of the given annotations.
        //
        XDoc doc = _sourceClass.getDoc();
       
        if ( doc != null )
        {
            assert decl instanceof AnnotationTypeDeclarationImpl : decl.getClass().getName();
            if ( doc.getTag( ( ( AnnotationTypeDeclarationImpl ) decl ).getIntermediateName() ) != null )
            {
                return new Declaration[]{ WrapperFactory.get().getTypeDeclaration( _sourceClass ) };
            }
        }
       
View Full Code Here

Examples of xjavadoc.XDoc

     * @param element the element (class, method, etc.) to examine
     * @return an ArrayList of AnnotationInstances.
     */
    private static ArrayList getAnnotations( XProgramElement element )
    {
        XDoc doc = element.getDoc();
        ArrayList annotations = new ArrayList();
        List tags = doc != null ? doc.getTags() : null;
        ArrayList parentAnnotations = new ArrayList()// hierarchy of parent annotations, e.g., Action -> Forward -> ...
       
        if ( tags == null ) return annotations;
       
        for ( Iterator i = tags.iterator(); i.hasNext(); )
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.