toggle menu
0.13.0-SNAPSHOT
0.13.0-SNAPSHOT
0.12.5
jvm
switch theme
search in API
modulecheck-parsing:psi
/
modulecheck.parsing.psi
/
PsiTreePrinter
Psi
Tree
Printer
internal
class
PsiTreePrinter
(
whitespaceChar
:
Char
=
' '
)
:
AbstractTreePrinter
<
PsiElement
>
(
source
)
Members
Constructors
Psi
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
<
PsiElement
,
String
>
element
Type
Name
Map
Link copied to clipboard
private
val
elementTypeNameMap
:
MutableMap
<
PsiElement
,
String
>
whitespace
Char
Link copied to clipboard
private
val
whitespaceChar
:
Char
Functions
build
Tree
String
Link copied to clipboard
private
fun
buildTreeString
(
rootNode
:
PsiElement
,
indentLevel
:
Int
)
:
String
children
Link copied to clipboard
open
override
fun
PsiElement
.
children
(
)
:
Sequence
<
PsiElement
>
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
PsiElement
.
parent
(
)
:
PsiElement
?
print
Tree
String
Link copied to clipboard
fun
printTreeString
(
rootNode
:
PsiElement
)
simple
Class
Name
Link copied to clipboard
open
override
fun
PsiElement
.
simpleClassName
(
)
:
String
text
Link copied to clipboard
open
override
fun
PsiElement
.
text
(
)
:
String
tree
String
Link copied to clipboard
fun
treeString
(
rootNode
:
PsiElement
)
:
String
type
Name
Link copied to clipboard
open
override
fun
PsiElement
.
typeName
(
)
:
String
unique
Name
Link copied to clipboard
private
fun
PsiElement
.
uniqueName
(
nameType
:
AbstractTreePrinter.NameType
)
:
String
unique
Simple
Name
Link copied to clipboard
private
fun
PsiElement
.
uniqueSimpleName
(
)
:
String