Interface Tree

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  Tree.Kind
      Enumerates all kinds of trees.
    • Method Detail

      • getStartPosition

        long getStartPosition​()
        Start character offset of this Tree within the source.
        Returns:
        the position
      • getEndPosition

        long getEndPosition​()
        End character offset of this Tree within the source.
        Returns:
        the position
      • getKind

        Tree.Kind getKind​()
        Gets the kind of this tree.
        Returns:
        the kind of this tree.
      • accept

        <R,D> R accept​(TreeVisitor<R,D> visitor,
                       D data)
        Accept method used to implement the visitor pattern. The visitor pattern is used to implement operations on trees.
        Type Parameters:
        R - result type of this operation.
        D - type of additional data.
        Parameters:
        visitor - tree visitor
        data - additional data passed to visitor methods
        Returns:
        the value from visitor's visit methods