Class EmptyVariableContext

  • All Implemented Interfaces:
    VariableContext

    public class EmptyVariableContext
    extends java.lang.Object
    implements VariableContext
    An empty variable context implementation which does not allow to resolve any variables.
    Author:
    Daniel Meyer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsVariable​(java.lang.String variableName)
      Checks whether a variable with the given name is resolve through this context.
      java.util.Set<java.lang.String> keySet()  
      TypedValue resolve​(java.lang.String variableName)
      Resolve a value in this context.
      • Methods inherited from class java.lang.Object

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

      • resolve

        public TypedValue resolve​(java.lang.String variableName)
        Description copied from interface: VariableContext
        Resolve a value in this context.
        Specified by:
        resolve in interface VariableContext
        Parameters:
        variableName - the name of the variable to resolve.
        Returns:
        the value of the variable or null in case the variable does not exist.
      • containsVariable

        public boolean containsVariable​(java.lang.String variableName)
        Description copied from interface: VariableContext
        Checks whether a variable with the given name is resolve through this context.
        Specified by:
        containsVariable in interface VariableContext
        Parameters:
        variableName - the name of the variable to check
        Returns:
        true if the variable is resolve.
      • keySet

        public java.util.Set<java.lang.String> keySet()
        Specified by:
        keySet in interface VariableContext
        Returns:
        a set of all variable names resolvable through this Context.