Interface ChainTraversal
public interface ChainTraversal
-
Method Summary
Static Methods Modifier and Type Method Description 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>>
voidcollectAnaphorElements(List<C> nextElements, Stream.Builder<C> builder, Predicate<C> predicate)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>>
voidcollectAnaphorElements(List<C> nextElements, Stream.Builder<C> builder, Predicate<C> shouldAddElement, Predicate<C> shouldContinue)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)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)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)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>>
CgetRelatedExpressionElementForAnaphorElement(C anaphorElement)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)
-
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 ASTE- The expression typeT- The type typeB- The binding typeTB- The type binding typeS- The scope type (optional)I- The type used to represent identifiersQI- The type used to represent qualified identifiersAT- 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 useA- The sub-type of AST-based anaphora to useC- 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 ASTE- The expression typeT- The type typeB- The binding typeTB- The type binding typeS- The scope type (optional)I- The type used to represent identifiersQI- The type used to represent qualified identifiersAT- 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 useA- The sub-type of AST-based anaphora to useC- 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 ASTE- The expression typeT- The type typeB- The binding typeTB- The type binding typeS- The scope type (optional)I- The type used to represent identifiersQI- The type used to represent qualified identifiersAT- 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 useA- The sub-type of AST-based anaphora to useC- 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 ASTE- The expression typeT- The type typeB- The binding typeTB- The type binding typeS- The scope type (optional)I- The type used to represent identifiersQI- The type used to represent qualified identifiersAT- 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 useA- The sub-type of AST-based anaphora to useC- 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 ASTE- The expression typeT- The type typeB- The binding typeTB- The type binding typeS- The scope type (optional)I- The type used to represent identifiersQI- The type used to represent qualified identifiersAT- 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 useA- The sub-type of AST-based anaphora to useC- 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 ASTE- The expression typeT- The type typeB- The binding typeTB- The type binding typeS- The scope type (optional)I- The type used to represent identifiersQI- The type used to represent qualified identifiersAT- 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 useA- The sub-type of AST-based anaphora to useC- 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 ASTE- The expression typeT- The type typeB- The binding typeTB- The type binding typeS- The scope type (optional)I- The type used to represent identifiersQI- The type used to represent qualified identifiersAT- 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 useA- The sub-type of AST-based anaphora to useC- The sub-type of chain element to use
-