Java Code Examples for com.github.javaparser.ast.type.ClassOrInterfaceType#getName()
The following examples show how to use
com.github.javaparser.ast.type.ClassOrInterfaceType#getName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CodegenUtils.java From kogito-runtimes with Apache License 2.0 | 5 votes |
public static void interpolateTypes(ClassOrInterfaceType t, String dataClazzName) { SimpleName returnType = t.getName(); Map<String, String> interpolatedTypes = new HashMap<>(); interpolatedTypes.put("$Type$", dataClazzName); interpolateTypes(returnType, interpolatedTypes); t.getTypeArguments().ifPresent(ta -> interpolateTypeArguments(ta, interpolatedTypes)); }
Example 2
Source File: CodegenUtils.java From kogito-runtimes with Apache License 2.0 | 4 votes |
public static void interpolateTypes(ClassOrInterfaceType t, Map<String, String> typeInterpolations) { SimpleName returnType = t.getName(); interpolateTypes(returnType, typeInterpolations); t.getTypeArguments().ifPresent(ta -> interpolateTypeArguments(ta, typeInterpolations)); }