public class ReachableTypes extends Object
EnvUtil.getAllReachableClasses(com.google.gwt.core.ext.GeneratorContext)
.Modifier and Type | Field and Description |
---|---|
static ReachableTypes |
EVERYTHING_REACHABLE_INSTANCE
A shareable, threadsafe, reusable instance that reports all types as reachable and
reachability analysis as disabled.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(String fqcn)
Adds the named class as a reachable type.
|
boolean |
contains(String fqcn)
Returns true if the named class is reachable from the GWT module being
compiled.
|
boolean |
isBasedOnReachabilityAnalysis()
Reports whether this ReachableTypes instance is reporting true reachability
data, or if it is blindly reporting all classes as reachable.
|
boolean |
isEmpty()
Returns true if real reachability analysis is in use and no classes are
presently considered reachable.
|
boolean |
remove(String fqcn)
Removed the named class as a reachable type.
|
Collection<String> |
toCollection()
Return a collection of all reachable types
|
public static final ReachableTypes EVERYTHING_REACHABLE_INSTANCE
public boolean isEmpty()
public boolean contains(String fqcn)
fqcn
- The fully-qualified name of the class in question.public boolean add(String fqcn)
fqcn
- The fully-qualified name of the class that should be considered
reachable.public boolean remove(String fqcn)
fqcn
- The fully-qualified name of the class that should be considered
unreachable.public boolean isBasedOnReachabilityAnalysis()
public Collection<String> toCollection()
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.