Class AntlrAssociation
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.AntlrPackageableElement
cool.klass.model.converter.compiler.state.AntlrAssociation
- All Implemented Interfaces:
AntlrTopLevelElement,IAntlrElement
-
Field Summary
FieldsFields inherited from class cool.klass.model.converter.compiler.state.AntlrPackageableElement
compilationUnitStateFields 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
ConstructorsConstructorDescriptionAntlrAssociation(KlassParser.AssociationDeclarationContext elementContext, AntlrCompilationUnit compilationUnitState, int ordinal, KlassParser.IdentifierContext nameContext) -
Method Summary
Modifier and TypeMethodDescriptionbuild()voidenterAssociationEnd(AntlrAssociationEnd associationEnd) voidorg.eclipse.collections.api.list.MutableList<AntlrAssociationEnd>intbooleanvoidreportErrors(CompilerAnnotationHolder compilerAnnotationHolder) voidsetRelationship(AntlrRelationship relationship) voidvisitCriteria(AntlrCriteriaVisitor criteriaVisitor) Methods inherited from class cool.klass.model.converter.compiler.state.AntlrPackageableElement
getNamePattern, getPackageName, getSurroundingElementMethods 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
getContextAfter, getContextBefore, getName, getOrdinal, getSurroundingElement, 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
-
AntlrAssociation
public AntlrAssociation(@Nonnull KlassParser.AssociationDeclarationContext elementContext, @Nonnull AntlrCompilationUnit compilationUnitState, int ordinal, @Nonnull KlassParser.IdentifierContext nameContext)
-
-
Method Details
-
visitCriteria
-
getElementContext
- Specified by:
getElementContextin interfaceIAntlrElement- Overrides:
getElementContextin classAntlrElement
-
getBlockContext
- Specified by:
getBlockContextin interfaceAntlrTopLevelElement- Returns:
- a context representing a block, where '{' and '}' are the start and stop tokens.
-
getAssociationEnds
-
getNumAssociationEnds
public int getNumAssociationEnds() -
getAssociationEndByContext
-
enterAssociationEnd
-
exitAssociationDeclaration
public void exitAssociationDeclaration() -
build
-
getElementBuilder
- Specified by:
getElementBuilderin interfaceAntlrTopLevelElement- Overrides:
getElementBuilderin classAntlrPackageableElement
-
reportErrors
- Specified by:
reportErrorsin interfaceAntlrTopLevelElement- Specified by:
reportErrorsin classAntlrPackageableElement
-
getRelationship
-
setRelationship
-
getSourceEnd
-
getTargetEnd
-
isManyToMany
public boolean isManyToMany()
-