Class AntlrInterface
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.AntlrClassifier
cool.klass.model.converter.compiler.state.AntlrInterface
- All Implemented Interfaces:
AntlrTopLevelElement,AntlrType,IAntlrElement
-
Field Summary
FieldsFields inherited from class cool.klass.model.converter.compiler.state.AntlrClassifier
declaredAssociationEndSignatures, declaredAssociationEndSignaturesByContext, declaredAssociationEndSignaturesByName, declaredDataTypeProperties, declaredDataTypePropertiesByName, declaredInterfaces, declaredMembers, declaredModifiers, declaredModifiersByContext, declaredModifiersByName, declaredProperties, declaredReferenceProperties, declaredReferencePropertiesByContext, declaredReferencePropertiesByNameFields 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
ConstructorsConstructorDescriptionAntlrInterface(KlassParser.InterfaceDeclarationContext elementContext, AntlrCompilationUnit compilationUnitState, int ordinal, KlassParser.IdentifierContext nameContext) -
Method Summary
Modifier and TypeMethodDescriptionbuild1()voidbuild2()org.eclipse.collections.api.bag.ImmutableBag<String>getModifierByName(String name) protected KlassParser.InterfaceReferenceContextgetOffendingInterfaceReference(int index) protected booleanisInterfaceRedundant(int index, AntlrInterface iface) protected voidreportCircularInheritance(CompilerAnnotationHolder compilerAnnotationHolder) voidreportErrors(CompilerAnnotationHolder compilerAnnotationHolder) voidreportNameErrors(CompilerAnnotationHolder compilerAnnotationHolder) Methods inherited from class cool.klass.model.converter.compiler.state.AntlrClassifier
enterAssociationEndSignature, enterDataTypeProperty, enterImplementsDeclaration, enterModifier, getAllDataTypeProperties, getAllDataTypeProperties, getAllKeyProperties, getAllModifiers, getAllProperties, getAllProperties, getDeclaredAssociationEndSignatureByContext, getDeclaredModifierByContext, getDeclaredModifiers, getDeclaredReferencePropertyByContext, getInheritedDataTypeProperties, getInheritedModifiers, getInheritedProperties, getInterfaceClassifierModifierByName, getInterfaceDataTypePropertyByName, getNumClassifierModifiers, getOverriddenDataTypeProperties, getOverriddenDataTypeProperties, getSuperClass, implementsInterface, interfaceNotAtIndexImplements, isSubTypeOf, isTransient, reportAuditErrors, reportForwardReference, reportMultiplePropertiesWithModifiers, reportPropertyDeclarationOrderMethods 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, 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, reportDuplicateTopLevelNameMethods inherited from interface cool.klass.model.converter.compiler.state.AntlrType
getName, getPotentialWiderTypesMethods inherited from interface cool.klass.model.converter.compiler.state.IAntlrElement
gatherSurroundingElements, getCompilationUnit, getEntireContext, getMacroElement, getSurroundingElement, getSurroundingElements, reportAuditErrors
-
Field Details
-
AMBIGUOUS
-
NOT_FOUND
-
-
Constructor Details
-
AntlrInterface
public AntlrInterface(@Nonnull KlassParser.InterfaceDeclarationContext elementContext, @Nonnull AntlrCompilationUnit compilationUnitState, int ordinal, @Nonnull KlassParser.IdentifierContext nameContext)
-
-
Method Details
-
build1
-
getElementBuilder
- Specified by:
getElementBuilderin interfaceAntlrTopLevelElement- Specified by:
getElementBuilderin interfaceAntlrType- Overrides:
getElementBuilderin classAntlrClassifier
-
getReferencePropertyByName
- Specified by:
getReferencePropertyByNamein classAntlrClassifier
-
build2
public void build2() -
reportNameErrors
- Specified by:
reportNameErrorsin interfaceAntlrTopLevelElement- Overrides:
reportNameErrorsin classAntlrNamedElement
-
reportErrors
- Specified by:
reportErrorsin interfaceAntlrTopLevelElement- Overrides:
reportErrorsin classAntlrClassifier
-
reportCircularInheritance
protected void reportCircularInheritance(@Nonnull CompilerAnnotationHolder compilerAnnotationHolder) - Overrides:
reportCircularInheritancein classAntlrClassifier
-
getOffendingInterfaceReference
- Overrides:
getOffendingInterfaceReferencein classAntlrClassifier
-
isInterfaceRedundant
- Overrides:
isInterfaceRedundantin classAntlrClassifier
-
getDuplicateMemberNames
- Overrides:
getDuplicateMemberNamesin classAntlrClassifier
-
getElementContext
- Specified by:
getElementContextin interfaceIAntlrElement- Overrides:
getElementContextin classAntlrElement
-
getBlockContext
- Returns:
- a context representing a block, where '{' and '}' are the start and stop tokens.
-
getTypeGetter
- Specified by:
getTypeGetterin interfaceAntlrType- Overrides:
getTypeGetterin classAntlrClassifier
-
getDataTypePropertyByName
- Specified by:
getDataTypePropertyByNamein classAntlrClassifier
-
getModifierByName
-