Class AntlrProjection
java.lang.Object
cool.klass.model.converter.compiler.state.AntlrElement
cool.klass.model.converter.compiler.state.AntlrOrdinalElement
cool.klass.model.converter.compiler.state.AntlrNamedElement
cool.klass.model.converter.compiler.state.AntlrIdentifierElement
cool.klass.model.converter.compiler.state.projection.AntlrProjectionParent
cool.klass.model.converter.compiler.state.projection.AntlrProjection
- All Implemented Interfaces:
AntlrTopLevelElement,IAntlrElement
-
Field Summary
FieldsFields inherited from class cool.klass.model.converter.compiler.state.projection.AntlrProjectionParent
children, childrenByName, classifierFields inherited from class cool.klass.model.converter.compiler.state.AntlrIdentifierElement
AMBIGUOUS_IDENTIFIER_CONTEXT, NOT_FOUND_IDENTIFIER_CONTEXTFields inherited from class cool.klass.model.converter.compiler.state.AntlrNamedElement
CONSTANT_NAME_PATTERN, JAVA_KEYWORDS, JAVA_LITERALS, MEMBER_NAME_PATTERN, nameContext, PACKAGE_NAME_PATTERN, RELADOMO_TYPES, SQL_KEYWORDS, TYPE_NAME_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
ConstructorsConstructorDescriptionAntlrProjection(KlassParser.ProjectionDeclarationContext elementContext, Optional<CompilationUnit> compilationUnit, int ordinal, KlassParser.IdentifierContext nameContext, AntlrCompilationUnit compilationUnitState, AntlrClassifier classifier, String packageName) -
Method Summary
Modifier and TypeMethodDescriptionbuild()voidbuild2()org.eclipse.collections.api.tuple.Pair<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.Token> protected PatternvoidreportErrors(CompilerAnnotationHolder compilerAnnotationHolder) protected voidreportForwardReference(CompilerAnnotationHolder compilerAnnotationHolder) Methods inherited from class cool.klass.model.converter.compiler.state.projection.AntlrProjectionParent
enterAntlrProjectionMember, getChildren, getClassifier, getDuplicateMemberNames, getNumChildrenMethods inherited from class cool.klass.model.converter.compiler.state.AntlrIdentifierElement
getNameContextMethods inherited from class cool.klass.model.converter.compiler.state.AntlrNamedElement
getName, reportKeywordCollision, reportNameErrors, toStringMethods inherited from class cool.klass.model.converter.compiler.state.AntlrOrdinalElement
getOrdinalMethods inherited from class cool.klass.model.converter.compiler.state.AntlrElement
getCompilationUnit, 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.AntlrTopLevelElement
getBlockContext, getContextAfter, getName, getOrdinal, isContext, reportDuplicateTopLevelName, reportNameErrorsMethods inherited from interface cool.klass.model.converter.compiler.state.IAntlrElement
gatherSurroundingElements, getCompilationUnit, getEntireContext, getMacroElement, getSurroundingElement, getSurroundingElements, reportAuditErrors
-
Field Details
-
AMBIGUOUS
-
NOT_FOUND
-
-
Constructor Details
-
AntlrProjection
public AntlrProjection(@Nonnull KlassParser.ProjectionDeclarationContext elementContext, @Nonnull Optional<CompilationUnit> compilationUnit, int ordinal, @Nonnull KlassParser.IdentifierContext nameContext, @Nonnull AntlrCompilationUnit compilationUnitState, @Nonnull AntlrClassifier classifier, String packageName)
-
-
Method Details
-
getSurroundingElement
- Specified by:
getSurroundingElementin interfaceAntlrTopLevelElement- Specified by:
getSurroundingElementin interfaceIAntlrElement
-
getContextBefore
public org.eclipse.collections.api.tuple.Pair<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.Token> getContextBefore()- Specified by:
getContextBeforein interfaceAntlrTopLevelElement- Specified by:
getContextBeforein interfaceIAntlrElement
-
getElementContext
- Specified by:
getElementContextin interfaceIAntlrElement- Overrides:
getElementContextin classAntlrElement
-
getNamePattern
- Specified by:
getNamePatternin classAntlrNamedElement
-
build
-
build2
public void build2() -
getElementBuilder
- Specified by:
getElementBuilderin interfaceAntlrTopLevelElement- Specified by:
getElementBuilderin classAntlrProjectionParent
-
reportErrors
- Specified by:
reportErrorsin interfaceAntlrTopLevelElement- Overrides:
reportErrorsin classAntlrProjectionParent
-
reportForwardReference
-