JavaCheck, JavaFileScannerBooleanGratuitousExpressionsCheck, ConditionalUnreachableCodeCheck, CustomUnclosedResourcesCheck, DebugInterruptedExecutionCheck, DebugMethodYieldsCheck, DebugMethodYieldsOnInvocationsCheck, DivisionByZeroCheck, InvariantReturnCheck, LocksNotUnlockedCheck, MapComputeIfAbsentOrPresentCheck, NonNullSetToNullCheck, NoWayOutLoopCheck, NullDereferenceCheck, OptionalGetBeforeIsPresentCheck, ParameterNullnessCheck, RedundantAssignmentsCheck, StreamConsumedCheck, StreamNotConsumedCheck, UnclosedResourcesCheckpublic abstract class SECheck extends Object implements JavaFileScanner
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
SECheck.SEIssue |
| Modifier and Type | Field | Description |
|---|---|---|
protected Set<SECheck.SEIssue> |
issues |
| Constructor | Description |
|---|---|
SECheck() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
checkEndOfExecution(CheckerContext context) |
|
void |
checkEndOfExecutionPath(CheckerContext context,
ConstraintManager constraintManager) |
|
ProgramState |
checkPostStatement(CheckerContext context,
Tree syntaxNode) |
|
ProgramState |
checkPreStatement(CheckerContext context,
Tree syntaxNode) |
|
void |
init(MethodTree methodTree,
CFG cfg) |
|
void |
interruptedExecution(CheckerContext context) |
|
void |
reportIssue(Tree tree,
String message) |
|
void |
reportIssue(Tree tree,
String message,
Set<Flow> flows) |
|
void |
scanFile(JavaFileScannerContext context) |
Method called after parsing and semantic analysis has been done on file.
|
protected Set<SECheck.SEIssue> issues
public void init(MethodTree methodTree, CFG cfg)
public ProgramState checkPreStatement(CheckerContext context, Tree syntaxNode)
public ProgramState checkPostStatement(CheckerContext context, Tree syntaxNode)
public void checkEndOfExecution(CheckerContext context)
public void checkEndOfExecutionPath(CheckerContext context, ConstraintManager constraintManager)
public void scanFile(JavaFileScannerContext context)
JavaFileScannerscanFile in interface JavaFileScannercontext - Context of analysis containing the parsed tree.public void interruptedExecution(CheckerContext context)
Copyright © 2012–2018 SonarSource. All rights reserved.