Package io.deephaven.lang.generated
Class ChunkerMethodName
java.lang.Object
io.deephaven.lang.generated.SimpleNode
io.deephaven.lang.generated.ChunkerMethodName
- All Implemented Interfaces:
Node
-
Field Summary
Fields inherited from class io.deephaven.lang.generated.SimpleNode
children, firstToken, id, lastToken, parent, parser, value
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Overridden manually for nodes who can "have a cursor on them" with respect to autocomplete.jjtAccept
(ChunkerVisitor visitor, Object data) Accept the visitor.Methods inherited from class io.deephaven.lang.generated.SimpleNode
addJunk, addToken, adopt, childrenAccept, dump, getChildren, getId, getJunk, indexOf, isWellFormed, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtInsertChild, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, removeChild, removeToken, setWellFormed, toString, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.deephaven.lang.generated.Node
addChild, addChild, addScope, addScope, addToken, append, asRange, contains, containsIndex, containsLines, distanceTo, findToken, getEndIndex, getStartIndex, insertChild, isChildOf, maybeDetach, rescope, setScope, tokens, tokensReversed, toSource
-
Constructor Details
-
ChunkerMethodName
public ChunkerMethodName(int id) -
ChunkerMethodName
-
-
Method Details
-
jjtAccept
Accept the visitor.- Specified by:
jjtAccept
in interfaceNode
- Overrides:
jjtAccept
in classSimpleNode
-
getInvocation
-
isAutocompleteTerminal
public boolean isAutocompleteTerminal()Description copied from interface:Node
Overridden manually for nodes who can "have a cursor on them" with respect to autocomplete. If any part of an ast node collects tokens that are "leaf nodes" (i.e. there are cursor positions where your ast node will be the most derived child found), then it is a candidate to be a terminal autocomplete source. When encountering whitespace or . or , we might search left or right for interesting nodes, and those ast nodes who are autocomplete terminal will be preferred over their children. The normal search algorithm is a standard binary tree search, where the next-leftmost|rightmost leaf node is transversed. When an `isAutocompleteTerminal() == true` node is found, however, we stop there to continue searches.- Returns:
- true for nodes that the visitor in ChunkerCompleter will visit and generate results. This is not needed for always-terminal nodes, like ChunkerNum or ChunkerIdent, but is needed by terminal-nodes-with-children, like ChunkerInvoke or ChunkerNew.
-