Class AntlrService
java.lang.Object
cool.klass.model.converter.compiler.state.AntlrElement
cool.klass.model.converter.compiler.state.service.AntlrService
- All Implemented Interfaces:
IAntlrElement,AntlrOrderByOwner
-
Field Summary
FieldsFields inherited from class cool.klass.model.converter.compiler.state.AntlrElement
AMBIGUOUS_PARENT, compilationUnit, elementContext, NOT_FOUND_PARENT -
Constructor Summary
ConstructorsConstructorDescriptionAntlrService(KlassParser.ServiceDeclarationContext elementContext, Optional<CompilationUnit> compilationUnit, AntlrUrl url, AntlrVerb verb) -
Method Summary
Modifier and TypeMethodDescriptionbuild()voidenterOrderByDeclaration(AntlrOrderBy orderBy) voidenterServiceCriteriaDeclaration(AntlrServiceCriteria serviceCriteria) voidenterServiceMultiplicityDeclaration(AntlrServiceMultiplicity serviceMultiplicity) voidenterServiceProjectionDispatch(AntlrServiceProjectionDispatch projectionDispatch) org.eclipse.collections.api.tuple.Pair<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.Token> org.eclipse.collections.api.tuple.Pair<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.Token> org.eclipse.collections.api.list.MutableList<AntlrServiceCriteria>getUrl()getVerb()booleanprotected voidreportDuplicateKeywords(CompilerAnnotationHolder compilerAnnotationHolder) voidreportDuplicateVerb(CompilerAnnotationHolder compilerAnnotationHolder) voidreportErrors(CompilerAnnotationHolder compilerAnnotationHolder) Methods inherited from class cool.klass.model.converter.compiler.state.AntlrElement
getCompilationUnit, getMacroElement, getMacroElementBuilder, getSourceCodeBuilder, getSourceText, getSourceTextLenient, hasMacro, isForwardReference, isInSameCompilationUnit, toStringMethods 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, getCompilationUnit, getEntireContext, getMacroElement, getSurroundingElement, getSurroundingElements, reportAuditErrors
-
Field Details
-
AMBIGUOUS
-
-
Constructor Details
-
AntlrService
public AntlrService(@Nonnull KlassParser.ServiceDeclarationContext elementContext, @Nonnull Optional<CompilationUnit> compilationUnit, @Nonnull AntlrUrl url, @Nonnull AntlrVerb verb)
-
-
Method Details
-
getSurroundingElement
- Specified by:
getSurroundingElementin interfaceIAntlrElement
-
isContext
public boolean isContext()- Specified by:
isContextin interfaceIAntlrElement
-
getContextBefore
public org.eclipse.collections.api.tuple.Pair<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.Token> getContextBefore()- Specified by:
getContextBeforein interfaceIAntlrElement
-
getContextAfter
public org.eclipse.collections.api.tuple.Pair<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.Token> getContextAfter()- Specified by:
getContextAfterin interfaceIAntlrElement
-
getUrl
-
getServiceMultiplicity
-
getServiceCriterias
-
getServiceCriteriaByContext
public AntlrServiceCriteria getServiceCriteriaByContext(KlassParser.ServiceCriteriaDeclarationContext ctx) -
reportDuplicateVerb
-
enterServiceCriteriaDeclaration
-
enterServiceProjectionDispatch
public void enterServiceProjectionDispatch(@Nonnull AntlrServiceProjectionDispatch projectionDispatch) -
reportErrors
-
reportDuplicateKeywords
-
getVerb
-
enterServiceMultiplicityDeclaration
public void enterServiceMultiplicityDeclaration(@Nonnull AntlrServiceMultiplicity serviceMultiplicity) -
enterOrderByDeclaration
- Specified by:
enterOrderByDeclarationin interfaceAntlrOrderByOwner
-
getOrderBy
- Specified by:
getOrderByin interfaceAntlrOrderByOwner
-
build
-
getElementBuilder
- Overrides:
getElementBuilderin classAntlrElement
-
getElementContext
- Specified by:
getElementContextin interfaceIAntlrElement- Overrides:
getElementContextin classAntlrElement
-