protected class SecureASTCustomizer.SecuringCodeVisitor extends Object implements GroovyCodeVisitor
This visitor directly implements the GroovyCodeVisitor interface instead of using the CodeVisitorSupport class to make sure that future features of the language gets managed by this visitor. Thus, adding a new feature would result in a compilation error if this visitor is not updated.
Checks that a given expression is either in the allowed list or not in the disallowed list.
expression
- the expression to be checkedChecks that a given statement is either in the allowed list or not in the disallowed list.
statement
- the statement to be checkedChecks that a given token is either in the allowed list or not in the disallowed list.
token
- the token to be checked