Top Methods
com.github.javaparser.printer.lexicalpreservation

public Interface TextElementMatcher

Known Direct Implementers
com.github.javaparser.printer.lexicalpreservation.TextElement

Method Summary

Modifier and TypeMethod and Description
public default TextElementMatcher

Returns:

A new and combined TextElementMatcher of this and textElementMatcher
and
(TextElementMatcher
TextElementMatcher to combine with this one
textElementMatcher
)

This allows the combination of different TextElementMatcher instances.

public boolean
match(TextElement textElement)

Method Detail

andback to summary
public default TextElementMatcher and(TextElementMatcher textElementMatcher)

This allows the combination of different TextElementMatcher instances.
If combined, all of the TextElementMatchers have to return true.

Parameters
textElementMatcher:TextElementMatcher

TextElementMatcher to combine with this one

Returns:TextElementMatcher

A new and combined TextElementMatcher of this and textElementMatcher

matchback to summary
public boolean match(TextElement textElement)