Examples of CodeMetaclass


Examples of net.sf.jcontracts.codeparser.CodeMetaclass

            }
        }

        if (annotations.size() > 0)
        {
            CodeMetaclass cmc = (CodeMetaclass) annotations.elementAt(0);
            PrintWriter output_file = null;
            try
            {
                FileReader input_file = new FileReader(cmc.getFilename());
                try
                {
                    BufferedReader bufferedIs = new BufferedReader(input_file);
                    try
                    {
                        if (outputOption == null)
                        {
                            // TODO: close writers properly
                            output_file = new PrintWriter(System.out);
                        }
                        else
                        {
                            if (!outputOption.hasParameter())
                            {
                                throw new RuntimeException(
                                        "Java Contract Suite: ERROR: output option (-o) requires filename (e.g. -oFile.java).");
                            }
                            String fon = "";
                            if (cmc instanceof TypeMetaclass)
                            {
                                String p = ((TypeMetaclass) cmc).getPackageName();
                                fon = outputOption.getOutputFileName(cmc.getFilename(), p);
                            }
                            if (!fileList.contains(fon))
                            {
                                fileList.addElement(fon);
                            }
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.