HomeJar File DownloadabcdefghijklmnopqrstuvwxyzDownload antlr-runtime-4.0.jar : antlr«a«Jar File DownloadJar File DownloadaantlrDownload antlr-runtime-4.0.jar Files contained in antlr-runtime-4.0.jar: META-INF/MANIFEST.MF META-INF/maven/org.antlr/antlr4-runtime/pom.properties META-INF/maven/org.antlr/antlr4-runtime/pom.xml org.antlr.v4.runtime.ANTLRErrorListener.class org.antlr.v4.runtime.ANTLRErrorStrategy.class org.antlr.v4.runtime.ANTLRFileStream.class org.antlr.v4.runtime.ANTLRInputStream.class org.antlr.v4.runtime.BailErrorStrategy.class org.antlr.v4.runtime.BaseErrorListener.class org.antlr.v4.runtime.BufferedTokenStream.class org.antlr.v4.runtime.CharStream.class org.antlr.v4.runtime.CommonToken.class org.antlr.v4.runtime.CommonTokenFactory.class org.antlr.v4.runtime.CommonTokenStream.class org.antlr.v4.runtime.ConsoleErrorListener.class org.antlr.v4.runtime.DefaultErrorStrategy.class Check out our FAQ X Overview Package Class Use Tree Deprecated Index Help PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY:NESTED|FIELD|CONSTR|METHOD DETAIL:FIELD|CONSTR|METHOD org.apache.hadoop.hive.metastore.parser Class ExpressionTree.ANTLRNoCaseStringStream java.lang.Object This value includes a single EOF. 114115 intsize(); Where are you getting symbols from? Throws: UnsupportedOperationException - if the stream does not support retrieving the value of the specified symbol mark intmark() A mark provides a guarantee that seek() http://opinfos.com/general/org-antlr-runtime-intstream-la.html
Parameters: marker - A marker returned by a call to mark(). Specifying the current index() relative to the index after the stream was created allows for filtering implementations that do not return every symbol from the underlying source. For more information on marked regions, see mark(). The marker will usually be index() but it doesn't have to be. This Site
The index is 0..n-1. If a mark is released twice, or if marks are not released in reverse order of the corresponding calls to mark(), the behavior is unspecified. Specifying the call to LA(1) allows for lazily initialized streams. It is like invoking rewind(last marker) but it should not "pop" the marker off.
IntStream Property detail indexproperty index:int[read-only] Return the current input symbol index 0..n where n indicates the last symbol has been read. Currently, this method is only used for efficient backtracking using memoization, but in the future it may be used for incremental parsing. Return the stop token index or MEMO_RULE_UNKNOWN. http://www.antlr3.org/api/Java/org/antlr/runtime/class-use/IntStream.html Parameters: index - The absolute index to seek to.
LA intLA(inti) Gets the value of the symbol at offset i from the current position. The behavior of this method is unspecified if no call to an initializing method has occurred after this stream was constructed. This will have the same behavior as rewind() except it releases resources without the backward seek. void BaseRecognizer.matchAny(IntStreaminput) Match the wildcard: in a symbol void BaseRecognizer.memoize(IntStreaminput, intruleIndex, intruleStartIndex) Record whether or not this rule parsed
A seek to position i means that LA(1) will return the ith symbol. http://grepcode.com/file/repo1.maven.org/maven2/org.antlr/antlr-runtime/3.4/org/antlr/runtime/IntStream.java Not Found The requested URL /java/site/latest/apidocs/org/openprovenance/prov/notation/PROV_NLexer.DFA27.html was not found on this server. It's like seek(last marker's input position). 7677 voidrewind(); You may want to commit to a backtrack but don't want to force the stream to keep bookkeeping objects around for a marker This method does not change the current position in the input stream.
release voidrelease(intmarker) This method releases a marked range created by a call to mark(). If such a name is not known, this method returns UNKNOWN_SOURCE_NAME. So if you're nested 5 levels of mark(), and then release(2) you have to release resources for depths 2..5. 8687 voidrelease(intmarker); Set the input cursor to the position indicated by index. Negative indexes are allowed.
Implementation public function get size():int sourceNameproperty sourceName:String[read-only] Where are you getting symbols from? class UnbufferedTokenStream A token stream that pulls tokens from the code source on-demand and without tracking a complete buffer of the tokens. All rights reserved. check over here These examples are extracted from open source projects.
It is like invoking rewind(last marker) but it should not "pop" the marker off. The Lexer track line/col info as well as input index so its markers are not pure input indexes. Assume the state the stream was in when this marker was created. 6566 voidrewind(intmarker); Rewind to the input position of the last marker.
IntStream mark():int Tell the stream to start buffering if it hasn't already.
Return current input position, index(), or some other marker so that when passed to rewind() you get back to the same spot. This is normally used to seek ahead in the input stream. Do not "pop" the marker off the state. The index is 0..n-1.
If there are markers created after this marker argument, this routine must unroll them like a stack. The returned mark is an opaque handle (type int) which is passed to release() when the guarantees provided by the marked range are no longer necessary. Parameters i:int Returns int mark()method public function mark():int Tell the stream to start buffering if it hasn't already. this content Initializing Methods: Some methods in this interface have unspecified behavior if no call to an initializing method has occurred after the stream was constructed.
class BufferedTokenStream Buffer all input tokens but do on-demand fetching of new tokens from lexer. Fields in org.antlr.runtime declared as IntStream Modifier and Type Field and Description IntStream RecognitionException.input What input stream did the error occur in? class ANTLRInputStream A kind of ReaderStream that pulls from an InputStream. For more information on marked ranges, see mark().
A seek to position i means that LA(1) will return the ith symbol. The Lexer track line/col info as well as input index so its markers are not pure input indexes. int index() Return the index into the stream of the input symbol referred to by LA(1). It's just a marker to indicate what state the stream was in.
The following example shows the use of mark(), release(mark), index(), and seek(index) as part of an operation to safely work within a marked region, then restore the stream position to its Calls to release() must appear in the reverse order of the corresponding calls to mark(). This is essentially calling release() and seek(). The behavior of this method is unspecified if no call to an initializing method has occurred after this stream was constructed.
int size() Returns the total number of symbols in the stream, including a single EOF symbol. This will have the same behavior as rewind() except it releases resources without the backward seek. Method Summary All MethodsInstance MethodsAbstract Methods Modifier and Type Method and Description void consume() Consumes the current symbol in the stream. String
class TokenRewriteStream Useful for dumping out the input stream after doing some augmentation or other manipulations. int LA(inti) Gets the value of the symbol at offset i from the current position. See Also: Constant Field Values Method Detail consume voidconsume() Consumes the current symbol in the stream. If the specified index lies past the end of the stream, the operation behaves as though index was the index of the EOF symbol.
IntStream sourceName : String[read-only] Where are you getting symbols from? Upon error, do one token * insertion or deletion if possible. CommonTokenStream which distinguishes between "on-channel" and "off-channel" tokens). IntStream size : int[read-only] Only makes sense for streams that buffer everything up probably, but might be useful to display the entire stream or for testing.