Property | Type | Description | |
---|---|---|---|
discardMask | antlr.collections.impl.BitSet | ||
index | int | ||
lastRewriteTokenIndexes | System.Collections.IDictionary | ||
programs | System.Collections.IDictionary | ||
stream | TokenStream | ||
tokens | System.Collections.IList |
Method | Description | |
---|---|---|
ToDebugString ( ) : string | ||
ToDebugString ( int start, int end ) : string | ||
ToOriginalString ( ) : string | ||
ToOriginalString ( int start, int end ) : string | ||
ToString ( ) : string | ||
ToString ( int start, int end ) : string | ||
ToString ( string programName ) : string | ||
ToString ( string programName, int start, int end ) : string | ||
TokenStreamRewriteEngine ( TokenStream upstream ) | ||
TokenStreamRewriteEngine ( TokenStream upstream, int initialSize ) | ||
delete ( IToken indexT ) : void | ||
delete ( IToken from, IToken to ) : void | ||
delete ( int index ) : void | ||
delete ( int from, int to ) : void | ||
delete ( string programName, IToken from, IToken to ) : void | ||
delete ( string programName, int from, int to ) : void | ||
deleteProgram ( ) : void | ||
deleteProgram ( string programName ) : void |
Reset the program so that no instructions exist
|
|
discard ( int ttype ) : void | ||
getLastRewriteTokenIndex ( ) : int | ||
getToken ( int i ) : |
||
getTokenStreamSize ( ) : int | ||
insertAfter ( IToken t, string text ) : void | ||
insertAfter ( int index, string text ) : void | ||
insertAfter ( string programName, IToken t, string text ) : void | ||
insertAfter ( string programName, int index, string text ) : void | ||
insertBefore ( IToken t, string text ) : void | ||
insertBefore ( int index, string text ) : void | ||
insertBefore ( string programName, IToken t, string text ) : void | ||
insertBefore ( string programName, int index, string text ) : void | ||
nextToken ( ) : IToken | ||
replace ( IToken from, IToken to, string text ) : void | ||
replace ( IToken indexT, string text ) : void | ||
replace ( int from, int to, string text ) : void | ||
replace ( int index, string text ) : void | ||
replace ( string programName, IToken from, IToken to, string text ) : void | ||
replace ( string programName, int from, int to, string text ) : void | ||
rollback ( int instructionIndex ) : void | ||
rollback ( string programName, int instructionIndex ) : void |
Rollback the instruction stream for a program so that the indicated instruction (via instructionIndex) is no longer in the stream. UNTESTED! |
Method | Description | |
---|---|---|
addToSortedRewriteList ( RewriteOperation op ) : void |
If op.index > lastRewriteTokenIndexes, just add to the end. Otherwise, do linear
|
|
addToSortedRewriteList ( string programName, RewriteOperation op ) : void | ||
getLastRewriteTokenIndex ( string programName ) : int | ||
getProgram ( string name ) : System.Collections.IList | ||
setLastRewriteTokenIndex ( string programName, int i ) : void |
Method | Description | |
---|---|---|
initializeProgram ( string name ) : System.Collections.IList |
public ToDebugString ( int start, int end ) : string | ||
start | int | |
end | int | |
return | string |
public ToOriginalString ( int start, int end ) : string | ||
start | int | |
end | int | |
return | string |
public ToString ( int start, int end ) : string | ||
start | int | |
end | int | |
return | string |
public ToString ( string programName ) : string | ||
programName | string | |
return | string |
public ToString ( string programName, int start, int end ) : string | ||
programName | string | |
start | int | |
end | int | |
return | string |
public TokenStreamRewriteEngine ( TokenStream upstream ) | ||
upstream | TokenStream |
public TokenStreamRewriteEngine ( TokenStream upstream, int initialSize ) | ||
upstream | TokenStream | |
initialSize | int |
protected addToSortedRewriteList ( RewriteOperation op ) : void | ||
op | RewriteOperation | |
return | void |
protected addToSortedRewriteList ( string programName, RewriteOperation op ) : void | ||
programName | string | |
op | RewriteOperation | |
return | void |
public delete ( IToken from, IToken to ) : void | ||
from | IToken | |
to | IToken | |
return | void |
public delete ( string programName, IToken from, IToken to ) : void | ||
programName | string | |
from | IToken | |
to | IToken | |
return | void |
public delete ( string programName, int from, int to ) : void | ||
programName | string | |
from | int | |
to | int | |
return | void |
public deleteProgram ( string programName ) : void | ||
programName | string | |
return | void |
protected getLastRewriteTokenIndex ( string programName ) : int | ||
programName | string | |
return | int |
protected getProgram ( string name ) : System.Collections.IList | ||
name | string | |
return | System.Collections.IList |
public insertAfter ( IToken t, string text ) : void | ||
t | IToken | |
text | string | |
return | void |
public insertAfter ( int index, string text ) : void | ||
index | int | |
text | string | |
return | void |
public insertAfter ( string programName, IToken t, string text ) : void | ||
programName | string | |
t | IToken | |
text | string | |
return | void |
public insertAfter ( string programName, int index, string text ) : void | ||
programName | string | |
index | int | |
text | string | |
return | void |
public insertBefore ( IToken t, string text ) : void | ||
t | IToken | |
text | string | |
return | void |
public insertBefore ( int index, string text ) : void | ||
index | int | |
text | string | |
return | void |
public insertBefore ( string programName, IToken t, string text ) : void | ||
programName | string | |
t | IToken | |
text | string | |
return | void |
public insertBefore ( string programName, int index, string text ) : void | ||
programName | string | |
index | int | |
text | string | |
return | void |
public replace ( IToken from, IToken to, string text ) : void | ||
from | IToken | |
to | IToken | |
text | string | |
return | void |
public replace ( IToken indexT, string text ) : void | ||
indexT | IToken | |
text | string | |
return | void |
public replace ( int from, int to, string text ) : void | ||
from | int | |
to | int | |
text | string | |
return | void |
public replace ( int index, string text ) : void | ||
index | int | |
text | string | |
return | void |
public replace ( string programName, IToken from, IToken to, string text ) : void | ||
programName | string | |
from | IToken | |
to | IToken | |
text | string | |
return | void |
public replace ( string programName, int from, int to, string text ) : void | ||
programName | string | |
from | int | |
to | int | |
text | string | |
return | void |
public rollback ( int instructionIndex ) : void | ||
instructionIndex | int | |
return | void |
public rollback ( string programName, int instructionIndex ) : void | ||
programName | string | |
instructionIndex | int | |
return | void |
protected setLastRewriteTokenIndex ( string programName, int i ) : void | ||
programName | string | |
i | int | |
return | void |
protected antlr.collections.impl.BitSet discardMask | ||
return | antlr.collections.impl.BitSet |
protected System.Collections.IDictionary lastRewriteTokenIndexes | ||
return | System.Collections.IDictionary |
protected System.Collections.IDictionary programs | ||
return | System.Collections.IDictionary |