org.apache.commons.jexl3.internal.introspection
Class Permissions

java.lang.Object
  extended by org.apache.commons.jexl3.internal.introspection.Permissions

public class Permissions
extends Object

Checks whether an element (ctor, field or method) is visible by JEXL introspection by checking if has been annotated with NoJexl.


Method Summary
static boolean allow(Class<?> clazz)
          Checks whether a class or one of its superclasses or implemented interfaces explicitly disallows JEXL introspection.
static boolean allow(Constructor<?> ctor)
          Checks whether a constructor explicitly disallows JEXL introspection.
static boolean allow(Field field)
          Checks whether a field explicitly disallows JEXL introspection.
static boolean allow(Method method)
          Checks whether a method explicitly disallows JEXL introspection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

allow

public static boolean allow(Class<?> clazz)
Checks whether a class or one of its superclasses or implemented interfaces explicitly disallows JEXL introspection.

Parameters:
clazz - the class to check
Returns:
true if JEXL is allowed to introspect, false otherwise

allow

public static boolean allow(Constructor<?> ctor)
Checks whether a constructor explicitly disallows JEXL introspection.

Parameters:
ctor - the constructor to check
Returns:
true if JEXL is allowed to introspect, false otherwise

allow

public static boolean allow(Field field)
Checks whether a field explicitly disallows JEXL introspection.

Parameters:
field - the field to check
Returns:
true if JEXL is allowed to introspect, false otherwise

allow

public static boolean allow(Method method)
Checks whether a method explicitly disallows JEXL introspection.

Since methods can be overriden, this also checks that no superclass or interface explictly disallows this methods.

Parameters:
method - the method to check
Returns:
true if JEXL is allowed to introspect, false otherwise


Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.