Package org.jboss.forge.roaster
Class Problem
java.lang.Object
org.jboss.forge.roaster.Problem
During the parsing of code, problems can occur which can be wrapped inside a object with this class.
- Author:
- George Gastaldi
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Problem
Constructs a newProblemwith the given attributes.- Parameters:
message- the message of this problem in a human readable formsourceStart- the start position of the problemsourceEnd- the end position of the problemsourceLineNumber- the source line number of the start of the problem
-
-
Method Details
-
getMessage
Returns the message of this problem.- Returns:
- the message
-
getSourceStart
public int getSourceStart()Returns the start position of this problem or -1 if unknown.- Returns:
- the start position
-
getSourceEnd
public int getSourceEnd()Returns the end position of this problem or -1 if unknown.- Returns:
- the end position
-
getSourceLineNumber
public int getSourceLineNumber()Returns the source line number of the start of the problem.- Returns:
- the source line number
-
hashCode
public int hashCode() -
equals
-
toString
-