Package org.apache.commons.jci.compilers
Class GroovyCompilationProblem
- java.lang.Object
-
- org.apache.commons.jci.compilers.GroovyCompilationProblem
-
- All Implemented Interfaces:
CompilationProblem
public final class GroovyCompilationProblem extends java.lang.Object implements CompilationProblem
Groovy version of a CompilationProblem- Author:
- tcurdt
-
-
Constructor Summary
Constructors Constructor Description GroovyCompilationProblem(org.codehaus.groovy.control.messages.Message pMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getEndColumn()
int
getEndLine()
position of where the problem stops in the source codejava.lang.String
getFileName()
name of the file where the problem occurredjava.lang.String
getMessage()
the description of the problemint
getStartColumn()
int
getStartLine()
position of where the problem starts in the source codeboolean
isError()
is the problem an error and compilation cannot continue or just a warning and compilation can proceedjava.lang.String
toString()
-
-
-
Method Detail
-
isError
public boolean isError()
Description copied from interface:CompilationProblem
is the problem an error and compilation cannot continue or just a warning and compilation can proceed- Specified by:
isError
in interfaceCompilationProblem
- Returns:
- true if the problem is an error
-
getFileName
public java.lang.String getFileName()
Description copied from interface:CompilationProblem
name of the file where the problem occurred- Specified by:
getFileName
in interfaceCompilationProblem
- Returns:
- name of the file where the problem occurred
-
getStartLine
public int getStartLine()
Description copied from interface:CompilationProblem
position of where the problem starts in the source code- Specified by:
getStartLine
in interfaceCompilationProblem
- Returns:
- position of where the problem starts in the source code
-
getStartColumn
public int getStartColumn()
- Specified by:
getStartColumn
in interfaceCompilationProblem
-
getEndLine
public int getEndLine()
Description copied from interface:CompilationProblem
position of where the problem stops in the source code- Specified by:
getEndLine
in interfaceCompilationProblem
- Returns:
- position of where the problem stops in the source code
-
getEndColumn
public int getEndColumn()
- Specified by:
getEndColumn
in interfaceCompilationProblem
-
getMessage
public java.lang.String getMessage()
Description copied from interface:CompilationProblem
the description of the problem- Specified by:
getMessage
in interfaceCompilationProblem
- Returns:
- the description of the problem
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-