A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.pmd-code.org/apidocs/pmd-core/7.15.0/net/sourceforge/pmd/lang/ast/GenericToken.html below:

GenericToken (PMD Core 7.15.0 API)

Modifier and Type Method Description default int compareTo​(T o)

This must return true if this token comes before the other token.

default String getImage()

Returns the token's text as a string.

CharSequence getImageCs()

Returns the text of the token as a char sequence.

int getKind()

Gets a unique integer representing the kind of token this is.

T getNext()

Obtain the next generic token according to the input stream which generated the instance of this token.

T getPreviousComment()

Obtain a comment-type token which, according to the input stream which generated the instance of this token, precedes this instance token and succeeds the previous generic token (if there is any).

TextRegion getRegion()

Returns a text region with the coordinates of this token.

default boolean imageEquals​(CharSequence charSeq)

Returns true if the image of this token equals the given charsequence.

boolean isEof()

Returns true if this token is an end-of-file token.

default boolean isImplicit()

Returns true if this token is implicit, ie was inserted artificially and has a zero-length image.

static <T extends GenericToken<T>>
Iterable<T>
previousSpecials​(T from)

Returns an iterable that enumerates all special tokens belonging to the given token.

static <T extends GenericToken<T>>
Iterable<T>
range​(T from, T to)

Returns an iterator that enumerates all (non-special) tokens between the two tokens (bounds included).

static <T extends GenericToken<T>>
Stream<T>
streamRange​(T from, T to)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4