Package org.jboss.forge.roaster.model
Interface SyntaxError
-
public interface SyntaxErrorDescribes a syntax problem in aJavaClass.- Author:
- Lincoln Baxter, III
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetColumn()Get the 0 based column number for the error start whenever it's possible to calculate it, or < 0 when the column is unknown.java.lang.StringgetDescription()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.booleanisWarning()True if the syntax error is a warning, false in any other case.
-
-
-
Method Detail
-
getDescription
java.lang.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:
-
-