Class RegularExpression

    • Constructor Detail

      • RegularExpression

        public RegularExpression​(Grammar grammar)
      • RegularExpression

        public RegularExpression()
    • Method Detail

      • getCodeSnippet

        public CodeBlock getCodeSnippet()
      • getIgnoreCase

        protected boolean getIgnoreCase()
      • getOrdinal

        public final int getOrdinal()
      • setOrdinal

        protected final void setOrdinal​(int id)
      • getLHS

        public Name getLHS()
      • setLHS

        public void setLHS​(Name lhs)
      • setNewLexicalState

        public void setNewLexicalState​(LexicalStateData newLexicalState)
      • isPrivate

        public boolean isPrivate()
      • getImage

        public String getImage()
      • setPrivate

        public void setPrivate​(boolean _private)
      • getGeneratedClassName

        public String getGeneratedClassName()
      • setGeneratedClassName

        public void setGeneratedClassName​(String generatedClassName)
      • getGeneratedSuperClassName

        public String getGeneratedSuperClassName()
      • setGeneratedSuperClassName

        public void setGeneratedSuperClassName​(String generatedSuperClassName)
      • isPossiblyEmpty

        public final boolean isPossiblyEmpty()
        Specified by:
        isPossiblyEmpty in class Expansion
        Returns:
        Can this expansion be matched by the empty string.
      • getMinimumSize

        public final int getMinimumSize()
        Specified by:
        getMinimumSize in class Expansion
        Returns:
        the minimum number of tokens that this expansion consumes.
      • getMaximumSize

        public final int getMaximumSize()
        Specified by:
        getMaximumSize in class Expansion
        Returns:
        the maximum number of tokens that this expansion consumes.
      • matchesEmptyString

        public abstract boolean matchesEmptyString()