Class CompositeLexerContextCache.StringTemplateContext

    • Field Detail

      • mode

        private final int mode
        The lexer mode of this context.
      • curlyBraceDepth

        private final int curlyBraceDepth
        The depth of this context.
    • Constructor Detail

      • StringTemplateContext

        private StringTemplateContext​(int mode,
                                      int curlyBraceDepth)
        Creates a new TemplateContext instance.
        Parameters:
        mode - the lexer mode of this context
        curlyBraceDepth - the depth of this context
    • Method Detail

      • getMode

        public int getMode()
        Get the lexer mode of this context.
        Returns:
        current lexer mode
      • getCurlyBraceDepth

        public int getCurlyBraceDepth()
        Current depth of this context.
        Returns:
        current depth