private Set<TypeElement> getTypesToProcess(State state, RoundEnvironment roundEnv) { if (rootOverride == null) { return ElementFilter.typesIn(roundEnv.getRootElements()); } Set<TypeElement> toScan = new HashSet<TypeElement>(); for (String binaryTypeName : rootOverride) { TypeElement found = state.elements.getTypeElement(BinaryName.toSourceName(binaryTypeName.trim())); if (found == null) { state.poison(null, Messages.noSuchType(binaryTypeName)); } else { toScan.add(found); } } rootOverride = null; return toScan; }
private void addReference(ReferenceBinding referencedType) { String binaryName = CharOperation.toString(referencedType.compoundName); apiRefs.add(BinaryName.toSourceName(binaryName)); }