new internal annotations and new isInnerClass()

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@956 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
sjfink 2007-04-16 19:27:47 +00:00
parent c9ca8ec963
commit 29677a6023
1 changed files with 19 additions and 0 deletions

View File

@ -1073,6 +1073,12 @@ public class ClassHierarchy implements Iterable<IClass> {
return new ClassHierarchy(scope, factory, warnings, new NullProgressMonitor());
}
/**
* temporarily marking this internal to avoid infinite sleep with
* randomly chosen IProgressMonitor.
* TODO: nanny for testgen
*/
@Internal
public static ClassHierarchy make(AnalysisScope scope, ClassLoaderFactory factory, WarningSet warnings, IProgressMonitor monitor)
throws ClassHierarchyException {
return new ClassHierarchy(scope, factory, warnings, monitor);
@ -1083,6 +1089,12 @@ public class ClassHierarchy implements Iterable<IClass> {
return new ClassHierarchy(scope, factory, warnings, rootDescriptor, new NullProgressMonitor());
}
/**
* temporarily marking this internal to avoid infinite sleep with
* randomly chosen IProgressMonitor.
* TODO: nanny for testgen
*/
@Internal
public static ClassHierarchy make(AnalysisScope scope, ClassLoaderFactory factory, WarningSet warnings,
TypeReference rootDescriptor, IProgressMonitor monitor) throws ClassHierarchyException {
return new ClassHierarchy(scope, factory, warnings, rootDescriptor, monitor);
@ -1145,4 +1157,11 @@ public class ClassHierarchy implements Iterable<IClass> {
}
}
/**
* Does it look like an inner class? [TODO: is this definitive?]
*/
public static boolean isInnerClass(IClass klass) {
return klass.getName().toString().indexOf("$") > -1;
}
}