org.apache.commons.jci.problems
Interface CompilationProblem

All Known Implementing Classes:
EclipseCompilationProblem, GroovyCompilationProblem, JaninoCompilationProblem, RhinoCompilationProblem

public interface CompilationProblem

An abstract definition of a compilation problem

Author:
tcurdt

Method Summary
 int getEndColumn()
           
 int getEndLine()
          position of where the problem stops in the source code
 String getFileName()
          name of the file where the problem occurred
 String getMessage()
          the description of the problem
 int getStartColumn()
           
 int getStartLine()
          position of where the problem starts in the source code
 boolean isError()
          is the problem an error and compilation cannot continue or just a warning and compilation can proceed
 

Method Detail

isError

boolean isError()
is the problem an error and compilation cannot continue or just a warning and compilation can proceed

Returns:
true if the problem is an error

getFileName

String getFileName()
name of the file where the problem occurred

Returns:
name of the file where the problem occurred

getStartLine

int getStartLine()
position of where the problem starts in the source code

Returns:
position of where the problem starts in the source code

getStartColumn

int getStartColumn()

getEndLine

int getEndLine()
position of where the problem stops in the source code

Returns:
position of where the problem stops in the source code

getEndColumn

int getEndColumn()

getMessage

String getMessage()
the description of the problem

Returns:
the description of the problem


Copyright © 2004–2013 The Apache Software Foundation. All rights reserved.