public abstract static class JexlSandbox.Names extends Object
Constructor and Description |
---|
Names() |
Modifier and Type | Method and Description |
---|---|
abstract 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.
|
protected JexlSandbox.Names |
copy() |
String |
get(String name)
Whether a given name is allowed or not.
|
public Names()
public abstract boolean add(String name)
name
- the name to addpublic boolean alias(String name, String alias)
This only has an effect on allow lists.
name
- the name to aliasalias
- the aliaspublic String get(String name)
name
- the method/property name to checkprotected JexlSandbox.Names copy()
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.