Class 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.AntlrPackageableElement
cool.klass.model.converter.compiler.state.AntlrClassifier
- All Implemented Interfaces:
AntlrTopLevelElement,AntlrType,IAntlrElement
- Direct Known Subclasses:
AntlrClass,AntlrInterface
public abstract class AntlrClassifier
extends AntlrPackageableElement
implements AntlrType, AntlrTopLevelElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AntlrClassifierprotected final org.eclipse.collections.api.list.MutableList<AntlrAssociationEndSignature>protected final org.eclipse.collections.api.map.MutableOrderedMap<KlassParser.AssociationEndSignatureContext,AntlrAssociationEndSignature> protected final org.eclipse.collections.api.map.MutableOrderedMap<String,AntlrAssociationEndSignature> protected final org.eclipse.collections.api.list.MutableList<AntlrDataTypeProperty<?>>protected final org.eclipse.collections.api.map.MutableOrderedMap<String,AntlrDataTypeProperty<?>> protected final org.eclipse.collections.api.list.MutableList<AntlrInterface>protected final org.eclipse.collections.api.list.MutableList<AntlrProperty>protected final org.eclipse.collections.api.list.MutableList<AntlrModifier>protected final org.eclipse.collections.api.map.MutableOrderedMap<org.antlr.v4.runtime.ParserRuleContext,AntlrModifier> protected final org.eclipse.collections.api.map.MutableOrderedMap<String,AntlrModifier> protected final org.eclipse.collections.api.list.MutableList<AntlrProperty>protected final org.eclipse.collections.api.list.MutableList<AntlrReferenceProperty<?>>protected final org.eclipse.collections.api.map.MutableOrderedMap<org.antlr.v4.runtime.ParserRuleContext,AntlrReferenceProperty<?>> protected final org.eclipse.collections.api.map.MutableOrderedMap<String,AntlrReferenceProperty<?>> static final AntlrClassifierFields 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
ConstructorsModifierConstructorDescriptionprotectedAntlrClassifier(org.antlr.v4.runtime.ParserRuleContext elementContext, AntlrCompilationUnit compilationUnitState, int ordinal, KlassParser.IdentifierContext nameContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidenterAssociationEndSignature(AntlrAssociationEndSignature associationEndSignature) voidenterDataTypeProperty(AntlrDataTypeProperty<?> antlrDataTypeProperty) voidvoidenterModifier(AntlrModifier modifier) final org.eclipse.collections.api.list.ImmutableList<AntlrDataTypeProperty<?>>protected org.eclipse.collections.api.list.ImmutableList<AntlrDataTypeProperty<?>>getAllDataTypeProperties(org.eclipse.collections.api.list.MutableList<AntlrClassifier> visited) org.eclipse.collections.api.list.ImmutableList<AntlrDataTypeProperty<?>>protected org.eclipse.collections.api.list.ImmutableList<AntlrModifier>getAllModifiers(org.eclipse.collections.api.list.MutableList<AntlrClassifier> visited) final org.eclipse.collections.api.list.ImmutableList<AntlrProperty>protected org.eclipse.collections.api.list.ImmutableList<AntlrProperty>getAllProperties(org.eclipse.collections.api.list.MutableList<AntlrClassifier> visited) abstract AntlrDataTypeProperty<?>getDeclaredModifierByContext(org.antlr.v4.runtime.ParserRuleContext modifierContext) org.eclipse.collections.api.list.MutableList<AntlrModifier>getDeclaredReferencePropertyByContext(org.antlr.v4.runtime.ParserRuleContext ctx) protected org.eclipse.collections.api.bag.ImmutableBag<String>protected org.eclipse.collections.api.list.ImmutableList<AntlrDataTypeProperty<?>>getInheritedDataTypeProperties(org.eclipse.collections.api.list.MutableList<AntlrClassifier> visited) protected org.eclipse.collections.api.list.ImmutableList<AntlrModifier>getInheritedModifiers(org.eclipse.collections.api.list.MutableList<AntlrClassifier> visited) protected org.eclipse.collections.api.list.ImmutableList<AntlrProperty>getInheritedProperties(org.eclipse.collections.api.list.MutableList<AntlrClassifier> visited) protected AntlrModifierprotected AntlrDataTypeProperty<?>intprotected KlassParser.InterfaceReferenceContextgetOffendingInterfaceReference(int index) org.eclipse.collections.api.list.ImmutableList<AntlrDataTypeProperty<?>>protected voidgetOverriddenDataTypeProperties(String name, org.eclipse.collections.api.list.MutableList<AntlrDataTypeProperty<?>> overriddenProperties, org.eclipse.collections.api.set.MutableSet<AntlrClassifier> visited) abstract AntlrReferenceProperty<?>booleanprotected booleaninterfaceNotAtIndexImplements(int index, AntlrInterface iface) protected booleanisInterfaceRedundant(int index, AntlrInterface iface) booleanisSubTypeOf(AntlrClassifier classifier) booleanvoidreportAuditErrors(CompilerAnnotationHolder compilerAnnotationHolder) protected voidreportCircularInheritance(CompilerAnnotationHolder compilerAnnotationHolder) voidreportErrors(CompilerAnnotationHolder compilerAnnotationHolder) protected voidreportForwardReference(CompilerAnnotationHolder compilerAnnotationHolder) protected <T extends AntlrProperty>
voidreportMultiplePropertiesWithModifiers(CompilerAnnotationHolder compilerAnnotationHolder, org.eclipse.collections.api.list.MutableList<T> properties, String... modifiersArray) protected voidreportPropertyDeclarationOrder(CompilerAnnotationHolder compilerAnnotationHolder) 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, 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.AntlrTopLevelElement
getBlockContext, getContextAfter, getContextBefore, getName, getOrdinal, getSurroundingElement, isContext, reportDuplicateTopLevelName, reportNameErrorsMethods inherited from interface cool.klass.model.converter.compiler.state.AntlrType
getName, getPotentialWiderTypesMethods inherited from interface cool.klass.model.converter.compiler.state.IAntlrElement
gatherSurroundingElements, getCompilationUnit, getElementContext, getEntireContext, getMacroElement, getSurroundingElement, getSurroundingElements, reportAuditErrors
-
Field Details
-
AMBIGUOUS
-
NOT_FOUND
-
declaredModifiers
-
declaredProperties
-
declaredMembers
-
declaredDataTypeProperties
protected final org.eclipse.collections.api.list.MutableList<AntlrDataTypeProperty<?>> declaredDataTypeProperties -
declaredReferenceProperties
protected final org.eclipse.collections.api.list.MutableList<AntlrReferenceProperty<?>> declaredReferenceProperties -
declaredAssociationEndSignatures
protected final org.eclipse.collections.api.list.MutableList<AntlrAssociationEndSignature> declaredAssociationEndSignatures -
declaredInterfaces
-
declaredModifiersByName
protected final org.eclipse.collections.api.map.MutableOrderedMap<String,AntlrModifier> declaredModifiersByName -
declaredModifiersByContext
protected final org.eclipse.collections.api.map.MutableOrderedMap<org.antlr.v4.runtime.ParserRuleContext,AntlrModifier> declaredModifiersByContext -
declaredDataTypePropertiesByName
protected final org.eclipse.collections.api.map.MutableOrderedMap<String,AntlrDataTypeProperty<?>> declaredDataTypePropertiesByName -
declaredReferencePropertiesByName
protected final org.eclipse.collections.api.map.MutableOrderedMap<String,AntlrReferenceProperty<?>> declaredReferencePropertiesByName -
declaredReferencePropertiesByContext
protected final org.eclipse.collections.api.map.MutableOrderedMap<org.antlr.v4.runtime.ParserRuleContext,AntlrReferenceProperty<?>> declaredReferencePropertiesByContext -
declaredAssociationEndSignaturesByName
protected final org.eclipse.collections.api.map.MutableOrderedMap<String,AntlrAssociationEndSignature> declaredAssociationEndSignaturesByName -
declaredAssociationEndSignaturesByContext
protected final org.eclipse.collections.api.map.MutableOrderedMap<KlassParser.AssociationEndSignatureContext,AntlrAssociationEndSignature> declaredAssociationEndSignaturesByContext
-
-
Constructor Details
-
AntlrClassifier
protected AntlrClassifier(@Nonnull org.antlr.v4.runtime.ParserRuleContext elementContext, @Nonnull AntlrCompilationUnit compilationUnitState, int ordinal, @Nonnull KlassParser.IdentifierContext nameContext)
-
-
Method Details
-
getReferencePropertyByName
-
getDataTypePropertyByName
-
getElementBuilder
- Specified by:
getElementBuilderin interfaceAntlrTopLevelElement- Specified by:
getElementBuilderin interfaceAntlrType- Overrides:
getElementBuilderin classAntlrPackageableElement
-
getTypeGetter
- Specified by:
getTypeGetterin interfaceAntlrType
-
getAllProperties
-
getAllProperties
protected org.eclipse.collections.api.list.ImmutableList<AntlrProperty> getAllProperties(@Nonnull org.eclipse.collections.api.list.MutableList<AntlrClassifier> visited) -
getInheritedProperties
protected org.eclipse.collections.api.list.ImmutableList<AntlrProperty> getInheritedProperties(@Nonnull org.eclipse.collections.api.list.MutableList<AntlrClassifier> visited) -
getAllDataTypeProperties
public final org.eclipse.collections.api.list.ImmutableList<AntlrDataTypeProperty<?>> getAllDataTypeProperties() -
getAllDataTypeProperties
protected org.eclipse.collections.api.list.ImmutableList<AntlrDataTypeProperty<?>> getAllDataTypeProperties(@Nonnull org.eclipse.collections.api.list.MutableList<AntlrClassifier> visited) -
getInheritedDataTypeProperties
protected org.eclipse.collections.api.list.ImmutableList<AntlrDataTypeProperty<?>> getInheritedDataTypeProperties(@Nonnull org.eclipse.collections.api.list.MutableList<AntlrClassifier> visited) -
getAllModifiers
protected org.eclipse.collections.api.list.ImmutableList<AntlrModifier> getAllModifiers(@Nonnull org.eclipse.collections.api.list.MutableList<AntlrClassifier> visited) -
getInheritedModifiers
protected org.eclipse.collections.api.list.ImmutableList<AntlrModifier> getInheritedModifiers(@Nonnull org.eclipse.collections.api.list.MutableList<AntlrClassifier> visited) -
isTransient
public boolean isTransient() -
enterDataTypeProperty
-
getDeclaredAssociationEndSignatureByContext
public AntlrAssociationEndSignature getDeclaredAssociationEndSignatureByContext(@Nonnull KlassParser.AssociationEndSignatureContext ctx) -
getDeclaredReferencePropertyByContext
public AntlrReferenceProperty<?> getDeclaredReferencePropertyByContext(@Nonnull org.antlr.v4.runtime.ParserRuleContext ctx) -
enterAssociationEndSignature
public void enterAssociationEndSignature(@Nonnull AntlrAssociationEndSignature associationEndSignature) -
enterModifier
-
getDeclaredModifiers
-
getDeclaredModifierByContext
public AntlrModifier getDeclaredModifierByContext(@Nonnull org.antlr.v4.runtime.ParserRuleContext modifierContext) -
getNumClassifierModifiers
public int getNumClassifierModifiers() -
enterImplementsDeclaration
-
reportErrors
@OverridingMethodsMustInvokeSuper public void reportErrors(@Nonnull CompilerAnnotationHolder compilerAnnotationHolder) - Specified by:
reportErrorsin interfaceAntlrTopLevelElement- Specified by:
reportErrorsin classAntlrPackageableElement
-
reportMultiplePropertiesWithModifiers
protected <T extends AntlrProperty> void reportMultiplePropertiesWithModifiers(@Nonnull CompilerAnnotationHolder compilerAnnotationHolder, org.eclipse.collections.api.list.MutableList<T> properties, String... modifiersArray) -
reportCircularInheritance
-
reportPropertyDeclarationOrder
-
reportAuditErrors
@OverridingMethodsMustInvokeSuper public void reportAuditErrors(@Nonnull CompilerAnnotationHolder compilerAnnotationHolder) -
reportForwardReference
-
isInterfaceRedundant
-
interfaceNotAtIndexImplements
-
getOffendingInterfaceReference
-
getDuplicateMemberNames
-
getInterfaceDataTypePropertyByName
-
getInterfaceClassifierModifierByName
-
isSubTypeOf
-
implementsInterface
-
getAllKeyProperties
public org.eclipse.collections.api.list.ImmutableList<AntlrDataTypeProperty<?>> getAllKeyProperties() -
getOverriddenDataTypeProperties
public org.eclipse.collections.api.list.ImmutableList<AntlrDataTypeProperty<?>> getOverriddenDataTypeProperties(String name) -
getOverriddenDataTypeProperties
protected void getOverriddenDataTypeProperties(String name, org.eclipse.collections.api.list.MutableList<AntlrDataTypeProperty<?>> overriddenProperties, org.eclipse.collections.api.set.MutableSet<AntlrClassifier> visited) -
getSuperClass
-