Class JexlSandbox.BlockSet

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Set<java.lang.String> names
      The set of controlled names.
    • Constructor Summary

      Constructors 
      Constructor Description
      BlockSet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(java.lang.String name)
      Adds a name to this set.
      protected JexlSandbox.Names copy()  
      java.lang.String get​(java.lang.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
    • Field Detail

      • names

        private java.util.Set<java.lang.String> names
        The set of controlled names.
    • Constructor Detail

      • BlockSet

        BlockSet()
    • Method Detail

      • add

        public boolean add​(java.lang.String name)
        Description copied from class: JexlSandbox.Names
        Adds a name to this set.
        Specified by:
        add in class JexlSandbox.Names
        Parameters:
        name - the name to add
        Returns:
        true if the name was really added, false if not
      • get

        public java.lang.String get​(java.lang.String name)
        Description copied from class: JexlSandbox.Names
        Whether a given name is allowed or not.
        Overrides:
        get in class JexlSandbox.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