Package org.jboss.forge.roaster.model
Interface SyntaxError
public interface SyntaxError
Describes a syntax problem in a
JavaClass.- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionintGet the 0 based column number for the error start whenever it's possible to calculate it, or < 0 when the column is unknown.Get a textual description of the type of problem encountered.intgetLine()Gets the 1 based line number for the syntax error whenever it's possible to calculate it, or < 0 when the line is unknown.booleanisError()True if the syntax error is an error, false in any other case.booleanTrue if the syntax error is a warning, false in any other case.
-
Method Details
-
getDescription
String getDescription()Get a textual description of the type of problem encountered. -
getLine
int getLine()Gets the 1 based line number for the syntax error whenever it's possible to calculate it, or < 0 when the line is unknown. -
getColumn
int getColumn()Get the 0 based column number for the error start whenever it's possible to calculate it, or < 0 when the column is unknown. -
isError
boolean isError()True if the syntax error is an error, false in any other case. (see isWarning())- Returns:
-
isWarning
boolean isWarning()True if the syntax error is a warning, false in any other case. (see isError())- Returns:
-