Uses of Class
org.jparsec.TreeNode

Packages that use TreeNode
Package
Description
Provides core Parser implementations for parser combinator logic.
  • Uses of TreeNode in org.jparsec

    Fields in org.jparsec declared as TreeNode
    Modifier and Type
    Field
    Description
    private TreeNode
    ParseContext.currentErrorNode
     
    (package private) TreeNode
    TreeNode.latestChild
     
    private final TreeNode
    TreeNode.parent
     
    private final TreeNode
    TreeNode.previous
     
    Methods in org.jparsec that return TreeNode
    Modifier and Type
    Method
    Description
    (package private) TreeNode
    TreeNode.addChild(String childName, int childIndex)
     
    (package private) TreeNode
    TreeNode.freeze(int index)
    Freezes the current tree node to make it the latest child of its parent (discarding nodes that have been tacked on after it in the same hierarchy level); and recursively apply to all of its ancestors.
    ParseContext.ParserTrace.getCurrentNode()
    Returns the current node, that is being parsed (not necessarily finished).
    ParseContext.ParserTrace.getLatestChild()
    Called by branching parsers, to save the current state of tree, before trying parsers that could modify the tree state.
    (package private) TreeNode
    TreeNode.orphanize()
    When this leaf node has errors, it didn't complete and shouldn't be part of the parse tree that is the current partial parse result with all successful matches.
    (package private) TreeNode
    TreeNode.parent()
     
    Methods in org.jparsec with parameters of type TreeNode
    Modifier and Type
    Method
    Description
    private void
    BestParser.applyForBestFit(int from, ParseContext ctxt, Object originalResult, int originalStep, int originalAt, TreeNode originalLatestChild)
     
    void
    ParseContext.ParserTrace.setLatestChild(TreeNode node)
    Called by labeled parser to reset the current child node when the current node failed.
    Constructors in org.jparsec with parameters of type TreeNode
    Modifier
    Constructor
    Description
    (package private)
    TreeNode(String name, int beginIndex, TreeNode parent, TreeNode previous)