Class AntlrNamedElement
java.lang.Object
cool.klass.model.converter.compiler.state.AntlrElement
cool.klass.model.converter.compiler.state.AntlrOrdinalElement
cool.klass.model.converter.compiler.state.AntlrNamedElement
- All Implemented Interfaces:
IAntlrElement
- Direct Known Subclasses:
AntlrIdentifierElement,AntlrPackage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Patternprotected static final org.eclipse.collections.api.list.ImmutableList<String>protected static final org.eclipse.collections.api.list.ImmutableList<String>protected static final Patternprotected final org.antlr.v4.runtime.ParserRuleContextprotected static final Patternprotected static final org.eclipse.collections.api.list.ImmutableList<String>protected static final org.eclipse.collections.api.list.ImmutableList<String>protected static final PatternFields inherited from class cool.klass.model.converter.compiler.state.AntlrOrdinalElement
ordinalFields inherited from class cool.klass.model.converter.compiler.state.AntlrElement
AMBIGUOUS_PARENT, compilationUnit, elementContext, NOT_FOUND_PARENT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAntlrNamedElement(org.antlr.v4.runtime.ParserRuleContext elementContext, Optional<CompilationUnit> compilationUnit, int ordinal, org.antlr.v4.runtime.ParserRuleContext nameContext) -
Method Summary
Modifier and TypeMethodDescriptiongetName()org.antlr.v4.runtime.ParserRuleContextprotected abstract Patternprotected voidreportKeywordCollision(CompilerAnnotationHolder compilerAnnotationHolder) voidreportNameErrors(CompilerAnnotationHolder compilerAnnotationHolder) toString()Methods inherited from class cool.klass.model.converter.compiler.state.AntlrOrdinalElement
getOrdinalMethods inherited from class cool.klass.model.converter.compiler.state.AntlrElement
getCompilationUnit, getElementBuilder, getElementContext, getMacroElement, getMacroElementBuilder, getSourceCodeBuilder, getSourceText, getSourceTextLenient, hasMacro, isForwardReference, isInSameCompilationUnitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface cool.klass.model.converter.compiler.state.IAntlrElement
gatherSurroundingElements, getContextAfter, getContextBefore, getEntireContext, getSurroundingElement, getSurroundingElement, getSurroundingElements, isContext, reportAuditErrors
-
Field Details
-
PACKAGE_NAME_PATTERN
-
TYPE_NAME_PATTERN
-
MEMBER_NAME_PATTERN
-
CONSTANT_NAME_PATTERN
-
JAVA_KEYWORDS
-
JAVA_LITERALS
-
SQL_KEYWORDS
-
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
-
reportNameErrors
-
getNamePattern
-
reportKeywordCollision
-
toString
- Overrides:
toStringin classAntlrElement
-