Top Description Fields Constructors Methods
org.antlr.tool

public Class Strip

extends Object
Class Inheritance
Imports
org.antlr.grammar.v3.ANTLRv3Lexer, .ANTLRv3Parser, org.antlr.runtime.*, org.antlr.runtime.tree.CommonTree, .TreeAdaptor, .TreeWizard, java.util.List

A basic action stripper.

Field Summary

Modifier and TypeField and Description
protected String[]
protected String
protected TokenRewriteStream
protected boolean

Constructor Summary

AccessConstructor and Description
public
Strip(String[] args)

Method Summary

Modifier and TypeMethod and Description
public static void
public TokenRewriteStream
private static void
help()

private static void
public static void
main(String[] args)

public void
public void
public void
rewrite(TreeAdaptor adaptor, CommonTree t, String[] tokenNames)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

argsback to summary
protected String[] args
filenameback to summary
protected String filename
tokensback to summary
protected TokenRewriteStream tokens
tree_optionback to summary
protected boolean tree_option

Constructor Detail

Stripback to summary
public Strip(String[] args)

Method Detail

ACTIONback to summary
public static void ACTION(TokenRewriteStream tokens, CommonTree t)
getTokenStreamback to summary
public TokenRewriteStream getTokenStream()
helpback to summary
private static void help()
killTrailingNewlineback to summary
private static void killTrailingNewline(TokenRewriteStream tokens, int index)
mainback to summary
public static void main(String[] args) throws Exception
parseAndRewriteback to summary
public void parseAndRewrite() throws Exception
processArgsback to summary
public void processArgs(String[] args)
rewriteback to summary
public void rewrite(TreeAdaptor adaptor, CommonTree t, String[] tokenNames) throws Exception