Groovy 2.2.0

groovy.inspect.swingui
[Groovy] Class AstBrowser

java.lang.Object
  groovy.inspect.swingui.AstBrowser

class AstBrowser

This object is a GUI for looking at the AST that Groovy generates. Usage: java groovy.inspect.swingui.AstBrowser [filename] where [filename] is an existing Groovy script.

Authors:
Hamlet D'Arcy (hamletdrc@gmail.com)
Guillaume Laforge, highlighting the code corresponding to a node selected in the tree view
Roshan Dawrani - separated out the swing UI related code from the model part so model could be used for various UIs


Property Summary
GeneratedBytecodeAwareGroovyClassLoader classLoader

def frame

def prefs

boolean showClosureClasses

boolean showScriptClass

boolean showScriptFreeForm

boolean showTreeView

SwingBuilder swing

 
Constructor Summary
AstBrowser(def inputArea, def rootElement, def classLoader)

 
Method Summary
void compile(def jTree, String script, int compilePhase)

void decompile(def phaseId, def source)

void largerFont(EventObject evt = null)

static void main(def args)

void run(Closure script)

void run(Closure script, String name)

void showAbout(EventObject evt)

void showClosureClasses(EventObject evt)

void showScriptClass(EventObject evt)

void showScriptFreeForm(EventObject evt)

void showTreeView(EventObject evt = null)

void smallerFont(EventObject evt = null)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

classLoader

GeneratedBytecodeAwareGroovyClassLoader classLoader


frame

def frame


prefs

def prefs


showClosureClasses

boolean showClosureClasses


showScriptClass

boolean showScriptClass


showScriptFreeForm

boolean showScriptFreeForm


showTreeView

boolean showTreeView


swing

SwingBuilder swing


 
Constructor Detail

AstBrowser

AstBrowser(def inputArea, def rootElement, def classLoader)


 
Method Detail

compile

void compile(def jTree, String script, int compilePhase)


decompile

void decompile(def phaseId, def source)


largerFont

void largerFont(EventObject evt = null)


main

static void main(def args)


run

void run(Closure script)


run

void run(Closure script, String name)


showAbout

void showAbout(EventObject evt)


showClosureClasses

void showClosureClasses(EventObject evt)


showScriptClass

void showScriptClass(EventObject evt)


showScriptFreeForm

void showScriptFreeForm(EventObject evt)


showTreeView

void showTreeView(EventObject evt = null)


smallerFont

void smallerFont(EventObject evt = null)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.