프로퍼티 | 타입 | 설명 | |
---|---|---|---|
discardMask | antlr.collections.impl.BitSet | ||
index | int | ||
lastRewriteTokenIndexes | System.Collections.IDictionary | ||
programs | System.Collections.IDictionary | ||
stream | TokenStream | ||
tokens | System.Collections.IList |
메소드 | 설명 | |
---|---|---|
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! |
메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
initializeProgram ( string name ) : System.Collections.IList |
public ToDebugString ( int start, int end ) : string | ||
start | int | |
end | int | |
리턴 | string |
public ToOriginalString ( int start, int end ) : string | ||
start | int | |
end | int | |
리턴 | string |
public ToString ( string programName, int start, int end ) : string | ||
programName | string | |
start | int | |
end | int | |
리턴 | string |
public TokenStreamRewriteEngine ( TokenStream upstream ) | ||
upstream | TokenStream |
public TokenStreamRewriteEngine ( TokenStream upstream, int initialSize ) | ||
upstream | TokenStream | |
initialSize | int |
protected addToSortedRewriteList ( RewriteOperation op ) : void | ||
op | RewriteOperation | |
리턴 | void |
protected addToSortedRewriteList ( string programName, RewriteOperation op ) : void | ||
programName | string | |
op | RewriteOperation | |
리턴 | void |
public delete ( string programName, IToken from, IToken to ) : void | ||
programName | string | |
from | IToken | |
to | IToken | |
리턴 | void |
public delete ( string programName, int from, int to ) : void | ||
programName | string | |
from | int | |
to | int | |
리턴 | void |
public deleteProgram ( string programName ) : void | ||
programName | string | |
리턴 | void |
protected getLastRewriteTokenIndex ( string programName ) : int | ||
programName | string | |
리턴 | int |
protected getProgram ( string name ) : System.Collections.IList | ||
name | string | |
리턴 | System.Collections.IList |
public insertAfter ( IToken t, string text ) : void | ||
t | IToken | |
text | string | |
리턴 | void |
public insertAfter ( int index, string text ) : void | ||
index | int | |
text | string | |
리턴 | void |
public insertAfter ( string programName, IToken t, string text ) : void | ||
programName | string | |
t | IToken | |
text | string | |
리턴 | void |
public insertAfter ( string programName, int index, string text ) : void | ||
programName | string | |
index | int | |
text | string | |
리턴 | void |
public insertBefore ( IToken t, string text ) : void | ||
t | IToken | |
text | string | |
리턴 | void |
public insertBefore ( int index, string text ) : void | ||
index | int | |
text | string | |
리턴 | void |
public insertBefore ( string programName, IToken t, string text ) : void | ||
programName | string | |
t | IToken | |
text | string | |
리턴 | void |
public insertBefore ( string programName, int index, string text ) : void | ||
programName | string | |
index | int | |
text | string | |
리턴 | void |
public replace ( IToken from, IToken to, string text ) : void | ||
from | IToken | |
to | IToken | |
text | string | |
리턴 | void |
public replace ( IToken indexT, string text ) : void | ||
indexT | IToken | |
text | string | |
리턴 | void |
public replace ( int from, int to, string text ) : void | ||
from | int | |
to | int | |
text | string | |
리턴 | void |
public replace ( string programName, IToken from, IToken to, string text ) : void | ||
programName | string | |
from | IToken | |
to | IToken | |
text | string | |
리턴 | void |
public replace ( string programName, int from, int to, string text ) : void | ||
programName | string | |
from | int | |
to | int | |
text | string | |
리턴 | void |
public rollback ( string programName, int instructionIndex ) : void | ||
programName | string | |
instructionIndex | int | |
리턴 | void |
protected setLastRewriteTokenIndex ( string programName, int i ) : void | ||
programName | string | |
i | int | |
리턴 | void |
protected antlr.collections.impl.BitSet discardMask | ||
리턴 | antlr.collections.impl.BitSet |
protected System.Collections.IDictionary lastRewriteTokenIndexes | ||
리턴 | System.Collections.IDictionary |
protected System.Collections.IDictionary programs | ||
리턴 | System.Collections.IDictionary |