Class VariableState

  • All Implemented Interfaces:
    edu.uiuc.ncsa.security.core.Logable, edu.uiuc.ncsa.security.util.scripting.StateInterface, Serializable
    Direct Known Subclasses:
    FunctionState

    public abstract class VariableState
    extends NamespaceAwareState

    Created by Jeff Gaynor
    on 2/2/20 at 6:42 AM

    See Also:
    Serialized Form
    • Constructor Detail

    • Method Detail

      • isDefined

        public boolean isDefined​(String symbol)
        Checks if a symbol is defined. Note that this does do stem tail resolution and namespace resolution.
        Parameters:
        symbol -
        Returns:
      • getValue

        public Object getValue​(String variableName)
        GetValue may return null if the variable has not been set.
        Parameters:
        variableName -
        Returns:
      • setValue

        public void setValue​(String variableName,
                             Object value)
      • setValue

        public void setValue​(String variableName,
                             Object value,
                             Set<XKey> checkedAliases)
      • remove

        public void remove​(String variableName)
      • gsrNSStemOp

        protected Object gsrNSStemOp​(StemMultiIndex w,
                                     int op,
                                     Object value,
                                     Set<XKey> checkInstances)
        gsr = get, set or remove. This resolves the name of the
        Parameters:
        w -
        op -
        value -
        Returns:
      • resolveStemIndex

        protected String resolveStemIndex​(String index)
      • listVariables

        public TreeSet<String> listVariables​(boolean useCompactNotation,
                                             boolean includeModules,
                                             boolean showIntrinsic,
                                             boolean showExtrinsic)
      • isStem

        public boolean isStem​(String var)
      • isExtrinsic

        public static boolean isExtrinsic​(String x)
      • getExtrinsicVars

        public VStack getExtrinsicVars()
      • setIntrinsicVariables

        public void setIntrinsicVariables​(VStack instrinsicVariables)
      • getIntrinsicVariables

        public VStack getIntrinsicVariables()