public static String typeName(TypeMirror type) { return "Implicit" + getTypeId(type) + "Cast"; }
private static String seenFieldName(TypeMirror type) { return "seen" + getTypeId(type); }
private static String getTypeId(TypeSystemData typeSystem, TypeMirror type) { return ElementUtils.getTypeId(typeSystem.boxType(type)); }
private static String getTypeId(TypeSystemData typeSystem, TypeMirror type) { return ElementUtils.getTypeId(typeSystem.boxType(type)); }
public static List<TypeMirror> uniqueSortedTypes(Collection<TypeMirror> types, boolean reverse) { if (types.isEmpty()) { return new ArrayList<>(0); } else if (types.size() <= 1) { if (types instanceof List) { return (List<TypeMirror>) types; } else { return new ArrayList<>(types); } } Map<String, TypeMirror> sourceTypes = new HashMap<>(); for (TypeMirror type : types) { sourceTypes.put(ElementUtils.getTypeId(type), type); } return sortTypes(new ArrayList<>(sourceTypes.values()), reverse); }
return fixECJBinaryNameIssue(((DeclaredType) mirror).asElement().getSimpleName().toString()); case ARRAY: return getTypeId(((ArrayType) mirror).getComponentType()) + "Array"; case VOID: return "Void"; WildcardType type = (WildcardType) mirror; if (type.getExtendsBound() != null) { b.append("Extends").append(getTypeId(type.getExtendsBound())); } else if (type.getSuperBound() != null) { b.append("Super").append(getTypeId(type.getExtendsBound()));
return fixECJBinaryNameIssue(((DeclaredType) mirror).asElement().getSimpleName().toString()); case ARRAY: return getTypeId(((ArrayType) mirror).getComponentType()) + "Array"; case VOID: return "Void"; WildcardType type = (WildcardType) mirror; if (type.getExtendsBound() != null) { b.append("Extends").append(getTypeId(type.getExtendsBound())); } else if (type.getSuperBound() != null) { b.append("Super").append(getTypeId(type.getExtendsBound()));
public static String createName(ExecutableTypeData type) { return "execute" + (ElementUtils.isObject(type.getReturnType()) ? "" : ElementUtils.getTypeId(type.getReturnType())); }
private static String executeChildMethodName(NodeExecutionData execution, TypeMirror type) { return "execute" + ElementUtils.firstLetterUpperCase(execution.getName()) + (ElementUtils.isObject(type) ? "" : getTypeId(type)) + NAME_SUFFIX; }
public static String createName(ExecutableTypeData type) { return "execute" + (ElementUtils.isObject(type.getReturnType()) ? "" : ElementUtils.getTypeId(type.getReturnType())); }
private static String createImplicitTypeStateLocalName(Parameter execution) { String name = ElementUtils.firstLetterLowerCase(ElementUtils.getTypeId(execution.getType())); return name + "Cast" + execution.getSpecification().getExecution().getIndex(); }