Class JexlSandbox.BlockSet
- java.lang.Object
-
- org.apache.commons.jexl3.introspection.JexlSandbox.Names
-
- org.apache.commons.jexl3.introspection.JexlSandbox.BlockSet
-
- Direct Known Subclasses:
JexlSandbox.BlackSet
- Enclosing class:
- JexlSandbox
static class JexlSandbox.BlockSet extends JexlSandbox.Names
A block set of names.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<java.lang.String>namesThe set of controlled names.
-
Constructor Summary
Constructors Constructor Description BlockSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(java.lang.String name)Adds a name to this set.protected JexlSandbox.Namescopy()Gets a copy of these Namesjava.lang.Stringget(java.lang.String name)Gets whether a given name is allowed or not.java.lang.StringtoString()-
Methods inherited from class org.apache.commons.jexl3.introspection.JexlSandbox.Names
alias
-
-
-
-
Method Detail
-
add
public boolean add(java.lang.String name)
Description copied from class:JexlSandbox.NamesAdds a name to this set.- Specified by:
addin classJexlSandbox.Names- Parameters:
name- the name to add- Returns:
- true if the name was really added, false if not
-
copy
protected JexlSandbox.Names copy()
Description copied from class:JexlSandbox.NamesGets a copy of these Names- Overrides:
copyin classJexlSandbox.Names- Returns:
- a copy of these Names
-
get
public java.lang.String get(java.lang.String name)
Description copied from class:JexlSandbox.NamesGets whether a given name is allowed or not.- Overrides:
getin classJexlSandbox.Names- Parameters:
name- the method/property name to check- Returns:
- null (or NULL if name is null) if not allowed, the actual name to use otherwise
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-