Class AntlrReferenceProperty<Type extends AntlrClassifier>
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.property.AntlrProperty
cool.klass.model.converter.compiler.state.property.AntlrReferenceProperty<Type>
- All Implemented Interfaces:
AntlrMultiplicityOwner,IAntlrElement,AntlrOrderByOwner
- Direct Known Subclasses:
AntlrAssociationEndSignature,AntlrClassReferenceProperty
public abstract class AntlrReferenceProperty<Type extends AntlrClassifier>
extends AntlrProperty
implements AntlrOrderByOwner, AntlrMultiplicityOwner
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AntlrReferencePropertyprotected AntlrMultiplicitystatic final AntlrReferencePropertyprotected Optional<AntlrOrderBy>Fields 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
ConstructorsModifierConstructorDescriptionprotectedAntlrReferenceProperty(org.antlr.v4.runtime.ParserRuleContext elementContext, Optional<CompilationUnit> compilationUnit, int ordinal, KlassParser.IdentifierContext nameContext) -
Method Summary
Modifier and TypeMethodDescriptionabstract ReferencePropertyImpl.ReferencePropertyBuilder<?,?, ?> build()voidenterMultiplicity(AntlrMultiplicity multiplicity) voidenterOrderByDeclaration(AntlrOrderBy orderBy) abstract ReferencePropertyImpl.ReferencePropertyBuilder<?,?, ?> abstract TypegetType()protected abstract KlassParser.IdentifierContextbooleanisOwned()booleanisToMany()booleanisToOne()booleanbooleanvoidreportErrors(CompilerAnnotationHolder compilerAnnotationHolder) protected voidreportInvalidMultiplicity(CompilerAnnotationHolder compilerAnnotationHolder) voidreportToOneOrderBy(CompilerAnnotationHolder compilerAnnotationHolder) voidreportTypeNotFound(CompilerAnnotationHolder compilerAnnotationHolder) Methods inherited from class cool.klass.model.converter.compiler.state.property.AntlrProperty
enterModifier, getContextBefore, getModifiers, getModifiersByName, getNamePattern, getNumModifiers, getOwningClassifier, getShortString, isContext, isCreatedBy, isDerived, isFinal, isLastUpdatedBy, isPrivate, isVersion, reportAuditErrors, reportDerivedPrivateProperty, reportDuplicateAuditModifiers, reportDuplicateMemberName, reportDuplicatePropertyWithModifiers, reportInvalidAuditProperties, reportUnreferencedPrivateProperty, toStringMethods inherited from class cool.klass.model.converter.compiler.state.AntlrIdentifierElement
getNameContextMethods inherited from class cool.klass.model.converter.compiler.state.AntlrNamedElement
getName, reportKeywordCollision, reportNameErrorsMethods 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.order.AntlrOrderByOwner
getOrderBysMethods inherited from interface cool.klass.model.converter.compiler.state.IAntlrElement
gatherSurroundingElements, getCompilationUnit, getContextAfter, getContextBefore, getElementContext, getEntireContext, getMacroElement, getSurroundingElement, getSurroundingElement, getSurroundingElements, isContext, reportAuditErrors
-
Field Details
-
AMBIGUOUS
-
NOT_FOUND
-
orderBy
-
multiplicity
-
-
Constructor Details
-
AntlrReferenceProperty
protected AntlrReferenceProperty(@Nonnull org.antlr.v4.runtime.ParserRuleContext elementContext, @Nonnull Optional<CompilationUnit> compilationUnit, int ordinal, @Nonnull KlassParser.IdentifierContext nameContext)
-
-
Method Details
-
getType
- Specified by:
getTypein classAntlrProperty
-
build
- Specified by:
buildin classAntlrProperty
-
getMultiplicity
-
isToOne
public boolean isToOne() -
isToMany
public boolean isToMany() -
isToOneOptional
public boolean isToOneOptional() -
isToOneRequired
public boolean isToOneRequired() -
isOwned
public boolean isOwned() -
reportInvalidMultiplicity
protected void reportInvalidMultiplicity(@Nonnull CompilerAnnotationHolder compilerAnnotationHolder) -
getElementBuilder
- Specified by:
getElementBuilderin classAntlrProperty
-
enterMultiplicity
- Specified by:
enterMultiplicityin interfaceAntlrMultiplicityOwner
-
enterOrderByDeclaration
- Specified by:
enterOrderByDeclarationin interfaceAntlrOrderByOwner
-
getOrderBy
- Specified by:
getOrderByin interfaceAntlrOrderByOwner
-
reportErrors
- Overrides:
reportErrorsin classAntlrProperty
-
reportTypeNotFound
-
reportToOneOrderBy
-
getTypeIdentifier
-
getTypeName
- Specified by:
getTypeNamein classAntlrProperty
-