Class AntlrNamedElement

All Implemented Interfaces:
IAntlrElement
Direct Known Subclasses:
AntlrIdentifierElement, AntlrPackage

public abstract class AntlrNamedElement extends AntlrOrdinalElement
  • Field Details

    • PACKAGE_NAME_PATTERN

      protected static final Pattern PACKAGE_NAME_PATTERN
    • TYPE_NAME_PATTERN

      protected static final Pattern TYPE_NAME_PATTERN
    • MEMBER_NAME_PATTERN

      protected static final Pattern MEMBER_NAME_PATTERN
    • CONSTANT_NAME_PATTERN

      protected static final Pattern CONSTANT_NAME_PATTERN
    • JAVA_KEYWORDS

      protected static final org.eclipse.collections.api.list.ImmutableList<String> JAVA_KEYWORDS
    • JAVA_LITERALS

      protected static final org.eclipse.collections.api.list.ImmutableList<String> JAVA_LITERALS
    • SQL_KEYWORDS

      protected static final org.eclipse.collections.api.list.ImmutableList<String> SQL_KEYWORDS
    • RELADOMO_TYPES

      protected static final org.eclipse.collections.api.list.ImmutableList<String> RELADOMO_TYPES
    • nameContext

      @Nonnull protected final org.antlr.v4.runtime.ParserRuleContext nameContext
  • Constructor Details

    • AntlrNamedElement

      protected AntlrNamedElement(@Nonnull org.antlr.v4.runtime.ParserRuleContext elementContext, @Nonnull Optional<CompilationUnit> compilationUnit, int ordinal, @Nonnull org.antlr.v4.runtime.ParserRuleContext nameContext)
  • Method Details

    • getNameContext

      @Nonnull public org.antlr.v4.runtime.ParserRuleContext getNameContext()
    • getName

      @Nonnull public String getName()
    • reportNameErrors

      public void reportNameErrors(@Nonnull CompilerAnnotationHolder compilerAnnotationHolder)
    • getNamePattern

      protected abstract Pattern getNamePattern()
    • reportKeywordCollision

      protected void reportKeywordCollision(@Nonnull CompilerAnnotationHolder compilerAnnotationHolder)
    • toString

      public String toString()
      Overrides:
      toString in class AntlrElement