toggle menu
0.13.0-SNAPSHOT
0.13.0-SNAPSHOT
0.12.5
jvm
switch theme
search in API
modulecheck-parsing:groovy-antlr
/
modulecheck.parsing.groovy.antlr
/
AntlrTreePrinter
Antlr
Tree
Printer
internal
class
AntlrTreePrinter
(
whitespaceChar
:
Char
=
' '
)
:
AbstractTreePrinter
<
Tree
>
(
source
)
Members
Constructors
Antlr
Tree
Printer
Link copied to clipboard
constructor
(
whitespaceChar
:
Char
=
' '
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
current
Color
Index
Link copied to clipboard
private
var
currentColorIndex
:
Int
element
Simple
Name
Map
Link copied to clipboard
private
val
elementSimpleNameMap
:
MutableMap
<
Tree
,
String
>
element
Type
Name
Map
Link copied to clipboard
private
val
elementTypeNameMap
:
MutableMap
<
Tree
,
String
>
whitespace
Char
Link copied to clipboard
private
val
whitespaceChar
:
Char
Functions
build
Tree
String
Link copied to clipboard
private
fun
buildTreeString
(
rootNode
:
Tree
,
indentLevel
:
Int
)
:
String
children
Link copied to clipboard
open
override
fun
Tree
.
children
(
)
:
Sequence
<
Tree
>
count
Visible
Chars
Link copied to clipboard
private
fun
String
.
countVisibleChars
(
)
:
Int
get
Current
Color
Link copied to clipboard
private
fun
getCurrentColor
(
)
:
AbstractTreePrinter.Color
get
Next
Color
Link copied to clipboard
private
fun
getNextColor
(
)
:
AbstractTreePrinter.Color
parent
Link copied to clipboard
open
override
fun
Tree
.
parent
(
)
:
Tree
?
print
Tree
String
Link copied to clipboard
fun
printTreeString
(
rootNode
:
Tree
)
simple
Class
Name
Link copied to clipboard
open
override
fun
Tree
.
simpleClassName
(
)
:
String
text
Link copied to clipboard
open
override
fun
Tree
.
text
(
)
:
String
tree
String
Link copied to clipboard
fun
treeString
(
rootNode
:
Tree
)
:
String
type
Name
Link copied to clipboard
open
override
fun
Tree
.
typeName
(
)
:
String
unique
Name
Link copied to clipboard
private
fun
Tree
.
uniqueName
(
nameType
:
AbstractTreePrinter.NameType
)
:
String
unique
Simple
Name
Link copied to clipboard
private
fun
Tree
.
uniqueSimpleName
(
)
:
String