Package io.deephaven.lang.generated
Class Chunker
- java.lang.Object
-
- io.deephaven.lang.generated.Chunker
-
- All Implemented Interfaces:
ChunkerConstants,ChunkerMixin,ChunkerTreeConstants
public class Chunker extends java.lang.Object implements ChunkerTreeConstants, ChunkerMixin, ChunkerConstants
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.deephaven.lang.generated.ChunkerMixin
ChunkerMixin.CharPredicate, ChunkerMixin.PeekStream
-
-
Field Summary
Fields Modifier and Type Field Description Tokenjj_ntNext token.protected JJTChunkerStatejjtreeTokentokenCurrent token.ChunkerTokenManagertoken_sourceGenerated Token Manager.-
Fields inherited from interface io.deephaven.lang.generated.ChunkerConstants
ACCESS, AMP, APOS, APOS_BODY, APOS_CLOSE, ARRAY_END, ARRAY_START, ARROW, ASSIGN, AT, CLASS, CLOSE_PAREN, CLOSURE_END, CLOSURE_START, COLON, COMMA, DEFAULT, DIGIT, DOUBLE_EQ, EOF, ESCAPED_APOS, ESCAPED_NL, ESCAPED_QUOTE, EXTENDS, FROM_LOCAL, GT, ID, IMPLEMENTS, IN_JAVA_DOC_COMMENT, IN_MULTI_LINE_COMMENT, INVOKE, JAVA_DOC_COMMENT, LOGIC, LT, MULTI_LINE_COMMENT, NEW, NEWLINE, NL, NUM, NUM_OP, QUEST, QUOTE, QUOTE_BODY, QUOTE_CLOSE, SCIENTIFIC, SEMI, SINGLE_LINE_COMMENT, STARS, STR_APOS, STR_QUOTE, SUPER, tokenImage, TRIPLE_APOS, TRIPLE_QUOTES, WHITESPACE
-
Fields inherited from interface io.deephaven.lang.generated.ChunkerMixin
ALLOW_ANY, ALLOW_ASSIGN, ALLOW_COLON, ALLOW_COMMA_OR_DASH_OR_DOT, ALLOW_EQUAL_COMMA_OR_DASH, ALLOW_EQUALS, ALLOW_PAREN, ALLOW_TYPE_OR_DOT, ALLOW_TYPE_PARAMS, ANY_EXPR, COMMA_OR_DASH_OR_DOT, EQUAL_COMMA_OR_DASH
-
Fields inherited from interface io.deephaven.lang.generated.ChunkerTreeConstants
JJTANNOTATION, JJTARRAY, JJTASSIGN, JJTBINARYEXPRESSION, JJTCLOSURE, JJTDOCUMENT, JJTEOF, JJTIDENT, JJTINVOKE, JJTJAVACLASSDECL, JJTMETHODNAME, JJTNEW, JJTNEWLINE, jjtNodeName, JJTNUM, JJTPARAM, JJTSTATEMENT, JJTSTRING, JJTTYPEDASSIGN, JJTTYPEDECL, JJTTYPEPARAM, JJTTYPEPARAMS, JJTVOID, JJTWHITESPACE
-
-
Constructor Summary
Constructors Constructor Description Chunker(ChunkerTokenManager tm)Constructor with generated Token Manager.Chunker(Provider stream)Constructor.Chunker(java.lang.String dsl)Constructor.
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.deephaven.lang.generated.ChunkerMixin
eatJunk, isAssign, isBinExprAcrossNewline, isClassDecl, isParamList, isPythonAnnotated, isScope, isTypedAssign, isTypedInvoke, peek, report
-
-
-
-
Field Detail
-
jjtree
protected JJTChunkerState jjtree
-
token_source
public ChunkerTokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
Chunker
public Chunker(Provider stream)
Constructor.
-
Chunker
public Chunker(java.lang.String dsl) throws ParseException, TokenMgrExceptionConstructor.- Throws:
ParseExceptionTokenMgrException
-
Chunker
public Chunker(ChunkerTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
getMessenger
public Messenger getMessenger()
-
isLookingAhead
public boolean isLookingAhead()
- Specified by:
isLookingAheadin interfaceChunkerMixin
-
curToken
public Token curToken()
- Specified by:
curTokenin interfaceChunkerMixin
-
next
public char next() throws java.io.IOException- Specified by:
nextin interfaceChunkerMixin- Throws:
java.io.IOException
-
back
public void back(int backup, int tokenBegin)- Specified by:
backin interfaceChunkerMixin
-
token
public Token token()
- Specified by:
tokenin interfaceChunkerMixin
-
checkInterrupts
public void checkInterrupts()
-
Document
public final ChunkerDocument Document() throws ParseException
- Throws:
ParseException
-
EatStatements
public final Node EatStatements(boolean persistent) throws ParseException
- Throws:
ParseException
-
Statement
public final ChunkerStatement Statement() throws ParseException
- Throws:
ParseException
-
JavaClassDecl
public final ChunkerJavaClassDecl JavaClassDecl() throws ParseException
- Throws:
ParseException
-
Assign
public final ChunkerAssign Assign() throws ParseException
- Throws:
ParseException
-
TypedAssign
public final ChunkerTypedAssign TypedAssign() throws ParseException
- Throws:
ParseException
-
TypeDecl
public final ChunkerTypeDecl TypeDecl() throws ParseException
- Throws:
ParseException
-
TypeParams
public final ChunkerTypeParams TypeParams() throws ParseException
- Throws:
ParseException
-
TypeParam
public final ChunkerTypeParam TypeParam(boolean canWildcard) throws ParseException
- Throws:
ParseException
-
Ident
public final ChunkerIdent Ident() throws ParseException
- Throws:
ParseException
-
Num
public final ChunkerNum Num() throws ParseException
- Throws:
ParseException
-
Whitespace
public final ChunkerWhitespace Whitespace() throws ParseException
- Throws:
ParseException
-
MethodName
public final ChunkerMethodName MethodName() throws ParseException
- Throws:
ParseException
-
Newline
public final ChunkerNewline Newline() throws ParseException
- Throws:
ParseException
-
New
public final ChunkerNew New() throws ParseException
- Throws:
ParseException
-
maybeBin
public final Node maybeBin(Node src) throws ParseException
- Throws:
ParseException
-
Values
public final Node Values() throws ParseException
- Throws:
ParseException
-
MethodArg
public final Node MethodArg() throws ParseException
- Throws:
ParseException
-
MethodArguments
public final void MethodArguments(ChunkerInvokable invokable) throws ParseException
- Throws:
ParseException
-
Scope
public final java.util.List<IsScope> Scope() throws ParseException
- Throws:
ParseException
-
Annotations
public final java.util.List<ChunkerAnnotation> Annotations() throws ParseException
- Throws:
ParseException
-
Annotation
public final ChunkerAnnotation Annotation() throws ParseException
- Throws:
ParseException
-
Invoke
public final ChunkerInvoke Invoke() throws ParseException
- Throws:
ParseException
-
Param
public final ChunkerParam Param() throws ParseException
- Throws:
ParseException
-
Closure
public final ChunkerClosure Closure() throws ParseException
- Throws:
ParseException
-
ClosureParams
public final Node ClosureParams() throws ParseException
- Throws:
ParseException
-
Array
public final ChunkerArray Array() throws ParseException
- Throws:
ParseException
-
Expression
public final Node Expression() throws ParseException
- Throws:
ParseException
-
EatBinaryWhitespace
public final void EatBinaryWhitespace() throws ParseException- Throws:
ParseException
-
BinaryExpression
public final ChunkerBinaryExpression BinaryExpression(Node left) throws ParseException
- Throws:
ParseException
-
String
public final ChunkerString String() throws ParseException
- Throws:
ParseException
-
Eof
public final ChunkerEof Eof() throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(java.lang.String s)
-
ReInit
public void ReInit(Provider stream)
Reinitialise.
-
ReInit
public void ReInit(ChunkerTokenManager tm)
Reinitialise.
-
getNextToken
public final Token getNextToken()
Get the next Token.
-
getToken
public final Token getToken(int index)
Get the specific Token.
-
generateParseException
public ParseException generateParseException()
Generate ParseException.
-
trace_enabled
public final boolean trace_enabled()
Trace enabled.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
-