rulebook
Toggle table of contents
0.2
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
rulebook
rulebook-checkstyle
/
com.hanggrian.rulebook.checkstyle.checks
/
RulebookAstCheck
Rulebook
Ast
Check
abstract
class
RulebookAstCheck
:
AbstractCheck
Rule that uses Java AST tree to validate a node.
Inheritors
AbstractClassDefinitionCheck
AssignmentWrapCheck
BracesTrimCheck
BuiltInFunctionPositionCheck
CaseSeparatorCheck
ChainCallWrapCheck
CommentSpaceCheck
CommentTrimCheck
DuplicateBlankLineInCommentCheck
ExceptionInheritanceCheck
IllegalClassNameSuffixCheck
LambdaWrapCheck
MemberOrderCheck
NestedIfElseCheck
NumberSuffixForDoubleCheck
NumberSuffixForFloatCheck
ParameterWrapCheck
ParenthesesTrimCheck
RedundantDefaultCheck
RedundantElseCheck
RedundantQualifierCheck
TagsTrimCheck
UnnecessaryParenthesesInLambdaCheck
UnnecessarySwitchCheck
Members
Constructors
Rulebook
Ast
Check
Link copied to clipboard
constructor
(
)
Properties
acceptable
Tokens
Link copied to clipboard
override
val
acceptableTokens
:
IntArray
default
Tokens
Link copied to clipboard
override
val
defaultTokens
:
IntArray
file
Contents
Link copied to clipboard
var
fileContents
:
FileContents
?
file
Path
Link copied to clipboard
val
filePath
:
String
?
id
Link copied to clipboard
var
id
:
String
?
is
Comment
Nodes
Required
Link copied to clipboard
open
val
isCommentNodesRequired
:
Boolean
lines
Link copied to clipboard
val
lines
:
Array
<
out
String
?
>
?
required
Tokens
Link copied to clipboard
abstract
val
requiredTokens
:
IntArray
?
severity
Link copied to clipboard
var
severity
:
String
?
severity
Level
Link copied to clipboard
val
severityLevel
:
SeverityLevel
?
tab
Width
Link copied to clipboard
protected
var
tabWidth
:
Int
token
Names
Link copied to clipboard
val
tokenNames
:
Set
<
String
?
>
?
violations
Link copied to clipboard
open
val
violations
:
SortedSet
<
Violation
?
>
?
Functions
begin
Tree
Link copied to clipboard
open
fun
beginTree
(
rootAST
:
DetailAST
?
)
clear
Violations
Link copied to clipboard
fun
clearViolations
(
)
configure
Link copied to clipboard
fun
configure
(
config
:
Configuration
?
)
contextualize
Link copied to clipboard
fun
contextualize
(
context
:
Context
?
)
destroy
Link copied to clipboard
open
fun
destroy
(
)
finish
Tree
Link copied to clipboard
open
fun
finishTree
(
rootAST
:
DetailAST
?
)
get
Acceptable
Tokens
Link copied to clipboard
override
fun
getAcceptableTokens
(
)
:
IntArray
get
Default
Tokens
Link copied to clipboard
override
fun
getDefaultTokens
(
)
:
IntArray
get
Line
Link copied to clipboard
fun
getLine
(
index
:
Int
)
:
String
?
get
Line
Code
Points
Link copied to clipboard
fun
getLineCodePoints
(
index
:
Int
)
:
IntArray
?
init
Link copied to clipboard
open
fun
init
(
)
leave
Token
Link copied to clipboard
open
fun
leaveToken
(
ast
:
DetailAST
?
)
log
Link copied to clipboard
fun
log
(
ast
:
DetailAST
?
,
key
:
String
?
,
vararg
args
:
Any
?
)
fun
log
(
line
:
Int
,
key
:
String
?
,
vararg
args
:
Any
?
)
fun
log
(
lineNo
:
Int
,
colNo
:
Int
,
key
:
String
?
,
vararg
args
:
Any
?
)
set
Tokens
Link copied to clipboard
fun
setTokens
(
vararg
strRep
:
String
?
)
visit
Token
Link copied to clipboard
open
fun
visitToken
(
ast
:
DetailAST
?
)