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 Chars
CPDReport. 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 Chars
TextAvailableNode. getOriginalText()
Returns the original source code underlying this node, before any escapes have been translated.default Chars
TextAvailableNode. 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 Chars
TokenDocument. 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 Chars
EscapeTranslator. input
Source characters.Methods in net.sourceforge.pmd.lang.ast.impl.javacc that return Chars Modifier and Type Method Description Chars
JavaccToken. getImageCs()
Chars
CharStream. 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 int
BackslashEscapeTranslator. recordEscape(int startOffsetInclusive, int endOffsetExclusive, Chars translation)
protected int
EscapeTranslator. 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 Chars
Chars. EMPTY
An empty Chars instance.Methods in net.sourceforge.pmd.lang.document that return Chars Modifier and Type Method Description Chars
TextFileContent. getNormalizedText()
The text of the file, with the following normalizations: Line endings are normalized to "\n".Chars
TextDocument. getText()
Returns the current text of this document.Chars
Chars. removePrefix(String charSeq)
Remove the prefix if it is present, otherwise returns this.Chars
Chars. removeSuffix(String charSeq)
Remove the suffix if it is present, otherwise returns this.Chars
Chars. slice(int off, int len)
LikesubSequence(int, int)
but with offset + length instead of start + end.Chars
Chars. slice(TextRegion region)
Slice a region of text.Chars
TextDocument. sliceOriginalText(TextRegion region)
Returns a slice of the original text.default Chars
TextDocument. sliceTranslatedText(TextRegion region)
Returns a slice of the source text.Chars
Chars. subSequence(int start)
Returns the subsequence that starts at the given offset and ends at the end of this string.Chars
Chars. subSequence(int start, int end)
Chars
Chars. trim()
LikeString.trim()
.Chars
Chars. trimBlankLines()
Remove trailing and leading blank lines.Chars
Chars. trimEnd()
Returns a subsequence which does not end with control characters (<= 32
).Chars
Chars. trimStart()
Returns a subsequence which does not start with control characters (<= 32
).static Chars
Chars. 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 void
FragmentedDocBuilder. 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 StringBuilder
StringUtil. 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 StringBuilder
CollectionUtil. joinCharsIntoStringBuilder(List<Chars> lines, String delimiter)
static void
StringUtil. trimIndentInPlace(List<Chars> lines)
Trim the common indentation of each line in place in the input list.
-