org.apache.commons.jexl2.introspection
Class Sandbox.BlackSet

java.lang.Object
  extended by org.apache.commons.jexl2.introspection.Sandbox.Names
      extended by 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
Sandbox.BlackSet()
           
 
Method Summary
 boolean add(String name)
          Adds a name to this set.
 String get(String name)
          Whether a given name is allowed or not.
 
Methods inherited from class org.apache.commons.jexl2.introspection.Sandbox.Names
alias
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sandbox.BlackSet

public Sandbox.BlackSet()
Method Detail

add

public boolean add(String name)
Description copied from class: Sandbox.Names
Adds a name to this set.

Specified by:
add in class Sandbox.Names
Parameters:
name - the name to add
Returns:
true if the name was really added, false if not

get

public String get(String name)
Description copied from class: Sandbox.Names
Whether a given name is allowed or not.

Overrides:
get in class Sandbox.Names
Parameters:
name - the method/property name to check
Returns:
null if not allowed, the actual name to use otherwise


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.