public class EntityVisitorUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityVisitorUtils.CheckParent |
static class |
EntityVisitorUtils.GetParent |
| Modifier and Type | Field and Description |
|---|---|
EntityVisitorUtils.CheckParent |
CHECK_PARENT |
EntityVisitorUtils.GetParent |
GET_PARENT |
| Constructor and Description |
|---|
EntityVisitorUtils() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isInnerMethod(MethodInfo thisMethod)
Returns true if we have such chain of parents:
|
boolean |
isParentALambdaMethod(BranchInfo thisBranch)
Returns true if we have such chain of parents:
|
boolean |
isParentALambdaMethod(StatementInfo thisStatement)
Returns true if we have such chain of parents:
|
boolean |
isParentAMethod(BranchInfo thisBranch)
Returns true if we have such chain of parents:
|
boolean |
isParentAMethod(StatementInfo thisStatement)
Returns true if we have such chain of parents:
|
boolean |
isParentAnInnerMethod(BranchInfo thisBranch)
Returns true if we have such chain of parents:
|
boolean |
isParentAnInnerMethod(StatementInfo thisStatement)
Returns true if we have such chain of parents:
|
public final EntityVisitorUtils.CheckParent CHECK_PARENT
public final EntityVisitorUtils.GetParent GET_PARENT
public boolean isInnerMethod(@NotNull
MethodInfo thisMethod)
thisMethod -> method
thisMethod - method to be checkedtrue if method is contained inside another method, false otherwisepublic boolean isParentAnInnerMethod(@NotNull
StatementInfo thisStatement)
thisStatement -> method -> method
thisStatement - statement to be checkedtrue if statement is contained inside an inner method, false otherwisepublic boolean isParentAnInnerMethod(@NotNull
BranchInfo thisBranch)
thisBranch -> method -> method
thisBranch - branch to be checkedtrue if branch is contained inside an inner method, false otherwisepublic boolean isParentALambdaMethod(@NotNull
StatementInfo thisStatement)
thisStatement -> parentMethod
and parentMethod.isLambda() returns true.thisStatement - statement to be checkedtrue if statement is contained inside an lambda method, false otherwisepublic boolean isParentALambdaMethod(@NotNull
BranchInfo thisBranch)
thisBranch -> parentMethod
and parentMethod.isLambda() returns true.thisBranch - branch to be checkedtrue if branch is contained inside an lambda method, false otherwisepublic boolean isParentAMethod(@NotNull
StatementInfo thisStatement)
thisStatement -> method
thisStatement - statement to be checkedtrue if statement is contained inside a method, false otherwisepublic boolean isParentAMethod(@NotNull
BranchInfo thisBranch)
thisBranch -> method
thisBranch - branch to be checkedtrue if statement is contained inside a method, false otherwiseCopyright © 2024 OpenClover.org. All rights reserved.