Skip to content

Commit

Permalink
feature: add TypeFactory LIST, SET, MAP, ... constant type references (
Browse files Browse the repository at this point in the history
  • Loading branch information
pvojtechovsky authored and monperrus committed Oct 27, 2017
1 parent 3f81ec4 commit 24cb93b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/spoon/reflect/factory/TypeFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
Expand Down Expand Up @@ -88,6 +89,11 @@ public class TypeFactory extends SubFactory {
public final CtTypeReference<Short> SHORT_PRIMITIVE = createReference(short.class);
public final CtTypeReference<Date> DATE = createReference(Date.class);
public final CtTypeReference<Object> OBJECT = createReference(Object.class);
public final CtTypeReference<Iterable> ITERABLE = createReference(Iterable.class);
public final CtTypeReference<Collection> COLLECTION = createReference(Collection.class);
public final CtTypeReference<List> LIST = createReference(List.class);
public final CtTypeReference<Set> SET = createReference(Set.class);
public final CtTypeReference<Map> MAP = createReference(Map.class);

private final Map<Class<?>, CtType<?>> shadowCache = new HashMap<>();

Expand Down

0 comments on commit 24cb93b

Please sign in to comment.