Class Sandbox.BlackSet
- java.lang.Object
-
- org.apache.commons.jexl2.introspection.Sandbox.Names
-
- org.apache.commons.jexl2.introspection.Sandbox.BlackSet
-
- Enclosing class:
- Sandbox
public static final class Sandbox.BlackSet extends Sandbox.Names
A black set of names.
-
-
Constructor Summary
Constructors Constructor Description BlackSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(java.lang.String name)
Adds a name to this set.java.lang.String
get(java.lang.String name)
Whether a given name is allowed or not.-
Methods inherited from class org.apache.commons.jexl2.introspection.Sandbox.Names
alias
-
-
-
-
Method Detail
-
add
public boolean add(java.lang.String name)
Description copied from class:Sandbox.Names
Adds a name to this set.- Specified by:
add
in classSandbox.Names
- Parameters:
name
- the name to add- Returns:
- true if the name was really added, false if not
-
get
public java.lang.String get(java.lang.String name)
Description copied from class:Sandbox.Names
Whether a given name is allowed or not.- Overrides:
get
in classSandbox.Names
- Parameters:
name
- the method/property name to check- Returns:
- null if not allowed, the actual name to use otherwise
-
-