Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.jexl3.introspection
Class JexlSandbox.Names

    java.lang.Object
      org.apache.commons.jexl3.introspection.JexlSandbox.Names

Direct Known Subclasses:
  JexlSandbox.BlackSet, JexlSandbox.WhiteSet

Enclosing class:
  JexlSandbox

    public abstract static class JexlSandbox.Names

extends Object

A base set of names.

Constructor Summary
`JexlSandbox.Names()`

Method Summary
`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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### JexlSandbox.Names

    public JexlSandbox.Names()

Method Detail

### add

    public abstract boolean add(String name)

  Adds a name to this set.

  Parameters:
    `name` - the name to add
  Returns:
    true if the name was really added, false if not

### alias

    public boolean alias(String name,
                         String alias)

  Adds an alias to a name to this set.

  This only has an effect on white lists.

  Parameters:
    `name` - the name to alias
    `alias` - the alias
  Returns:
    true if the alias was added, false if it was already present

### get

    public String get(String name)

  Whether a given name is allowed or not.

  Parameters:
    `name` - the method/property name to check
  Returns:
    null if not allowed, the actual name to use otherwise

### copy

    protected JexlSandbox.Names copy()

  Returns:
    a copy of these Names

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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