Class AntlrUrl
java.lang.Object
cool.klass.model.converter.compiler.state.AntlrElement
cool.klass.model.converter.compiler.state.service.url.AntlrUrl
- All Implemented Interfaces:
IAntlrElement
-
Field Summary
FieldsFields inherited from class cool.klass.model.converter.compiler.state.AntlrElement
AMBIGUOUS_PARENT, compilationUnit, elementContext, NOT_FOUND_PARENT -
Constructor Summary
ConstructorsConstructorDescriptionAntlrUrl(KlassParser.UrlDeclarationContext elementContext, Optional<CompilationUnit> compilationUnit, AntlrServiceGroup serviceGroup) -
Method Summary
Modifier and TypeMethodDescriptionbuild()voidenterPathParameterDeclaration(AntlrParameter pathParameter) voidenterQueryParameterDeclaration(AntlrParameter queryParameter) voidenterUrlConstant(AntlrUrlConstant antlrUrlConstant) voidexitServiceDeclaration(AntlrService antlrService) org.eclipse.collections.api.tuple.Pair<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.Token> org.eclipse.collections.api.map.OrderedMap<String,AntlrParameter> org.eclipse.collections.api.list.ImmutableList<Object>intintorg.eclipse.collections.api.list.MutableList<AntlrService>booleanvoidreportErrors(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, getContextAfter, getEntireContext, getSurroundingElement, getSurroundingElements, reportAuditErrors
-
Field Details
-
AMBIGUOUS
-
-
Constructor Details
-
AntlrUrl
public AntlrUrl(@Nonnull KlassParser.UrlDeclarationContext elementContext, @Nonnull Optional<CompilationUnit> compilationUnit, @Nonnull AntlrServiceGroup serviceGroup)
-
-
Method Details
-
getSurroundingElement
-
isContext
public boolean isContext() -
getContextBefore
public org.eclipse.collections.api.tuple.Pair<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.Token> getContextBefore() -
getServiceGroup
-
getServices
-
getServiceByContext
-
getNumPathSegments
public int getNumPathSegments() -
getNumQueryParameters
public int getNumQueryParameters() -
enterUrlConstant
-
enterPathParameterDeclaration
-
enterQueryParameterDeclaration
-
exitServiceDeclaration
-
reportErrors
-
getElementContext
- Specified by:
getElementContextin interfaceIAntlrElement- Overrides:
getElementContextin classAntlrElement
-
getFormalParametersByName
@Nonnull public org.eclipse.collections.api.map.OrderedMap<String,AntlrParameter> getFormalParametersByName() -
getNormalizedPathSegments
-
build
-
getElementBuilder
- Overrides:
getElementBuilderin classAntlrElement
-