[Java] Interface SyntaxErrorReportable

public interface SyntaxErrorReportable

A SyntaxErrorReportable is a recognizer that can report syntax error

Methods Summary

Methods
Type Params Return Type Name and description
public PositionInfo genPositionInfo(int offset)
public PositionInfo genPositionInfo(Tuple2<Integer, Integer> offset)
public int getErrorColumn()
public int getErrorLine()
public int getSyntaxErrorSource()
public void require(boolean condition, String msg, int offset, boolean toAttachPositionInfo)
public void require(boolean condition, String msg, Tuple2<Integer, Integer> offset, boolean toAttachPositionInfo)
public void require(boolean condition, String msg, boolean toAttachPositionInfo)
public void require(boolean condition, String msg, int offset)
public void require(boolean condition, String msg, Tuple2<Integer, Integer> offset)
public void require(boolean condition, String msg)
public void throwSyntaxError(String msg, int offset, boolean toAttachPositionInfo)
public void throwSyntaxError(String msg, Tuple2<Integer, Integer> offset, boolean toAttachPositionInfo)

Method Detail

public PositionInfo genPositionInfo(int offset)

public PositionInfo genPositionInfo(Tuple2<Integer, Integer> offset)

public int getErrorColumn()

public int getErrorLine()

public int getSyntaxErrorSource()

public void require(boolean condition, String msg, int offset, boolean toAttachPositionInfo)

public void require(boolean condition, String msg, Tuple2<Integer, Integer> offset, boolean toAttachPositionInfo)

public void require(boolean condition, String msg, boolean toAttachPositionInfo)

public void require(boolean condition, String msg, int offset)

public void require(boolean condition, String msg, Tuple2<Integer, Integer> offset)

public void require(boolean condition, String msg)

public void throwSyntaxError(String msg, int offset, boolean toAttachPositionInfo)

public void throwSyntaxError(String msg, Tuple2<Integer, Integer> offset, boolean toAttachPositionInfo)

© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/apache/groovy/parser/antlr4/SyntaxErrorReportable.html