public static TypeMirror simplify(TypeMirror toBox, boolean boxPrimitives, State state) { if (toBox == null) { return null; } return toBox.accept(new TypeSimplifier(boxPrimitives), state); }
public MethodFinder(CharSequence name, TypeMirror returnType, List<TypeMirror> params, boolean boxReturnType, State state) { this.boxReturnType = boxReturnType; this.name = name; this.returnType = TypeSimplifier.simplify(returnType, boxReturnType, state); List<TypeMirror> temp = new ArrayList<TypeMirror>(params.size()); for (TypeMirror param : params) { temp.add(TypeSimplifier.simplify(param, false, state)); } this.params = Collections.unmodifiableList(temp); }
} else { TypeMirror domainReturn = TypeSimplifier.simplify(domainMethod.getReturnType(), boxReturnType, state); assert domainParam.hasNext(); TypeMirror requestedType = lookFor.next(); TypeMirror paramType = TypeSimplifier.simplify(domainParam.next(), false, state); if (!state.types.isSubtype(requestedType, paramType)) { paramsMatch = false;
public static TypeMirror simplify(TypeMirror toBox, boolean boxPrimitives, State state) { if (toBox == null) { return null; } return toBox.accept(new TypeSimplifier(boxPrimitives), state); }
public MethodFinder(CharSequence name, TypeMirror returnType, List<TypeMirror> params, boolean boxReturnType, State state) { this.boxReturnType = boxReturnType; this.name = name; this.returnType = TypeSimplifier.simplify(returnType, boxReturnType, state); List<TypeMirror> temp = new ArrayList<TypeMirror>(params.size()); for (TypeMirror param : params) { temp.add(TypeSimplifier.simplify(param, false, state)); } this.params = Collections.unmodifiableList(temp); }
public static TypeMirror simplify(TypeMirror toBox, boolean boxPrimitives, State state) { if (toBox == null) { return null; } return toBox.accept(new TypeSimplifier(boxPrimitives), state); }
public MethodFinder(CharSequence name, TypeMirror returnType, List<TypeMirror> params, boolean boxReturnType, State state) { this.boxReturnType = boxReturnType; this.name = name; this.returnType = TypeSimplifier.simplify(returnType, boxReturnType, state); List<TypeMirror> temp = new ArrayList<TypeMirror>(params.size()); for (TypeMirror param : params) { temp.add(TypeSimplifier.simplify(param, false, state)); } this.params = Collections.unmodifiableList(temp); }
public static TypeMirror simplify(TypeMirror toBox, boolean boxPrimitives, State state) { if (toBox == null) { return null; } return toBox.accept(new TypeSimplifier(boxPrimitives), state); }
public MethodFinder(CharSequence name, TypeMirror returnType, List<TypeMirror> params, boolean boxReturnType, State state) { this.boxReturnType = boxReturnType; this.name = name; this.returnType = TypeSimplifier.simplify(returnType, boxReturnType, state); List<TypeMirror> temp = new ArrayList<TypeMirror>(params.size()); for (TypeMirror param : params) { temp.add(TypeSimplifier.simplify(param, false, state)); } this.params = Collections.unmodifiableList(temp); }
} else { TypeMirror domainReturn = TypeSimplifier.simplify(domainMethod.getReturnType(), boxReturnType, state); assert domainParam.hasNext(); TypeMirror requestedType = lookFor.next(); TypeMirror paramType = TypeSimplifier.simplify(domainParam.next(), false, state); if (!state.types.isSubtype(requestedType, paramType)) { paramsMatch = false;
} else { TypeMirror domainReturn = TypeSimplifier.simplify(domainMethod.getReturnType(), boxReturnType, state); assert domainParam.hasNext(); TypeMirror requestedType = lookFor.next(); TypeMirror paramType = TypeSimplifier.simplify(domainParam.next(), false, state); if (!state.types.isSubtype(requestedType, paramType)) { paramsMatch = false;
} else { TypeMirror domainReturn = TypeSimplifier.simplify(domainMethod.getReturnType(), boxReturnType, state); assert domainParam.hasNext(); TypeMirror requestedType = lookFor.next(); TypeMirror paramType = TypeSimplifier.simplify(domainParam.next(), false, state); if (!state.types.isSubtype(requestedType, paramType)) { paramsMatch = false;