Class Permissions.JexlClass
java.lang.Object
org.apache.commons.jexl3.internal.introspection.Permissions.NoJexlClass
org.apache.commons.jexl3.internal.introspection.Permissions.JexlClass
- All Implemented Interfaces:
Permissions.Copyable<Permissions.NoJexlClass>
- Enclosing class:
- Permissions
A positive NoJexl construct that defines what is denied by absence in the set.
Field or method that are named are the only one allowed access.
-
Field Summary
Fields inherited from class org.apache.commons.jexl3.internal.introspection.Permissions.NoJexlClass
fieldNames, methodNames -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()(package private) booleandeny(Constructor<?> method) (package private) boolean(package private) boolean(package private) booleanWhether this is a positive (allow-oriented) class declaration.Methods inherited from class org.apache.commons.jexl3.internal.introspection.Permissions.NoJexlClass
isEmpty
-
Constructor Details
-
JexlClass
-
JexlClass
JexlClass()
-
-
Method Details
-
copy
- Specified by:
copyin interfacePermissions.Copyable<Permissions.NoJexlClass>- Overrides:
copyin classPermissions.NoJexlClass
-
deny
- Overrides:
denyin classPermissions.NoJexlClass
-
deny
- Overrides:
denyin classPermissions.NoJexlClass
-
deny
- Overrides:
denyin classPermissions.NoJexlClass
-
isPositive
boolean isPositive()Description copied from class:Permissions.NoJexlClassWhether this is a positive (allow-oriented) class declaration.A positive class is explicitly allowed in its package (it contributes to
Permissions.NoJexlPackage.hasAllowedClass()and an empty one means "allow the whole class"). A plain deny-listNoJexlClassis not positive.- Overrides:
isPositivein classPermissions.NoJexlClass- Returns:
- true if the class is positively allowed, false if it is a deny-list
-