Top Fields Constructors Methods
org.stringtemplate.v4.misc

public Class ErrorManager

extends Object
Class Inheritance
Imports
org.antlr.runtime.CharStream, .RecognitionException, .Token, org.stringtemplate.v4.InstanceScope, .Interpreter, .ST, .STErrorListener

Field Summary

Modifier and TypeField and Description
public static STErrorListener
public final STErrorListener

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
compileTimeError(ErrorType error, Token templateToken, Token t)

public void
compileTimeError(ErrorType error, Token templateToken, Token t, Object arg)

public void
compileTimeError(ErrorType error, Token templateToken, Token t, Object arg, Object arg2)

public void
public void
public void
public void
IOError(ST self, ErrorType error, Throwable e)

public void
IOError(ST self, ErrorType error, Throwable e, Object arg)

public void
lexerError(String srcName, String msg, Token templateToken, RecognitionException e)

public void
public void
public void
public void
runTimeError(Interpreter interp, InstanceScope scope, ErrorType error, Object arg, Object arg2)

public void
runTimeError(Interpreter interp, InstanceScope scope, ErrorType error, Object arg, Object arg2, Object arg3)

private String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_ERROR_LISTENERback to summary
public static STErrorListener DEFAULT_ERROR_LISTENER
listenerback to summary
public final STErrorListener listener

Constructor Detail

ErrorManagerback to summary
public ErrorManager()
ErrorManagerback to summary
public ErrorManager(STErrorListener listener)

Method Detail

compileTimeErrorback to summary
public void compileTimeError(ErrorType error, Token templateToken, Token t)
compileTimeErrorback to summary
public void compileTimeError(ErrorType error, Token templateToken, Token t, Object arg)
compileTimeErrorback to summary
public void compileTimeError(ErrorType error, Token templateToken, Token t, Object arg, Object arg2)
groupLexerErrorback to summary
public void groupLexerError(ErrorType error, String srcName, RecognitionException e, String msg)
groupSyntaxErrorback to summary
public void groupSyntaxError(ErrorType error, String srcName, RecognitionException e, String msg)
internalErrorback to summary
public void internalError(ST self, String msg, Throwable e)
IOErrorback to summary
public void IOError(ST self, ErrorType error, Throwable e)
IOErrorback to summary
public void IOError(ST self, ErrorType error, Throwable e, Object arg)
lexerErrorback to summary
public void lexerError(String srcName, String msg, Token templateToken, RecognitionException e)
runTimeErrorback to summary
public void runTimeError(Interpreter interp, InstanceScope scope, ErrorType error)
runTimeErrorback to summary
public void runTimeError(Interpreter interp, InstanceScope scope, ErrorType error, Object arg)
runTimeErrorback to summary
public void runTimeError(Interpreter interp, InstanceScope scope, ErrorType error, Throwable e, Object arg)
runTimeErrorback to summary
public void runTimeError(Interpreter interp, InstanceScope scope, ErrorType error, Object arg, Object arg2)
runTimeErrorback to summary
public void runTimeError(Interpreter interp, InstanceScope scope, ErrorType error, Object arg, Object arg2, Object arg3)
sourceNameback to summary
private String sourceName(Token t)