public class Permissions extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static Permissions | DEFAULTThe default singleton. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | allow(Class<?> clazz)Checks whether a class or one of its super-classes or implemented interfaces
 explicitly disallows JEXL introspection. | 
| boolean | allow(Constructor<?> ctor)Checks whether a constructor explicitly disallows JEXL introspection. | 
| boolean | allow(Field field)Checks whether a field explicitly disallows JEXL introspection. | 
| boolean | allow(Method method)Checks whether a method explicitly disallows JEXL introspection. | 
| boolean | allow(Package pack)Checks whether a package explicitly disallows JEXL introspection. | 
public static final Permissions DEFAULT
public boolean allow(Package pack)
pack - the packagepublic boolean allow(Class<?> clazz)
clazz - the class to checkpublic boolean allow(Constructor<?> ctor)
ctor - the constructor to checkpublic boolean allow(Field field)
field - the field to checkpublic boolean allow(Method method)
Since methods can be overridden, this also checks that no superclass or interface explicitly disallows this methods.
method - the method to checkCopyright © 2001–2021 The Apache Software Foundation. All rights reserved.