Interface ChainTraversal


public interface ChainTraversal
  • Method Details

    • getAnaphorElementsForRelatedExpressionElement

      static <N,​ E,​ T,​ B,​ TB extends B,​ S,​ I,​ QI,​ AT,​ R extends RelatedExpression<N,​ T,​ B,​ TB,​ S,​ QI,​ R>,​ A extends ASTBasedAnaphora<N,​ E,​ T,​ B,​ TB,​ S,​ I,​ QI,​ R,​ A>,​ C extends ChainElement<N,​ E,​ T,​ B,​ TB,​ S,​ I,​ QI,​ AT,​ R,​ A,​ C>> List<C> getAnaphorElementsForRelatedExpressionElement​(C relatedExpressionElement)
      Type Parameters:
      N - The node type in the AST
      E - The expression type
      T - The type type
      B - The binding type
      TB - The type binding type
      S - The scope type (optional)
      I - The type used to represent identifiers
      QI - The type used to represent qualified identifiers
      AT - The type used for attachments to chain elements that have an anaphor part. The attachment may be used to stored e.g. an old anaphora relation.
      R - The sub-type of related expression to use
      A - The sub-type of AST-based anaphora to use
      C - The sub-type of chain element to use
      Throws:
      IllegalStateException - If no anaphor element could be found.
    • getRelatedExpressionElementForAnaphorElement

      static <N,​ E,​ T,​ B,​ TB extends B,​ S,​ I,​ QI,​ AT,​ R extends RelatedExpression<N,​ T,​ B,​ TB,​ S,​ QI,​ R>,​ A extends ASTBasedAnaphora<N,​ E,​ T,​ B,​ TB,​ S,​ I,​ QI,​ R,​ A>,​ C extends ChainElement<N,​ E,​ T,​ B,​ TB,​ S,​ I,​ QI,​ AT,​ R,​ A,​ C>> C getRelatedExpressionElementForAnaphorElement​(C anaphorElement)
      Type Parameters:
      N - The node type in the AST
      E - The expression type
      T - The type type
      B - The binding type
      TB - The type binding type
      S - The scope type (optional)
      I - The type used to represent identifiers
      QI - The type used to represent qualified identifiers
      AT - The type used for attachments to chain elements that have an anaphor part. The attachment may be used to stored e.g. an old anaphora relation.
      R - The sub-type of related expression to use
      A - The sub-type of AST-based anaphora to use
      C - The sub-type of chain element to use
      Throws:
      IllegalStateException - If no related expression element could be found.
    • getRelatedExpressionElements

      static <N,​ E,​ T,​ B,​ TB extends B,​ S,​ I,​ QI,​ AT,​ R extends RelatedExpression<N,​ T,​ B,​ TB,​ S,​ QI,​ R>,​ A extends ASTBasedAnaphora<N,​ E,​ T,​ B,​ TB,​ S,​ I,​ QI,​ R,​ A>,​ C extends ChainElement<N,​ E,​ T,​ B,​ TB,​ S,​ I,​ QI,​ AT,​ R,​ A,​ C>> Stream<C> getRelatedExpressionElements​(C root)
      Type Parameters:
      N - The node type in the AST
      E - The expression type
      T - The type type
      B - The binding type
      TB - The type binding type
      S - The scope type (optional)
      I - The type used to represent identifiers
      QI - The type used to represent qualified identifiers
      AT - The type used for attachments to chain elements that have an anaphor part. The attachment may be used to stored e.g. an old anaphora relation.
      R - The sub-type of related expression to use
      A - The sub-type of AST-based anaphora to use
      C - The sub-type of chain element to use
    • getAnaphorElements

      static <N,​ E,​ T,​ B,​ TB extends B,​ S,​ I,​ QI,​ AT,​ R extends RelatedExpression<N,​ T,​ B,​ TB,​ S,​ QI,​ R>,​ A extends ASTBasedAnaphora<N,​ E,​ T,​ B,​ TB,​ S,​ I,​ QI,​ R,​ A>,​ C extends ChainElement<N,​ E,​ T,​ B,​ TB,​ S,​ I,​ QI,​ AT,​ R,​ A,​ C>> Stream<C> getAnaphorElements​(C root)
      Type Parameters:
      N - The node type in the AST
      E - The expression type
      T - The type type
      B - The binding type
      TB - The type binding type
      S - The scope type (optional)
      I - The type used to represent identifiers
      QI - The type used to represent qualified identifiers
      AT - The type used for attachments to chain elements that have an anaphor part. The attachment may be used to stored e.g. an old anaphora relation.
      R - The sub-type of related expression to use
      A - The sub-type of AST-based anaphora to use
      C - The sub-type of chain element to use
    • getElements

      static <N,​ E,​ T,​ B,​ TB extends B,​ S,​ I,​ QI,​ AT,​ R extends RelatedExpression<N,​ T,​ B,​ TB,​ S,​ QI,​ R>,​ A extends ASTBasedAnaphora<N,​ E,​ T,​ B,​ TB,​ S,​ I,​ QI,​ R,​ A>,​ C extends ChainElement<N,​ E,​ T,​ B,​ TB,​ S,​ I,​ QI,​ AT,​ R,​ A,​ C>> Stream<C> getElements​(C root, Predicate<C> predicate)
      Type Parameters:
      N - The node type in the AST
      E - The expression type
      T - The type type
      B - The binding type
      TB - The type binding type
      S - The scope type (optional)
      I - The type used to represent identifiers
      QI - The type used to represent qualified identifiers
      AT - The type used for attachments to chain elements that have an anaphor part. The attachment may be used to stored e.g. an old anaphora relation.
      R - The sub-type of related expression to use
      A - The sub-type of AST-based anaphora to use
      C - The sub-type of chain element to use
    • collectAnaphorElements

      static <N,​ E,​ T,​ B,​ TB extends B,​ S,​ I,​ QI,​ AT,​ R extends RelatedExpression<N,​ T,​ B,​ TB,​ S,​ QI,​ R>,​ A extends ASTBasedAnaphora<N,​ E,​ T,​ B,​ TB,​ S,​ I,​ QI,​ R,​ A>,​ C extends ChainElement<N,​ E,​ T,​ B,​ TB,​ S,​ I,​ QI,​ AT,​ R,​ A,​ C>> void collectAnaphorElements​(List<C> nextElements, Stream.Builder<C> builder, Predicate<C> predicate)
      Type Parameters:
      N - The node type in the AST
      E - The expression type
      T - The type type
      B - The binding type
      TB - The type binding type
      S - The scope type (optional)
      I - The type used to represent identifiers
      QI - The type used to represent qualified identifiers
      AT - The type used for attachments to chain elements that have an anaphor part. The attachment may be used to stored e.g. an old anaphora relation.
      R - The sub-type of related expression to use
      A - The sub-type of AST-based anaphora to use
      C - The sub-type of chain element to use
    • collectAnaphorElements

      static <N,​ E,​ T,​ B,​ TB extends B,​ S,​ I,​ QI,​ AT,​ R extends RelatedExpression<N,​ T,​ B,​ TB,​ S,​ QI,​ R>,​ A extends ASTBasedAnaphora<N,​ E,​ T,​ B,​ TB,​ S,​ I,​ QI,​ R,​ A>,​ C extends ChainElement<N,​ E,​ T,​ B,​ TB,​ S,​ I,​ QI,​ AT,​ R,​ A,​ C>> void collectAnaphorElements​(List<C> nextElements, Stream.Builder<C> builder, Predicate<C> shouldAddElement, Predicate<C> shouldContinue)
      Type Parameters:
      N - The node type in the AST
      E - The expression type
      T - The type type
      B - The binding type
      TB - The type binding type
      S - The scope type (optional)
      I - The type used to represent identifiers
      QI - The type used to represent qualified identifiers
      AT - The type used for attachments to chain elements that have an anaphor part. The attachment may be used to stored e.g. an old anaphora relation.
      R - The sub-type of related expression to use
      A - The sub-type of AST-based anaphora to use
      C - The sub-type of chain element to use