Class AntlrParameter
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.parameter.AntlrParameter
- All Implemented Interfaces:
AntlrMultiplicityOwner,IAntlrElement
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionAntlrParameter(org.antlr.v4.runtime.ParserRuleContext elementContext, Optional<CompilationUnit> compilationUnit, int ordinal, KlassParser.IdentifierContext nameContext, AntlrType type, IAntlrElement parameterOwner) -
Method Summary
Modifier and TypeMethodDescriptionbuild()voidenterModifier(AntlrModifier modifier) voidenterMultiplicity(AntlrMultiplicity multiplicity) org.eclipse.collections.api.tuple.Pair<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.Token> protected PatternintgetType()voidreportDuplicateParameterName(CompilerAnnotationHolder compilerAnnotationHolder) voidreportErrors(CompilerAnnotationHolder compilerAnnotationHolder) Methods 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, 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, getCompilationUnit, getContextAfter, getElementContext, getEntireContext, getMacroElement, getSurroundingElement, getSurroundingElements, isContext, reportAuditErrors
-
Field Details
-
AMBIGUOUS
-
NOT_FOUND
-
-
Constructor Details
-
AntlrParameter
public AntlrParameter(@Nonnull org.antlr.v4.runtime.ParserRuleContext elementContext, @Nonnull Optional<CompilationUnit> compilationUnit, int ordinal, @Nonnull KlassParser.IdentifierContext nameContext, @Nonnull AntlrType type, @Nonnull IAntlrElement parameterOwner)
-
-
Method Details
-
getSurroundingElement
- 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 interfaceIAntlrElement
-
getNamePattern
- Specified by:
getNamePatternin classAntlrNamedElement
-
getNumModifiers
public int getNumModifiers() -
enterMultiplicity
- Specified by:
enterMultiplicityin interfaceAntlrMultiplicityOwner
-
enterModifier
-
reportErrors
-
reportDuplicateParameterName
public void reportDuplicateParameterName(@Nonnull CompilerAnnotationHolder compilerAnnotationHolder) -
getType
-
build
-
getElementBuilder
- Overrides:
getElementBuilderin classAntlrElement
-