Class Permissions.AllowedNoJexlClass
java.lang.Object
org.apache.commons.jexl3.internal.introspection.Permissions.NoJexlClass
org.apache.commons.jexl3.internal.introspection.Permissions.AllowedNoJexlClass
- All Implemented Interfaces:
Permissions.Copyable<Permissions.NoJexlClass>
- Enclosing class:
- Permissions
A class that is positively allowed in its package yet carries deny-list member semantics.
Used for +ClassName{ -member(); } inside a deny package: the class is added to the
allowed set (so unlisted classes in the package stay denied) but the named members are denied
while all others remain allowed. It is a Permissions.NoJexlClass (deny-list) tagged as positive;
the deny-list behavior is inherited unchanged.
-
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) booleanWhether this is a positive (allow-oriented) class declaration.Methods inherited from class org.apache.commons.jexl3.internal.introspection.Permissions.NoJexlClass
deny, deny, deny, isEmpty
-
Constructor Details
-
AllowedNoJexlClass
AllowedNoJexlClass() -
AllowedNoJexlClass
-
-
Method Details
-
copy
- Specified by:
copyin interfacePermissions.Copyable<Permissions.NoJexlClass>- Overrides:
copyin 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
-