pmd-lang-test
Module Contents
package
net.sourceforge.pmd.lang.ast.test
Module Contents
typealias
Assertions
<
M
>
=
(
M
)
->
Unit
abstract
class
BaseParsingHelper
<
Self
:
BaseParsingHelper
<
Self
,
T
>
,
T
:
RootNode
>
Module Contents
BaseParsingHelper
(
langName
:
String
,
rootClass
:
Class
<
T
>
,
params
:
Params
)
protected
abstract
fun
clone
(
params
:
Params
)
:
Self
val
defaultHandler
:
LanguageVersionHandler
val
defaultVersion
:
LanguageVersion
fun
getHandler
(
version
:
String
)
:
LanguageVersionHandler
@JvmOverloads
fun
<
R
:
Node
>
getNodes
(
target
:
Class
<
R
>
,
source
:
String
,
version
:
String
?
=
null
)
:
List
<
R
>
fun
getVersion
(
version
:
String
?
)
:
LanguageVersion
protected
val
langName
:
String
data
class
Params
Module Contents
Params
(
doProcess
:
Boolean
,
defaultVerString
:
String
?
,
resourceLoader
:
Class
<
*
>
?
,
resourcePrefix
:
String
,
parserOptions
:
ParserOptions
?
=
null
)
@JvmStatic
val
defaultNoProcess
:
Params
@JvmStatic
val
defaultProcess
:
Params
val
defaultVerString
:
String
?
val
doProcess
:
Boolean
val
parserOptions
:
ParserOptions
?
val
resourceLoader
:
Class
<
*
>
?
val
resourcePrefix
:
String
protected
val
params
:
Params
@JvmOverloads
open
fun
parse
(
sourceCode
:
String
,
version
:
String
?
=
null
)
:
T
@JvmOverloads
open
fun
parseClass
(
clazz
:
Class
<
*
>
,
version
:
String
?
=
null
)
:
T
@JvmOverloads
open
fun
parseResource
(
resource
:
String
,
version
:
String
?
=
null
)
:
T
protected
fun
readResource
(
resourceName
:
String
)
:
String
fun
withDefaultVersion
(
version
:
String
?
)
:
Self
fun
withParserOptions
(
parserOptions
:
ParserOptions
?
)
:
Self
@JvmOverloads
fun
withResourceContext
(
contextClass
:
Class
<
*
>
,
resourcePrefix
:
String
=
""
)
:
Self
kotlin.reflect.KCallable
Module Contents
infix
fun
<
N
,
V
:
N
>
KCallable
<
N
>
.
shouldBe
(
expected
:
V
?
)
:
Unit
infix
fun
<
N
,
V
:
N
>
KCallable
<
N
>
.
shouldEqual
(
expected
:
V
?
)
:
Unit
infix
fun
<
T
>
KCallable
<
T
>
.
shouldMatch
(
expected
:
T
.
(
)
->
Unit
)
:
Unit
inline
fun
<
reified
N
:
Node
>
matchNode
(
ignoreChildren
:
Boolean
=
false
,
noinline
nodeSpec
:
NodeSpec
<
N
>
)
:
Assertions
<
Node
?
>
net.sourceforge.pmd.lang.ast.Node
Module Contents
fun
Node
.
safeGetChild
(
i
:
Int
)
:
Node
?
inline
fun
<
reified
N
:
Node
>
Node
?
.
shouldMatchNode
(
ignoreChildren
:
Boolean
=
false
,
noinline
nodeSpec
:
NodeSpec
<
N
>
)
:
Unit
typealias
NodeSpec
<
N
>
=
TreeNodeWrapper
<
Node
,
N
>
.
(
)
->
Unit
object
NodeTreeLikeAdapter
:
TreeLikeAdapter
<
Node
>
Module Contents
fun
getChildren
(
node
:
Node
)
:
List
<
Node
>
fun
nodeName
(
type
:
Class
<
out
Node
>
)
:
String