Uses of Class
com.github.javaparser.printer.lexicalpreservation.TextElement
-
Packages that use TextElement Package Description com.github.javaparser.printer.concretesyntaxmodel com.github.javaparser.printer.lexicalpreservation -
-
Uses of TextElement in com.github.javaparser.printer.concretesyntaxmodel
Methods in com.github.javaparser.printer.concretesyntaxmodel with parameters of type TextElement Modifier and Type Method Description default booleanCsmElement. isCorrespondingElement(TextElement textElement)booleanCsmIndent. isCorrespondingElement(TextElement textElement)booleanCsmToken. isCorrespondingElement(TextElement textElement) -
Uses of TextElement in com.github.javaparser.printer.lexicalpreservation
Subclasses of TextElement in com.github.javaparser.printer.lexicalpreservation Modifier and Type Class Description classChildTextElementRepresent the position of a child node in the NodeText of its parent.classTokenTextElementMethods in com.github.javaparser.printer.lexicalpreservation that return TextElement Modifier and Type Method Description TextElementTextElementList. get(int index)TextElementTextElementSequence. get(int index)Returns the element at the specified index.TextElementTextElementIterator. next()TextElementTextElementIterator. previous()TextElementAdded. toTextElement()Methods in com.github.javaparser.printer.lexicalpreservation that return types with arguments of type TextElement Modifier and Type Method Description static java.util.List<TextElement>IndentationCalculator. computeFromPrecedingElements(java.util.List<TextElement> precedingElements)Computes the indentation that should be used based on the elements preceding the current position.static java.util.List<TextElement>IndentationCalculator. createIndentationBlock()Creates a single indentation block of STANDARD_INDENTATION_SIZE spaces.static java.util.List<TextElement>IndentationCalculator. extractIndentationFromTokens(java.util.List<TextElement> precedingTokens)Extracts the indentation portion from a list of elements.java.util.List<TextElement>IndentationContext. getCurrent()Returns a copy of the current indentation elements.default java.util.stream.Stream<TextElement>TextElementSequence. stream()Returns a stream of elements for functional operations.java.util.List<TextElement>TextElementList. subList(int fromIndex, int toIndex)java.util.List<TextElement>TextElementSequence. subList(int fromIndex, int toIndex)Returns a sublist view [fromIndex, toIndex).java.util.List<TextElement>TextElementList. takeWhile(java.util.function.Predicate<TextElement> predicate)java.util.List<TextElement>TextElementSequence. takeWhile(java.util.function.Predicate<TextElement> predicate)Returns a new list containing elements from the start until the predicate fails.java.util.List<TextElement>TextElementList. toList()java.util.List<TextElement>TextElementSequence. toList()Returns an unmodifiable view of the underlying list.java.util.List<TextElement>TextElementList. toMutableList()java.util.List<TextElement>TextElementSequence. toMutableList()Returns the underlying mutable list.Methods in com.github.javaparser.printer.lexicalpreservation with parameters of type TextElement Modifier and Type Method Description voidTextElementIterator. add(TextElement element)default intTextElementSequence. indexOf(int fromIndex, TextElement element)Finds the next occurrence of element starting from fromIndex (inclusive).default intTextElementSequence. indexOf(TextElement element)Finds the first occurrence of the specified element.voidTextElementList. insert(int index, TextElement element)voidTextElementSequence. insert(int index, TextElement element)Inserts element at the specified index.default intTextElementSequence. lastIndexOf(int fromIndex, TextElement element)Finds the previous occurrence of element before fromIndex (inclusive).default intTextElementSequence. lastIndexOf(TextElement element)Finds the last occurrence of the specified element.booleanTextElement. match(TextElement textElement)booleanTextElementMatcher. match(TextElement textElement)static TextElementListTextElementList. of(TextElement... elements)Creates a new TextElementList containing the given elements.voidTextElementIterator. set(TextElement element)Method parameters in com.github.javaparser.printer.lexicalpreservation with type arguments of type TextElement Modifier and Type Method Description booleanTextElementList. allMatch(java.util.function.Predicate<TextElement> predicate)booleanTextElementSequence. allMatch(java.util.function.Predicate<TextElement> predicate)Tests whether all elements in this sequence match the given predicate.booleanTextElementList. anyMatch(java.util.function.Predicate<TextElement> predicate)booleanTextElementSequence. anyMatch(java.util.function.Predicate<TextElement> predicate)Tests whether any element in this sequence matches the given predicate.static java.util.List<TextElement>IndentationCalculator. computeFromPrecedingElements(java.util.List<TextElement> precedingElements)Computes the indentation that should be used based on the elements preceding the current position.static TextElementListTextElementList. copyOf(java.util.List<TextElement> elements)Creates a new TextElementList with a copy of the given list.static java.util.List<TextElement>IndentationCalculator. extractIndentationFromTokens(java.util.List<TextElement> precedingTokens)Extracts the indentation portion from a list of elements.intTextElementList. findFirst(java.util.function.Predicate<TextElement> predicate)intTextElementSequence. findFirst(java.util.function.Predicate<TextElement> predicate)Finds the first index where the predicate matches, searching forward from index 0.intTextElementList. findLast(java.util.function.Predicate<TextElement> predicate)intTextElementSequence. findLast(java.util.function.Predicate<TextElement> predicate)Finds the last index where the predicate matches, searching backward from the end.intTextElementList. findNext(int fromIndex, java.util.function.Predicate<TextElement> predicate)intTextElementSequence. findNext(int fromIndex, java.util.function.Predicate<TextElement> predicate)Finds the next index where the predicate matches, searching forward from fromIndex (inclusive).intTextElementList. findPrevious(int fromIndex, java.util.function.Predicate<TextElement> predicate)intTextElementSequence. findPrevious(int fromIndex, java.util.function.Predicate<TextElement> predicate)Finds the previous index where the predicate matches, searching backward from fromIndex (inclusive).voidTextElementList. insertAll(int index, java.util.List<TextElement> elementsToInsert)voidTextElementSequence. insertAll(int index, java.util.List<TextElement> elements)Inserts all elements at the specified index.booleanTextElementList. noneMatch(java.util.function.Predicate<TextElement> predicate)booleanTextElementSequence. noneMatch(java.util.function.Predicate<TextElement> predicate)Tests whether no elements in this sequence match the given predicate.static TextElementListTextElementList. of(java.util.List<TextElement> elements)Creates a new TextElementList wrapping the given list.voidIndentationContext. set(java.util.List<TextElement> newIndentation)Replaces the current indentation with the specified elements.java.util.List<TextElement>TextElementList. takeWhile(java.util.function.Predicate<TextElement> predicate)java.util.List<TextElement>TextElementSequence. takeWhile(java.util.function.Predicate<TextElement> predicate)Returns a new list containing elements from the start until the predicate fails.Constructor parameters in com.github.javaparser.printer.lexicalpreservation with type arguments of type TextElement Constructor Description IndentationContext(java.util.List<TextElement> initialIndentation)Creates a new IndentationContext with the specified initial indentation.TextElementIterator(java.util.List<TextElement> elements, int fromIndex)Creates an iterator starting at the specified index.TextElementList(java.util.List<TextElement> elements)Creates a wrapper around the given list.
-