Package spoon.support.sniper.internal
Class TokenPrinterEvent
java.lang.Object
spoon.support.sniper.internal.TokenPrinterEvent
- All Implemented Interfaces:
PrinterEvent
Represents an action of Printer, which prints a token
-
Constructor Details
-
TokenPrinterEvent
-
-
Method Details
-
getRole
- Specified by:
getRole
in interfacePrinterEvent
- Returns:
- role of printed source code of element in scope of its parent
-
getElement
- Specified by:
getElement
in interfacePrinterEvent
- Returns:
- printed element or null if printing a primitive token
-
getToken
- Returns:
- printed token or null if printing complex element or comment
-
isWhitespace
public boolean isWhitespace()- Returns:
- true if printing white space token. It means New line, space or TAB.
-
getType
Returns the token type -
toString
-
getTokenType
-