Class DroolsTree

java.lang.Object
org.antlr.runtime.tree.BaseTree
org.antlr.runtime.tree.CommonTree
org.drools.drl.parser.lang.DroolsTree
All Implemented Interfaces:
org.antlr.runtime.tree.Tree

public class DroolsTree extends org.antlr.runtime.tree.CommonTree
An extension of the CommonTree class that keeps the char offset information.
  • Field Summary

    Fields inherited from class org.antlr.runtime.tree.CommonTree

    childIndex, parent, startIndex, stopIndex, token

    Fields inherited from class org.antlr.runtime.tree.BaseTree

    children

    Fields inherited from interface org.antlr.runtime.tree.Tree

    INVALID_NODE
  • Constructor Summary

    Constructors
    Constructor
    Description
    DroolsTree(org.antlr.runtime.Token token)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.antlr.runtime.tree.Tree
     
    getter of editor type
    int
    getter of end char offset
    int
    getter for start char offset
    void
    setter of editor type
    void
    setEndCharOffset(int endCharOffset)
    setter of end char offset
    void
    setStartCharOffset(int startCharOffset)
    setter for start char offset

    Methods inherited from class org.antlr.runtime.tree.CommonTree

    getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toString

    Methods inherited from class org.antlr.runtime.tree.BaseTree

    addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DroolsTree

      public DroolsTree(DroolsTree node)
    • DroolsTree

      public DroolsTree(org.antlr.runtime.Token token)
  • Method Details

    • dupNode

      public org.antlr.runtime.tree.Tree dupNode()
      Specified by:
      dupNode in interface org.antlr.runtime.tree.Tree
      Overrides:
      dupNode in class org.antlr.runtime.tree.CommonTree
    • getStartCharOffset

      public int getStartCharOffset()
      getter for start char offset
      Returns:
      start char offset
    • setStartCharOffset

      public void setStartCharOffset(int startCharOffset)
      setter for start char offset
      Parameters:
      startCharOffset - start char offset
    • getEndCharOffset

      public int getEndCharOffset()
      getter of end char offset
      Returns:
      end char offset
    • setEndCharOffset

      public void setEndCharOffset(int endCharOffset)
      setter of end char offset
      Parameters:
      endCharOffset - end char offset
    • getEditorElementType

      public DroolsEditorType getEditorElementType()
      getter of editor type
      Returns:
      editor type
      See Also:
    • setEditorElementType

      public void setEditorElementType(DroolsEditorType editorElementType)
      setter of editor type
      Parameters:
      editorElementType - editor type
      See Also: