Package org.apache.commons.jci.compilers
Class EclipseCompilationProblem
- java.lang.Object
-
- org.apache.commons.jci.compilers.EclipseCompilationProblem
-
- All Implemented Interfaces:
CompilationProblem
public final class EclipseCompilationProblem extends java.lang.Object implements CompilationProblem
Wrapping an Eclipse compiler problem
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.jdt.core.compiler.IProblemproblem
-
Constructor Summary
Constructors Constructor Description EclipseCompilationProblem(org.eclipse.jdt.core.compiler.IProblem pProblem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEndColumn()intgetEndLine()position of where the problem stops in the source codejava.lang.StringgetFileName()name of the file where the problem occurredintgetId()java.lang.StringgetMessage()the description of the problemintgetStartColumn()intgetStartLine()position of where the problem starts in the source codebooleanisError()is the problem an error and compilation cannot continue or just a warning and compilation can proceedjava.lang.StringtoString()
-
-
-
Method Detail
-
isError
public boolean isError()
Description copied from interface:CompilationProblemis the problem an error and compilation cannot continue or just a warning and compilation can proceed- Specified by:
isErrorin interfaceCompilationProblem- Returns:
- true if the problem is an error
-
getFileName
public java.lang.String getFileName()
Description copied from interface:CompilationProblemname of the file where the problem occurred- Specified by:
getFileNamein interfaceCompilationProblem- Returns:
- name of the file where the problem occurred
-
getStartLine
public int getStartLine()
Description copied from interface:CompilationProblemposition of where the problem starts in the source code- Specified by:
getStartLinein interfaceCompilationProblem- Returns:
- position of where the problem starts in the source code
-
getStartColumn
public int getStartColumn()
- Specified by:
getStartColumnin interfaceCompilationProblem
-
getEndLine
public int getEndLine()
Description copied from interface:CompilationProblemposition of where the problem stops in the source code- Specified by:
getEndLinein interfaceCompilationProblem- Returns:
- position of where the problem stops in the source code
-
getEndColumn
public int getEndColumn()
- Specified by:
getEndColumnin interfaceCompilationProblem
-
getMessage
public java.lang.String getMessage()
Description copied from interface:CompilationProblemthe description of the problem- Specified by:
getMessagein interfaceCompilationProblem- Returns:
- the description of the problem
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getId
public int getId()
-
-