org.stringtemplate.v4.misc
Class STRuntimeMessage

java.lang.Object
  extended by org.stringtemplate.v4.misc.STMessage
      extended by org.stringtemplate.v4.misc.STRuntimeMessage

public class STRuntimeMessage
extends STMessage

Used to track errors that occur in the ST interpreter.


Field Summary
 int ip
          Where error occurred in bytecode memory
 
Fields inherited from class org.stringtemplate.v4.misc.STMessage
arg, arg2, arg3, cause, error, self
 
Constructor Summary
STRuntimeMessage(ErrorType error, int ip)
           
STRuntimeMessage(ErrorType error, int ip, ST self)
           
STRuntimeMessage(ErrorType error, int ip, ST self, java.lang.Object arg)
           
STRuntimeMessage(ErrorType error, int ip, ST self, java.lang.Throwable e, java.lang.Object arg)
           
STRuntimeMessage(ErrorType error, int ip, ST self, java.lang.Throwable e, java.lang.Object arg, java.lang.Object arg2)
           
STRuntimeMessage(ErrorType error, int ip, ST self, java.lang.Throwable e, java.lang.Object arg, java.lang.Object arg2, java.lang.Object arg3)
           
 
Method Summary
 java.lang.String getSourceLocation()
          Given an ip (code location), get it's range in source template then return it's template line:col.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ip

public int ip
Where error occurred in bytecode memory

Constructor Detail

STRuntimeMessage

public STRuntimeMessage(ErrorType error,
                        int ip)

STRuntimeMessage

public STRuntimeMessage(ErrorType error,
                        int ip,
                        ST self)

STRuntimeMessage

public STRuntimeMessage(ErrorType error,
                        int ip,
                        ST self,
                        java.lang.Object arg)

STRuntimeMessage

public STRuntimeMessage(ErrorType error,
                        int ip,
                        ST self,
                        java.lang.Throwable e,
                        java.lang.Object arg)

STRuntimeMessage

public STRuntimeMessage(ErrorType error,
                        int ip,
                        ST self,
                        java.lang.Throwable e,
                        java.lang.Object arg,
                        java.lang.Object arg2)

STRuntimeMessage

public STRuntimeMessage(ErrorType error,
                        int ip,
                        ST self,
                        java.lang.Throwable e,
                        java.lang.Object arg,
                        java.lang.Object arg2,
                        java.lang.Object arg3)
Method Detail

getSourceLocation

public java.lang.String getSourceLocation()
Given an ip (code location), get it's range in source template then return it's template line:col.


toString

public java.lang.String toString()
Overrides:
toString in class STMessage


Copyright © 2011. All Rights Reserved.