|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jexl2.introspection.Sandbox.Names org.apache.commons.jexl2.introspection.Sandbox.WhiteSet
public static final class Sandbox.WhiteSet
A white set of names.
Constructor Summary | |
---|---|
Sandbox.WhiteSet()
|
Method Summary | |
---|---|
boolean |
add(String name)
Adds a name to this set. |
boolean |
alias(String name,
String alias)
Adds an alias to a name to this set. |
String |
get(String name)
Whether a given name is allowed or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sandbox.WhiteSet()
Method Detail |
---|
public boolean add(String name)
Sandbox.Names
add
in class Sandbox.Names
name
- the name to add
public boolean alias(String name, String alias)
Sandbox.Names
This only has an effect on white lists.
alias
in class Sandbox.Names
name
- the name to aliasalias
- the alias
public String get(String name)
Sandbox.Names
get
in class Sandbox.Names
name
- the method/property name to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |