Class AntlrClass
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.AntlrClass
- 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
ConstructorsConstructorDescriptionAntlrClass(KlassParser.ClassDeclarationContext elementContext, AntlrCompilationUnit compilationUnitState, int ordinal, KlassParser.IdentifierContext nameContext, boolean isUser) -
Method Summary
Modifier and TypeMethodDescriptionbuild1()voidbuild2()voidenterAssociationEnd(AntlrAssociationEnd antlrAssociationEnd) voidenterExtendsDeclaration(AntlrClass superClass) voidenterParameterizedProperty(AntlrParameterizedProperty parameterizedProperty) org.eclipse.collections.api.list.ListIterable<AntlrAssociationEnd>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) getModifierByName(String name) protected KlassParser.InterfaceReferenceContextgetOffendingInterfaceReference(int index) booleanbooleanprotected booleanisInterfaceRedundant(int index, AntlrInterface iface) booleanisSubClassOf(AntlrClass klass) booleanisUser()booleanprotected voidreportCircularInheritance(CompilerAnnotationHolder compilerAnnotationHolder) voidreportDuplicateUserClass(CompilerAnnotationHolder compilerAnnotationHolder) voidreportErrors(CompilerAnnotationHolder compilerAnnotationHolder) protected voidreportForwardReference(CompilerAnnotationHolder compilerAnnotationHolder) voidreportNameErrors(CompilerAnnotationHolder compilerAnnotationHolder) voidsetAbstract(boolean isAbstract) 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, getInterfaceClassifierModifierByName, getInterfaceDataTypePropertyByName, getNumClassifierModifiers, getOverriddenDataTypeProperties, getOverriddenDataTypeProperties, interfaceNotAtIndexImplements, isSubTypeOf, isTransient, reportAuditErrors, 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
-
AntlrClass
public AntlrClass(@Nonnull KlassParser.ClassDeclarationContext elementContext, @Nonnull AntlrCompilationUnit compilationUnitState, int ordinal, @Nonnull KlassParser.IdentifierContext nameContext, boolean isUser)
-
-
Method Details
-
isUser
public boolean isUser() -
getDeclaredAssociationEnds
public org.eclipse.collections.api.list.ListIterable<AntlrAssociationEnd> getDeclaredAssociationEnds() -
getInheritedProperties
protected org.eclipse.collections.api.list.ImmutableList<AntlrProperty> getInheritedProperties(@Nonnull org.eclipse.collections.api.list.MutableList<AntlrClassifier> visited) - Overrides:
getInheritedPropertiesin classAntlrClassifier
-
getInheritedDataTypeProperties
protected org.eclipse.collections.api.list.ImmutableList<AntlrDataTypeProperty<?>> getInheritedDataTypeProperties(@Nonnull org.eclipse.collections.api.list.MutableList<AntlrClassifier> visited) - Overrides:
getInheritedDataTypePropertiesin classAntlrClassifier
-
getInheritedModifiers
protected org.eclipse.collections.api.list.ImmutableList<AntlrModifier> getInheritedModifiers(@Nonnull org.eclipse.collections.api.list.MutableList<AntlrClassifier> visited) - Overrides:
getInheritedModifiersin classAntlrClassifier
-
getReferencePropertyByName
- Specified by:
getReferencePropertyByNamein classAntlrClassifier
-
enterAssociationEnd
-
enterParameterizedProperty
-
getParameterizedPropertyByContext
public AntlrParameterizedProperty getParameterizedPropertyByContext(KlassParser.ParameterizedPropertyContext ctx) -
isAbstract
public boolean isAbstract() -
setAbstract
public void setAbstract(boolean isAbstract) -
enterExtendsDeclaration
-
getElementBuilder
- Specified by:
getElementBuilderin interfaceAntlrTopLevelElement- Specified by:
getElementBuilderin interfaceAntlrType- Overrides:
getElementBuilderin classAntlrClassifier
-
implementsInterface
- Overrides:
implementsInterfacein classAntlrClassifier
-
build1
-
build2
public void build2() -
reportNameErrors
- Specified by:
reportNameErrorsin interfaceAntlrTopLevelElement- Overrides:
reportNameErrorsin classAntlrNamedElement
-
reportErrors
- Specified by:
reportErrorsin interfaceAntlrTopLevelElement- Overrides:
reportErrorsin classAntlrClassifier
-
reportDuplicateUserClass
-
reportCircularInheritance
protected void reportCircularInheritance(@Nonnull CompilerAnnotationHolder compilerAnnotationHolder) - Overrides:
reportCircularInheritancein classAntlrClassifier
-
reportForwardReference
- Overrides:
reportForwardReferencein classAntlrClassifier
-
isInterfaceRedundant
- Overrides:
isInterfaceRedundantin classAntlrClassifier
-
getOffendingInterfaceReference
- Overrides:
getOffendingInterfaceReferencein classAntlrClassifier
-
getDuplicateMemberNames
- Overrides:
getDuplicateMemberNamesin classAntlrClassifier
-
isSubClassOf
-
getSuperClass
- Overrides:
getSuperClassin classAntlrClassifier
-
getElementContext
- Specified by:
getElementContextin interfaceIAntlrElement- Overrides:
getElementContextin classAntlrElement
-
getBlockContext
- Returns:
- a context representing a block, where '{' and '}' are the start and stop tokens.
-
getDataTypePropertyByName
- Specified by:
getDataTypePropertyByNamein classAntlrClassifier
-
getAssociationEndByName
-
getModifierByName
-
getTypeGetter
- Specified by:
getTypeGetterin interfaceAntlrType- Overrides:
getTypeGetterin classAntlrClassifier
-
isVersion
public boolean isVersion()
-