org.stringtemplate.v4.gui
Class STViz

java.lang.Object
  extended by org.stringtemplate.v4.gui.STViz

public class STViz
extends java.lang.Object


Field Summary
 java.util.List<InterpEvent> allEvents
           
 DebugST currentST
           
 ErrorManager errMgr
           
 java.util.List<STMessage> errors
           
 Interpreter interp
           
 JTreeSTModel tmodel
           
 
Constructor Summary
STViz(ErrorManager errMgr, DebugST root, java.lang.String output, Interpreter interp, java.util.List<java.lang.String> trace, java.util.List<STMessage> errors)
           
 
Method Summary
 InterpEvent findEventAtOutputLocation(java.util.List<InterpEvent> events, int charIndex)
           
protected  void highlight(javax.swing.text.JTextComponent comp, int i, int j)
           
static void main(java.lang.String[] args)
           
static void test1()
           
static void test2()
           
static void test3()
           
protected  void updateAttributes(DebugST st, STViewFrame m)
           
protected  void updateStack(DebugST st, STViewFrame m)
           
static void writeFile(java.lang.String dir, java.lang.String fileName, java.lang.String content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentST

public DebugST currentST

allEvents

public java.util.List<InterpEvent> allEvents

tmodel

public JTreeSTModel tmodel

errors

public java.util.List<STMessage> errors

errMgr

public ErrorManager errMgr

interp

public Interpreter interp
Constructor Detail

STViz

public STViz(ErrorManager errMgr,
             DebugST root,
             java.lang.String output,
             Interpreter interp,
             java.util.List<java.lang.String> trace,
             java.util.List<STMessage> errors)
Method Detail

highlight

protected void highlight(javax.swing.text.JTextComponent comp,
                         int i,
                         int j)

updateAttributes

protected void updateAttributes(DebugST st,
                                STViewFrame m)

updateStack

protected void updateStack(DebugST st,
                           STViewFrame m)

findEventAtOutputLocation

public InterpEvent findEventAtOutputLocation(java.util.List<InterpEvent> events,
                                             int charIndex)

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException

test1

public static void test1()
                  throws java.io.IOException
Throws:
java.io.IOException

test2

public static void test2()
                  throws java.io.IOException
Throws:
java.io.IOException

test3

public static void test3()
                  throws java.io.IOException
Throws:
java.io.IOException

writeFile

public static void writeFile(java.lang.String dir,
                             java.lang.String fileName,
                             java.lang.String content)


Copyright © 2011. All Rights Reserved.