Module md.grammar

Interface Context

    • Method Detail

      • getKey

        String getKey​(int position)
        Returns a key by its position
        Parameters:
        position - position in a key array, 0-based
        Returns:
        the key or null if position exceeds the size of the key array
      • getKeys

        String[] getKeys()
        An array of keywords. Position may be significant.
        Returns:
        an array of key words or EMPTY_CONTEXT if no keys are known
      • getKeyValue

        String getKeyValue​(String key)
        Returns a value assuming that context keys are formed as key-value pairs (possibly after positional keys)
        Parameters:
        key - key to match
        Returns:
        the value after the matching key or null if the key is not found
      • getLevel

        int getLevel()
        Returns:
        outline level, 1-based