Class CollectionsHandler
java.lang.Object
net.binis.codegen.generation.core.CollectionsHandler
public class CollectionsHandler extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCollectionsHandler.CollectionType -
Constructor Summary
Constructors Constructor Description CollectionsHandler() -
Method Summary
Modifier and Type Method Description static voidaddModifier(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description, com.github.javaparser.ast.body.ClassOrInterfaceDeclaration spec, PrototypeField declaration, String modifierName, String className, boolean isClass)static CollectionsHandler.CollectionTypegetCollectionType(com.github.javaparser.ast.CompilationUnit source, com.github.javaparser.ast.CompilationUnit destination, com.github.javaparser.ast.type.ClassOrInterfaceType type)static StringgetCollectionType(com.github.javaparser.ast.type.Type type)static booleanisCollection(com.github.javaparser.ast.type.Type type)static booleanisCollection(Class<?> type)static booleanisCollection(String type)static booleanisListOrSet(String type)
-
Constructor Details
-
CollectionsHandler
public CollectionsHandler()
-
-
Method Details
-
isCollection
public static boolean isCollection(com.github.javaparser.ast.type.Type type) -
isCollection
-
isListOrSet
-
isCollection
-
addModifier
public static void addModifier(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description, com.github.javaparser.ast.body.ClassOrInterfaceDeclaration spec, PrototypeField declaration, String modifierName, String className, boolean isClass) -
getCollectionType
public static CollectionsHandler.CollectionType getCollectionType(com.github.javaparser.ast.CompilationUnit source, com.github.javaparser.ast.CompilationUnit destination, com.github.javaparser.ast.type.ClassOrInterfaceType type) -
getCollectionType
-