Class SingleVariableContext

    • Field Detail

      • typedValue

        protected final TypedValue typedValue
      • name

        protected java.lang.String name
    • Constructor Detail

      • SingleVariableContext

        public SingleVariableContext​(java.lang.String name,
                                     TypedValue typedValue)
    • 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
        variableName - the name of the variable to resolve.
        the value of the variable or null in case the variable does not exist.
      • containsVariable

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

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