Skip to content

Commit

Permalink
Add missing stdlib classes. Close #1
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlll08 committed Nov 29, 2023
1 parent 4b7359a commit 2526306
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
import javax.lang.model.element.TypeElement;
import javax.lang.model.util.Elements;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.UUID;

public class StdLibsNativeTypeProvider implements NativeTypeProvider {

Expand All @@ -29,7 +32,12 @@ public Map<TypeElement, AbstractTypeInfo> getTypeInfos() {
}

private void addNativeClasses() {

addClass(Set.class, "collections.Set");
addClass(HashSet.class, "collections.HashSet");
addClass(Comparable.class, "stdlib.Comparable");
addClass(IllegalArgumentException.class, "stdlib.IllegalArgumentException");
addClass(Exception.class, "stdlib.Exception");
addClass(UUID.class, "stdlib.UUID");
addClass(List.class, "stdlib.List");
addClass(Iterable.class, "stdlib.Iterable");
addClass(Iterator.class, "stdlib.Iterator");
Expand Down

0 comments on commit 2526306

Please sign in to comment.