antlr

Class TokenStreamRewriteEngine.RewriteOperation

static class TokenStreamRewriteEngine.RewriteOperation extends Object

Field Summary
protected intindex
protected Stringtext
Constructor Summary
protected RewriteOperation(int index, String text)
Method Summary
intexecute(StringBuffer buf)
Execute the rewrite operation by possibly adding to the buffer.
StringtoString()

Field Detail

index

protected int index

text

protected String text

Constructor Detail

RewriteOperation

protected RewriteOperation(int index, String text)

Method Detail

execute

public int execute(StringBuffer buf)
Execute the rewrite operation by possibly adding to the buffer. Return the index of the next token to operate on.

toString

public String toString()