Package xjavadoc

Examples of xjavadoc.XConstructor


                array[j++] = WrapperFactory.get().getConstructorDeclaration( ( XConstructor ) i.next() );
            }
           
            if ( array.length == 0 )
            {
                XConstructor ctor = new DefaultConstructor( getDelegateXClass() );
                ConstructorDeclaration decl = WrapperFactory.get().getConstructorDeclaration( ctor );
                _constructors = new ConstructorDeclaration[]{ decl };
            }
            else
            {
View Full Code Here


            }

            parameters = DocletUtil.tokenizeDelimitedToArray(parametersStr, delimiter);
        }

        XConstructor oldConstructor = getCurrentConstructor();

        if (hasConstructor(getCurrentClass(), constructorName, parameters, true)) {
            generate(template);
        }
View Full Code Here

        }

        Iterator constructorIterator = constructors.iterator();

        while (constructorIterator.hasNext()) {
            XConstructor current = (XConstructor) constructorIterator.next();

            setCurrentClass(current.getContainingClass());
            setCurrentConstructor(current);

            generate(template);
        }
    }
View Full Code Here

     * @exception XDocletException  Description of Exception
     * @doc.tag                     type="block"
     */
    public void executeAndRestoreConstructor(String template, Properties attributes) throws XDocletException
    {
        XConstructor constructor = getCurrentConstructor();

        generate(template);
        setCurrentConstructor(constructor);
    }
View Full Code Here

               
                pw.println ("    private void initConstructorAttributes () {");
                pw.println ("        java.util.Set attrs = null;");
                pw.println ("        java.util.List bundle = null;");
                for (Iterator iter = xClass.getConstructors ().iterator (); iter.hasNext ();) {
                    XConstructor member = (XConstructor) iter.next ();
                    if (member.getDoc ().getTags ().size () > 0) {
                        StringBuffer sb = new StringBuffer ();
                        sb.append ("(");
                        sb.append (getParameterTypes (member.getParameters ()));
                        sb.append (")");
                        String key = sb.toString ();
                       
                        pw.println ("        bundle = new java.util.ArrayList ();");
                        pw.println ("        attrs = new java.util.HashSet ();");
                        addExpressions (member.getDoc ().getTags (), null, pw, "attrs", sourceFile);
                        pw.println ("        bundle.add (attrs);");
                        pw.println ("        attrs = null;");
                       
                        for (Iterator parameters = member.getParameters ().iterator (); parameters.hasNext ();) {
                            XParameter parameter = (XParameter) parameters.next ();
                            pw.println ("        attrs = new java.util.HashSet ();");
                            addExpressions (member.getDoc ().getTags (), parameter.getName (), pw, "attrs", sourceFile);
                            pw.println ("        bundle.add (attrs);");
                            pw.println ("        attrs = null;");
                        }
                       
                        pw.println ("        constructorAttributes.put (\"" + key + "\", bundle);");
View Full Code Here

TOP

Related Classes of xjavadoc.XConstructor

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.