Uses of Class
net.sourceforge.pmd.lang.document.Chars
-
Packages that use Chars Package Description net.sourceforge.pmd.cpd Token-based copy-paste detection.net.sourceforge.pmd.lang.ast net.sourceforge.pmd.lang.ast.impl net.sourceforge.pmd.lang.ast.impl.javacc Support classes for language implementations based on JavaCC.net.sourceforge.pmd.lang.document Contains types to model text files and handle operations on text.net.sourceforge.pmd.util -
-
Uses of Chars in net.sourceforge.pmd.cpd
Methods in net.sourceforge.pmd.cpd that return Chars Modifier and Type Method Description CharsCPDReport. getSourceCodeSlice(Mark mark)Return the slice of source code where the mark was found. -
Uses of Chars in net.sourceforge.pmd.lang.ast
Methods in net.sourceforge.pmd.lang.ast that return Chars Modifier and Type Method Description default CharsTextAvailableNode. getOriginalText()Returns the original source code underlying this node, before any escapes have been translated.default CharsTextAvailableNode. getText()Returns the source code underlying this node, after any escapes have been translated. -
Uses of Chars in net.sourceforge.pmd.lang.ast.impl
Methods in net.sourceforge.pmd.lang.ast.impl that return Chars Modifier and Type Method Description CharsTokenDocument. getFullText()Returns the original text of the file (without escaping). -
Uses of Chars in net.sourceforge.pmd.lang.ast.impl.javacc
Fields in net.sourceforge.pmd.lang.ast.impl.javacc declared as Chars Modifier and Type Field Description protected CharsEscapeTranslator. inputSource characters.Methods in net.sourceforge.pmd.lang.ast.impl.javacc that return Chars Modifier and Type Method Description CharsJavaccToken. getImageCs()CharsJavaccToken. getText()Returns the original text of the token.CharsCharStream. getTokenImageCs()Returns a string made up of characters from the token mark up to to the current buffer position.Methods in net.sourceforge.pmd.lang.ast.impl.javacc with parameters of type Chars Modifier and Type Method Description protected intBackslashEscapeTranslator. recordEscape(int startOffsetInclusive, int endOffsetExclusive, Chars translation)protected intEscapeTranslator. recordEscape(int startOffsetInclusive, int endOffsetExclusive, Chars translation)Constructors in net.sourceforge.pmd.lang.ast.impl.javacc with parameters of type Chars Constructor Description JavaccToken(int kind, Chars image, int startInclusive, int endExclusive, JavaccTokenDocument document)Builds a new token of the specified kind. -
Uses of Chars in net.sourceforge.pmd.lang.document
Fields in net.sourceforge.pmd.lang.document declared as Chars Modifier and Type Field Description static CharsChars. EMPTYAn empty Chars instance.Methods in net.sourceforge.pmd.lang.document that return Chars Modifier and Type Method Description CharsTextFileContent. getNormalizedText()The text of the file, with the following normalizations: Line endings are normalized to "\n".CharsTextDocument. getText()Returns the current text of this document.CharsChars. removePrefix(String charSeq)Remove the prefix if it is present, otherwise returns this.CharsChars. removeSuffix(String charSeq)Remove the suffix if it is present, otherwise returns this.CharsChars. slice(int off, int len)LikesubSequence(int, int)but with offset + length instead of start + end.CharsChars. slice(TextRegion region)Slice a region of text.CharsTextDocument. sliceOriginalText(TextRegion region)Returns a slice of the original text.default CharsTextDocument. sliceTranslatedText(TextRegion region)Returns a slice of the source text.CharsChars. subSequence(int start)Returns the subsequence that starts at the given offset and ends at the end of this string.CharsChars. subSequence(int start, int end)CharsChars. trim()LikeString.trim().CharsChars. trimBlankLines()Remove trailing and leading blank lines.CharsChars. trimEnd()Returns a subsequence which does not end with control characters (<= 32).CharsChars. trimStart()Returns a subsequence which does not start with control characters (<= 32).static CharsChars. wrap(CharSequence chars)Wraps the given char sequence into aChars.Methods in net.sourceforge.pmd.lang.document that return types with arguments of type Chars Modifier and Type Method Description Iterable<Chars>Chars. lines()Returns an iterable over the lines of this char sequence.Stream<Chars>Chars. lineStream()Returns a stream of lines yielded bylines().Iterable<Chars>Chars. splits(Pattern regex)Split this slice into subslices, likeString.split(String), except it's iterated lazily.Methods in net.sourceforge.pmd.lang.document with parameters of type Chars Modifier and Type Method Description voidFragmentedDocBuilder. recordDelta(int startInInput, int endInInput, Chars translation)Add a new fragment. -
Uses of Chars in net.sourceforge.pmd.util
Methods in net.sourceforge.pmd.util that return types with arguments of type Chars Modifier and Type Method Description static List<Chars>StringUtil. linesWithTrimIndent(Chars source)Returns a list ofMethods in net.sourceforge.pmd.util with parameters of type Chars Modifier and Type Method Description static List<Chars>StringUtil. linesWithTrimIndent(Chars source)Returns a list ofstatic StringBuilderStringUtil. trimIndent(Chars string)Trim common indentation in the lines of the string.Method parameters in net.sourceforge.pmd.util with type arguments of type Chars Modifier and Type Method Description static @NonNull StringBuilderCollectionUtil. joinCharsIntoStringBuilder(List<Chars> lines, String delimiter)static voidStringUtil. trimIndentInPlace(List<Chars> lines)Trim the common indentation of each line in place in the input list.
-