Class JexlPermissions.Delegate
- All Implemented Interfaces:
- JexlPermissions
- Direct Known Subclasses:
- JexlPermissions.ClassPermissions
- Enclosing interface:
- JexlPermissions
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.commons.jexl3.introspection.JexlPermissionsJexlPermissions.ClassPermissions, JexlPermissions.Delegate
- 
Field SummaryFieldsFields inherited from interface org.apache.commons.jexl3.introspection.JexlPermissionsRESTRICTED, UNRESTRICTED
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedDelegate(JexlPermissions delegate) Constructs a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanChecks whether a class allows JEXL introspection.booleanChecks whether a package allows JEXL introspection.booleanallow(Constructor<?> ctor) Checks whether a constructor allows JEXL introspection.booleanChecks whether a field explicitly disallows JEXL introspection.booleanChecks whether a method allows JEXL introspection.Compose these permissions with a new set.
- 
Field Details- 
baseThe permissions we delegate to.
 
- 
- 
Constructor Details- 
DelegateConstructs a new instance.- Parameters:
- delegate- the delegate.
 
 
- 
- 
Method Details- 
allowDescription copied from interface:JexlPermissionsChecks whether a class allows JEXL introspection.If the class disallows JEXL introspection, none of its constructors, methods or fields as well as derived classes are visible to JEXL and cannot be used in scripts or expressions. If one of its super-classes is not allowed, tbe class is not allowed either. For interfaces, only methods and fields are disallowed in derived interfaces or implementing classes. - Specified by:
- allowin interface- JexlPermissions
- Parameters:
- clazz- the class to check
- Returns:
- true if JEXL is allowed to introspect, false otherwise
 
- 
allowDescription copied from interface:JexlPermissionsChecks whether a constructor allows JEXL introspection.If a constructor is not allowed, the new operator cannot be used to instantiate its declared class in scripts or expressions. - Specified by:
- allowin interface- JexlPermissions
- Parameters:
- ctor- the constructor to check
- Returns:
- true if JEXL is allowed to introspect, false otherwise
 
- 
allowDescription copied from interface:JexlPermissionsChecks whether a field explicitly disallows JEXL introspection.If a field is not allowed, it cannot resolved and accessed in scripts or expressions. - Specified by:
- allowin interface- JexlPermissions
- Parameters:
- field- the field to check
- Returns:
- true if JEXL is allowed to introspect, false otherwise
 
- 
allowDescription copied from interface:JexlPermissionsChecks whether a method allows JEXL introspection.If a method is not allowed, it cannot resolved and called in scripts or expressions. Since methods can be overridden and overloaded, this also checks that no superclass or interface explicitly disallows this methods. - Specified by:
- allowin interface- JexlPermissions
- Parameters:
- method- the method to check
- Returns:
- true if JEXL is allowed to introspect, false otherwise
 
- 
allowDescription copied from interface:JexlPermissionsChecks whether a package allows JEXL introspection.If the package disallows JEXL introspection, none of its classes or interfaces are visible to JEXL and cannot be used in scripts or expression. - Specified by:
- allowin interface- JexlPermissions
- Parameters:
- pack- the package
- Returns:
- true if JEXL is allowed to introspect, false otherwise
 
- 
composeDescription copied from interface:JexlPermissionsCompose these permissions with a new set.This is a convenience method meant to easily give access to the packages JEXL is used to integrate with. For instance, using JexlPermissions.RESTRICTED.compose("com.my.app.*")- Specified by:
- composein interface- JexlPermissions
- Parameters:
- src- the new constraints
- Returns:
- the new permissions
 
 
-