Class Permissions.DenyAllPackage
java.lang.Object
org.apache.commons.jexl3.internal.introspection.Permissions.NoJexlPackage
org.apache.commons.jexl3.internal.introspection.Permissions.DenyAllPackage
- All Implemented Interfaces:
Permissions.Copyable<Permissions.NoJexlPackage>
- Enclosing class:
- Permissions
A package where ALL unlisted classes are denied.
The symmetric counterpart of Permissions.JexlPackage: created by compose() when class-specific
exceptions are added to a package previously marked as Permissions.Markers.NOJEXL_PACKAGE.
The deny-all-unlisted semantics of the base are preserved while allowing individually declared classes.
-
Field Summary
Fields inherited from class org.apache.commons.jexl3.internal.introspection.Permissions.NoJexlPackage
nojexl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()(package private) Permissions.NoJexlClass(package private) booleanWhether this package denies all unlisted classes (deny-all-unlisted semantics).Methods inherited from class org.apache.commons.jexl3.internal.introspection.Permissions.NoJexlPackage
addNoJexl, hasAllowedClass, isEmpty, isPositive
-
Constructor Details
-
DenyAllPackage
DenyAllPackage(Map<String, Permissions.NoJexlClass> map)
-
-
Method Details
-
getNoJexl
- Overrides:
getNoJexlin classPermissions.NoJexlPackage
-
isDenyAll
boolean isDenyAll()Description copied from class:Permissions.NoJexlPackageWhether this package denies all unlisted classes (deny-all-unlisted semantics).Returns
truefor thePermissions.Markers.NOJEXL_PACKAGEsentinel andPermissions.DenyAllPackageinstances;falsefor all other package types.- Overrides:
isDenyAllin classPermissions.NoJexlPackage- Returns:
- true if unlisted classes are denied by default
-
copy
- Specified by:
copyin interfacePermissions.Copyable<Permissions.NoJexlPackage>- Overrides:
copyin classPermissions.NoJexlPackage
-