Class VariableScopeResolver

  • All Implemented Interfaces:
    Resolver

    public class VariableScopeResolver
    extends java.lang.Object
    implements Resolver
    Bindings implementation using an ExecutionImpl as 'back-end'.
    Author:
    Tom Baeyens, Joram Barrez
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsKey​(java.lang.Object key)
      Allows checking whether there is currently an object bound to the key.
      java.lang.Object get​(java.lang.Object key)
      Returns the object currently bound to the key or false if no object is currently bound to the key
      java.util.Set<java.lang.String> keySet()
      Returns the set of key that can be resolved using this resolver.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • variableScopeKey

        protected java.lang.String variableScopeKey
    • Constructor Detail

      • VariableScopeResolver

        public VariableScopeResolver​(VariableScope variableScope)
    • Method Detail

      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Description copied from interface: Resolver
        Allows checking whether there is currently an object bound to the key.
        Specified by:
        containsKey in interface Resolver
        Parameters:
        key - the key to check
        Returns:
        true if there is currently an object bound to the key. False otherwise.
      • get

        public java.lang.Object get​(java.lang.Object key)
        Description copied from interface: Resolver
        Returns the object currently bound to the key or false if no object is currently bound to the key
        Specified by:
        get in interface Resolver
        Parameters:
        key - the key of the object to retrieve.
        Returns:
        the object currently bound to the key or 'null' if no object is currently bound to the key.
      • keySet

        public java.util.Set<java.lang.String> keySet()
        Description copied from interface: Resolver
        Returns the set of key that can be resolved using this resolver.
        Specified by:
        keySet in interface Resolver
        Returns:
        the set of keys that can be resolved by this resolver.