Package org.teamapps.dto.generate
Class TeamAppsDtoModel
java.lang.Object
org.teamapps.dto.generate.TeamAppsDtoModel
-
Constructor Summary
ConstructorsConstructorDescriptionTeamAppsDtoModel(List<TeamAppsDtoParser.ClassCollectionContext> classCollectionContexts) TeamAppsDtoModel(TeamAppsDtoParser.ClassCollectionContext classCollectionContext) -
Method Summary
Modifier and TypeMethodDescription<T> Predicate<T> distinctByKey(Function<? super T, ?> keyExtractor) filterRequiredProperties(List<TeamAppsDtoParser.PropertyDeclarationContext> propertyDeclarations, boolean required) List<org.antlr.v4.runtime.ParserRuleContext> findAllImplementingClasses(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) findAllProperties(TeamAppsDtoParser.ClassDeclarationContext clazzContext) findAllProperties(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) List<org.antlr.v4.runtime.ParserRuleContext> List<org.antlr.v4.runtime.ParserRuleContext> List<org.antlr.v4.runtime.ParserRuleContext> findAllReferencedClassesAndInterfaces(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) findAllReferencedEnums(TeamAppsDtoParser.EventDeclarationContext eventDeclarationContext) findAllReferencedEnums(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) findAllSubClasses(TeamAppsDtoParser.ClassDeclarationContext clazzContext) findAllSubClasses(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) findAllSubInterfaces(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) findAllSuperClasses(TeamAppsDtoParser.ClassDeclarationContext clazzContext) findAllSuperInterfaces(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) findAllSuperInterfacesAndSelf(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) static <T extends org.antlr.v4.runtime.RuleContext>
TfindAncestorOfType(org.antlr.v4.runtime.RuleContext ruleContext, Class<T> ancestorType) findClassByName(String className, boolean throwExceptionIfNotFound) findInterfaceByName(String name, boolean throwExceptionIfNotFound) findReferencedClass(TeamAppsDtoParser.TypeContext typeContext) findReferencedEnum(TeamAppsDtoParser.TypeContext typeContext) findReferencedInterface(TeamAppsDtoParser.TypeContext typeContext) findSelfNearestAncestorClassWithReferenceableAttribute(TeamAppsDtoParser.ClassDeclarationContext clazz) findSuperClass(TeamAppsDtoParser.ClassDeclarationContext clazzContext) List<org.antlr.v4.runtime.ParserRuleContext> findSuperClassAndDirectlyImplementedInterfaces(TeamAppsDtoParser.ClassDeclarationContext classContext) findSuperInterfaces(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) List<org.antlr.v4.runtime.ParserRuleContext> List<org.antlr.v4.runtime.ParserRuleContext> getAllCommands(TeamAppsDtoParser.ClassDeclarationContext classContext) getAllCommands(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) getAllEvents(TeamAppsDtoParser.ClassDeclarationContext classContext) getAllEvents(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) getAllQueries(TeamAppsDtoParser.ClassDeclarationContext classContext) getAllQueries(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) List<org.antlr.v4.runtime.ParserRuleContext> static org.antlr.v4.runtime.ParserRuleContextgetDeclaringClassOrInterface(org.antlr.v4.runtime.ParserRuleContext element) static StringgetDeclaringClassOrInterfaceName(org.antlr.v4.runtime.ParserRuleContext element) List<org.antlr.v4.runtime.ParserRuleContext> getSuperInterfacesWithCommands(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) List<org.antlr.v4.runtime.ParserRuleContext> getSuperInterfacesWithEvents(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) booleanisDescendantOfClassOrInterfaceReferencedForSubEvents(TeamAppsDtoParser.ClassDeclarationContext classContext) booleanisDescendantOfClassOrInterfaceReferencedForSubEvents(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) booleanbooleanstatic booleanList<org.antlr.v4.runtime.ParserRuleContext> superClassAndDirectlyImplementedInterfacesWithCommands(TeamAppsDtoParser.ClassDeclarationContext classContext) List<org.antlr.v4.runtime.ParserRuleContext> superClassAndDirectlyImplementedInterfacesWithEvents(TeamAppsDtoParser.ClassDeclarationContext classContext)
-
Constructor Details
-
TeamAppsDtoModel
-
TeamAppsDtoModel
-
-
Method Details
-
getClassDeclarations
-
getInterfaceDeclarations
-
getEnumDeclarations
-
getEventDeclarations
-
getQueryDeclarations
-
getCommandDeclarations
-
getClassesAndInterfacesReferencedForSubEvents
-
findReferencedClass
public TeamAppsDtoParser.ClassDeclarationContext findReferencedClass(TeamAppsDtoParser.TypeContext typeContext) -
findReferencedInterface
public TeamAppsDtoParser.InterfaceDeclarationContext findReferencedInterface(TeamAppsDtoParser.TypeContext typeContext) -
findClassByName
public TeamAppsDtoParser.ClassDeclarationContext findClassByName(String className, boolean throwExceptionIfNotFound) -
findReferencedEnum
public TeamAppsDtoParser.EnumDeclarationContext findReferencedEnum(TeamAppsDtoParser.TypeContext typeContext) -
findAncestorOfType
public static <T extends org.antlr.v4.runtime.RuleContext> T findAncestorOfType(org.antlr.v4.runtime.RuleContext ruleContext, Class<T> ancestorType) -
findAllSuperClasses
public List<TeamAppsDtoParser.ClassDeclarationContext> findAllSuperClasses(TeamAppsDtoParser.ClassDeclarationContext clazzContext) -
findSelfAndAllSuperClasses
public List<TeamAppsDtoParser.ClassDeclarationContext> findSelfAndAllSuperClasses(TeamAppsDtoParser.ClassDeclarationContext clazzContext) -
findAllSubClasses
public List<TeamAppsDtoParser.ClassDeclarationContext> findAllSubClasses(TeamAppsDtoParser.ClassDeclarationContext clazzContext) -
findAllSubClasses
public List<TeamAppsDtoParser.ClassDeclarationContext> findAllSubClasses(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) -
findAllSubInterfaces
public List<TeamAppsDtoParser.InterfaceDeclarationContext> findAllSubInterfaces(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) -
findAllProperties
public List<TeamAppsDtoParser.PropertyDeclarationContext> findAllProperties(TeamAppsDtoParser.ClassDeclarationContext clazzContext) -
findAllProperties
public List<TeamAppsDtoParser.PropertyDeclarationContext> findAllProperties(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) -
distinctByKey
-
filterRequiredProperties
public List<TeamAppsDtoParser.PropertyDeclarationContext> filterRequiredProperties(List<TeamAppsDtoParser.PropertyDeclarationContext> propertyDeclarations, boolean required) -
findSuperClass
public TeamAppsDtoParser.ClassDeclarationContext findSuperClass(TeamAppsDtoParser.ClassDeclarationContext clazzContext) -
findAllSuperInterfaces
public List<TeamAppsDtoParser.InterfaceDeclarationContext> findAllSuperInterfaces(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) -
findSuperInterfaces
public List<TeamAppsDtoParser.InterfaceDeclarationContext> findSuperInterfaces(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) -
findAllImplementedInterfaces
public List<TeamAppsDtoParser.InterfaceDeclarationContext> findAllImplementedInterfaces(TeamAppsDtoParser.ClassDeclarationContext classContext) -
getDirectlyImplementedInterfaces
public List<TeamAppsDtoParser.InterfaceDeclarationContext> getDirectlyImplementedInterfaces(TeamAppsDtoParser.ClassDeclarationContext classContext) -
findInterfaceByName
public TeamAppsDtoParser.InterfaceDeclarationContext findInterfaceByName(String name, boolean throwExceptionIfNotFound) -
findAllImplementingClasses
public List<TeamAppsDtoParser.ClassDeclarationContext> findAllImplementingClasses(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) -
findAllSuperInterfacesAndSelf
public List<TeamAppsDtoParser.InterfaceDeclarationContext> findAllSuperInterfacesAndSelf(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) -
getSimplePropertiesSortedByRelevance
public List<TeamAppsDtoParser.PropertyDeclarationContext> getSimplePropertiesSortedByRelevance(List<TeamAppsDtoParser.PropertyDeclarationContext> properties) -
findPropertiesNotImplementedBySuperClasses
public List<TeamAppsDtoParser.PropertyDeclarationContext> findPropertiesNotImplementedBySuperClasses(TeamAppsDtoParser.ClassDeclarationContext classContext) -
findSuperClassAndDirectlyImplementedInterfaces
public List<org.antlr.v4.runtime.ParserRuleContext> findSuperClassAndDirectlyImplementedInterfaces(TeamAppsDtoParser.ClassDeclarationContext classContext) -
getAllCommands
public List<TeamAppsDtoParser.CommandDeclarationContext> getAllCommands(TeamAppsDtoParser.ClassDeclarationContext classContext) -
getAllCommands
public List<TeamAppsDtoParser.CommandDeclarationContext> getAllCommands(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) -
getAllEvents
public List<TeamAppsDtoParser.EventDeclarationContext> getAllEvents(TeamAppsDtoParser.ClassDeclarationContext classContext) -
getAllEvents
public List<TeamAppsDtoParser.EventDeclarationContext> getAllEvents(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) -
getAllQueries
public List<TeamAppsDtoParser.QueryDeclarationContext> getAllQueries(TeamAppsDtoParser.ClassDeclarationContext classContext) -
getAllQueries
public List<TeamAppsDtoParser.QueryDeclarationContext> getAllQueries(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) -
superClassAndDirectlyImplementedInterfacesWithCommands
public List<org.antlr.v4.runtime.ParserRuleContext> superClassAndDirectlyImplementedInterfacesWithCommands(TeamAppsDtoParser.ClassDeclarationContext classContext) -
superClassAndDirectlyImplementedInterfacesWithEvents
public List<org.antlr.v4.runtime.ParserRuleContext> superClassAndDirectlyImplementedInterfacesWithEvents(TeamAppsDtoParser.ClassDeclarationContext classContext) -
getSuperInterfacesWithCommands
public List<org.antlr.v4.runtime.ParserRuleContext> getSuperInterfacesWithCommands(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) -
getSuperInterfacesWithEvents
public List<org.antlr.v4.runtime.ParserRuleContext> getSuperInterfacesWithEvents(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) -
isDescendantOfClassOrInterfaceReferencedForSubEvents
public boolean isDescendantOfClassOrInterfaceReferencedForSubEvents(TeamAppsDtoParser.ClassDeclarationContext classContext) -
isDescendantOfClassOrInterfaceReferencedForSubEvents
public boolean isDescendantOfClassOrInterfaceReferencedForSubEvents(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) -
getDeclaringClassOrInterface
public static org.antlr.v4.runtime.ParserRuleContext getDeclaringClassOrInterface(org.antlr.v4.runtime.ParserRuleContext element) -
getDeclaringClassOrInterfaceName
public static String getDeclaringClassOrInterfaceName(org.antlr.v4.runtime.ParserRuleContext element) -
getAllClassesAndInterfacesWithEvents
-
getAllClassesAndInterfacesWithQueries
-
findAllReferencedClassesAndInterfaces
public List<org.antlr.v4.runtime.ParserRuleContext> findAllReferencedClassesAndInterfaces(TeamAppsDtoParser.ClassDeclarationContext classContext) -
findAllReferencedEnums
public List<TeamAppsDtoParser.EnumDeclarationContext> findAllReferencedEnums(TeamAppsDtoParser.ClassDeclarationContext classContext) -
findAllReferencedClassesAndInterfaces
public List<org.antlr.v4.runtime.ParserRuleContext> findAllReferencedClassesAndInterfaces(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) -
findAllReferencedEnums
public List<TeamAppsDtoParser.EnumDeclarationContext> findAllReferencedEnums(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext) -
findAllReferencedClassesAndInterfaces
public List<org.antlr.v4.runtime.ParserRuleContext> findAllReferencedClassesAndInterfaces(TeamAppsDtoParser.EventDeclarationContext eventContext) -
findAllReferencedEnums
public List<TeamAppsDtoParser.EnumDeclarationContext> findAllReferencedEnums(TeamAppsDtoParser.EventDeclarationContext eventDeclarationContext) -
findAllClassesInterfacesAndEnumsReferencedByEvents
public List<org.antlr.v4.runtime.ParserRuleContext> findAllClassesInterfacesAndEnumsReferencedByEvents() -
findAllNotYetImplementedProperties
public List<TeamAppsDtoParser.PropertyDeclarationContext> findAllNotYetImplementedProperties(TeamAppsDtoParser.ClassDeclarationContext classContext) -
isReferenceType
-
isReferenceableClass
-
isReferenceableBaseClass
-
findSelfNearestAncestorClassWithReferenceableAttribute
public TeamAppsDtoParser.ClassDeclarationContext findSelfNearestAncestorClassWithReferenceableAttribute(TeamAppsDtoParser.ClassDeclarationContext clazz) -
getReferenceableProperties
-