All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.includes.generic.interface.vm Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
#parse("${include}/schema.include.vm")
#parse("${include}/commons.macros.vm")
#set ( $interfaceClass  = $sourceinfo.interfaceClass    		)
#set ( $refClass				= $sourceinfo.refClass    			  	)
#set ( $baseClass				= $sourceinfo.baseClass    			  	)
#set ( $className				="${interfaceClass.simpleName}Generic")
#set ( $defaultGenericTypes=$sourceinfo.defaultGenericTypes)
#macro( genericName $parameter)
#if(!$sourceinfo.getGenericParam($parameter)||$sourceinfo.getGenericParam($parameter).name.empty)$defaultGenericTypes.getName($parameter.type)#else$sourceinfo.getGenericParam($parameter).name()#end
#end
###macro( typeDefine $type)$method.getTypeDefine($type,false)#end
###macro( typeName   $type)$method.getTypeName($type,false)#end
#macro( pamameterType $parameter)
#if($sourceinfo.needGeneric($parameter))#genericName($parameter)#else #typeName($parameter.type)#end
#end
#macro( typeParametersDefine)
#set ( $types=$method.typeParameters )
#set ( $names=$sourceinfo.getGenericNames($method))
#set ( $count=1)
#if( $types.size() > 0 || $names)<#foreach($type in $types)#if( $count > 1 ),#end#typeDefine($type)set($count=$count+1)#end#foreach($name in $names)#if( $count > 1 ),#end$name#set($count=$count+1)#end>#end
#end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy