Class LexerFrame

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

@Deprecated
public class LexerFrame
extends JFrame
implements ActionListener
Deprecated.
LexerFrame instead
Swing application to graphically display the tokens produced by the lexer.
See Also:
Serialized Form
  • Constructor Details

    • LexerFrame

      public LexerFrame​(Class lexerClass, Class tokenTypesClass)
      Deprecated.
      Constructor used when invoking as a standalone application
      Parameters:
      lexerClass - the lexer class to use
      tokenTypesClass - the lexer token types class
    • LexerFrame

      public LexerFrame​(Class lexerClass, Class tokenTypesClass, Reader reader)
      Deprecated.
      Constructor used when invoking for a specific file
      Parameters:
      lexerClass - the lexer class to use
      tokenTypesClass - the lexer token types class
  • Method Details

    • groovyScriptFactory

      public static LexerFrame groovyScriptFactory​(String scriptText)
      Deprecated.
      Creates a Groovy language LexerFrame for the given script text
      Parameters:
      scriptText - the Groovy source file to parse/render
      Returns:
      the new frame rending the parsed tokens
    • actionPerformed

      public void actionPerformed​(ActionEvent ae)
      Deprecated.
      Specified by:
      actionPerformed in interface ActionListener
    • main

      public static void main​(String[] args) throws Exception
      Deprecated.
      Throws:
      Exception