Package org.apache.flex.compiler.problems

Examples of org.apache.flex.compiler.problems.CompilerProblemSeverity


       
        // Get the filtered problems and classify the problems as either errors or
        // warnings.
        for (ICompilerProblem problem : getFilteredProblemsUsingBaseFilter())
        {
            CompilerProblemSeverity severity = categorizer.getProblemSeverity(problem);
            if (severity == CompilerProblemSeverity.ERROR)
                errors.add(problem);
            else if (severity == CompilerProblemSeverity.WARNING)
                warnings.add(problem);
        }
View Full Code Here


    {
        CompilerProblemCategorizer categorizer = new CompilerProblemCategorizer(problemSettings);
       
        for (ICompilerProblem problem : getFilteredProblemsUsingBaseFilter())
        {
            CompilerProblemSeverity severity = categorizer.getProblemSeverity(problem);
            if (severity == CompilerProblemSeverity.ERROR)
                return true;
        }

        return false;
View Full Code Here

        private final CompilerProblemCategorizer categorizer;
       
        @Override
        public boolean accept(ICompilerProblem problem)
        {
            CompilerProblemSeverity severity = categorizer.getProblemSeverity(problem);
            if (severity == CompilerProblemSeverity.ERROR ||
                severity == CompilerProblemSeverity.WARNING)
            {
                return true;
            }
View Full Code Here

     * @param problem the problem whose formatter we want
     * @return an "sprints format string", like "Error: %s"
     */
    private String getProblemFormat(ICompilerProblem problem)
    {
        CompilerProblemSeverity severity = problemCategorizer.getProblemSeverity(problem);
        CompilerProblemClassification classification = problemCategorizer.getProblemClassification(problem);
       
        String formatString=null;
        if (classification == CompilerProblemClassification.DEFAULT)
        {
View Full Code Here

    public CompilerProblemSeverity getProblemSeverity(ICompilerProblem problem)
    {
        if (problem == null)
            throw new NullPointerException("problem may not be null");
       
        CompilerProblemSeverity severity = null;
        Class<?> problemClass = problem.getClass();
       
        if (userSeverity != null)
        {
            while (problemClass != null)
View Full Code Here

            Annotation[] annotations = aClass.getAnnotations();

            for(Annotation annotation : annotations){
                if(annotation instanceof DefaultSeverity){
                    DefaultSeverity myAnnotation = (DefaultSeverity) annotation;
                    CompilerProblemSeverity cps = myAnnotation.value();
                    String level;
                    if (cps.equals(CompilerProblemSeverity.ERROR))
                        level = Message.ERROR;
                    else if (cps.equals(CompilerProblemSeverity.WARNING))
                        level = Message.WARNING;
                    else
                        break; // skip if IGNORE?
                    CompilerMessage msg = new CompilerMessage(level,
                                                    prob.getSourcePath(),
View Full Code Here

            Annotation[] annotations = aClass.getAnnotations();

            for(Annotation annotation : annotations){
                if(annotation instanceof DefaultSeverity){
                    DefaultSeverity myAnnotation = (DefaultSeverity) annotation;
                    CompilerProblemSeverity cps = myAnnotation.value();
                    String level;
                    if (cps.equals(CompilerProblemSeverity.ERROR))
                        level = Message.ERROR;
                    else if (cps.equals(CompilerProblemSeverity.WARNING))
                        level = Message.WARNING;
                    else
                        break; // skip if IGNORE?
                    CompilerMessage msg = new CompilerMessage(level,
                                                    prob.getSourcePath(),
View Full Code Here

            Annotation[] annotations = aClass.getAnnotations();

            for(Annotation annotation : annotations){
                if(annotation instanceof DefaultSeverity){
                    DefaultSeverity myAnnotation = (DefaultSeverity) annotation;
                    CompilerProblemSeverity cps = myAnnotation.value();
                    String level;
                    if (cps.equals(CompilerProblemSeverity.ERROR))
                        level = Message.ERROR;
                    else if (cps.equals(CompilerProblemSeverity.WARNING))
                        level = Message.WARNING;
                    else
                        break; // skip if IGNORE?
                    CompilerMessage msg = new CompilerMessage(level,
                                                    prob.getSourcePath(),
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.problems.CompilerProblemSeverity

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.