Class ContextBean


  • public class ContextBean
    extends Object
    A object model of a scope.
    Author:
    Fabio Simeoni
    • Field Detail

      • separator

        protected static String separator
        Scope separators used in linear syntax.
    • Method Detail

      • name

        public String name()
        Returns the name of the scope.
        Returns:
        the name
      • is

        public boolean is​(ContextBean.Type type)
        Returns true if the scope has a given ContextBean.Type.
        Parameters:
        type - the type
        Returns:
        true if the scope has the given type, false otherwise
      • enclosingScope

        public ContextBean enclosingScope()
        Returns the enclosing scope, if any.
        Returns:
        the enclosing scope, or null if the scope is top-level
      • toString

        public String toString()
        Returns the linear expression of the scope.
        Overrides:
        toString in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object