congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FastHierarchy.getSubclassesOf
Code IndexAdd Tabnine to your IDE (free)

How to use
getSubclassesOf
method
in
soot.FastHierarchy

Best Java code snippets using soot.FastHierarchy.getSubclassesOf (Showing top 9 results out of 315)

origin: Sable/soot

private Collection<Type> getTransitiveSubClasses(Set<SootClass> classRoots) {
 LinkedList<SootClass> worklist = new LinkedList<>(classRoots);
 Set<Type> resolved = new HashSet<>();
 while (!worklist.isEmpty()) {
  SootClass cls = worklist.removeFirst();
  if (!resolved.add(cls.getType())) {
   continue;
  }
  worklist.addAll(fh.getSubclassesOf(cls));
 }
 return resolved;
}
origin: Sable/soot

 newSubTypes.add(cl.getType());
for (Iterator<SootClass> cIt = fh.getSubclassesOf(cl).iterator(); cIt.hasNext();) {
 final SootClass c = cIt.next();
 if (workset.add(c)) {
origin: Sable/soot

 return true;
worklist.addAll(getSubclassesOf(cl));
origin: Sable/soot

/**
 * Returns true if this method itself is visible to the client and overwriteable or if the same holds for any of the
 * methods in the library that overwrite the argument method.
 *
 * @see #clientOverwriteable(SootMethod)
 */
private static boolean clientOverwriteableOverwrites(SootMethod m) {
 if (clientOverwriteable(m)) {
  return true;
 }
 SootClass c = m.getDeclaringClass();
 // TODO could use PTA and call graph to filter subclasses further
 for (SootClass cPrime : Scene.v().getFastHierarchy().getSubclassesOf(c)) {
  SootMethod mPrime = cPrime.getMethodUnsafe(m.getSubSignature());
  if (mPrime != null) {
   if (clientOverwriteable(mPrime)) {
    return true;
   }
  }
 }
 return false;
}
origin: Sable/soot

Collection<SootClass> subclasses = fh.get().getSubclassesOf(clazz);
if (subclasses == Collections.EMPTY_LIST) {
 for (AllocNode an : anySubtypeAllocs) {
origin: com.bugvm/bugvm-soot

  subTypes.add(cl.getType());
for( Iterator cIt = fh.getSubclassesOf( cl ).iterator(); cIt.hasNext(); ) {
  final SootClass c = (SootClass) cIt.next();
  if( workset.add( c ) ) worklist.add( c );
origin: ibinti/bugvm

  subTypes.add(cl.getType());
for( Iterator cIt = fh.getSubclassesOf( cl ).iterator(); cIt.hasNext(); ) {
  final SootClass c = (SootClass) cIt.next();
  if( workset.add( c ) ) worklist.add( c );
origin: ibinti/bugvm

if( cl.isConcrete() 
&&  canStoreClass(cl, parentClass) ) return true;
worklist.addAll(getSubclassesOf(cl));
origin: com.bugvm/bugvm-soot

if( cl.isConcrete() 
&&  canStoreClass(cl, parentClass) ) return true;
worklist.addAll(getSubclassesOf(cl));
sootFastHierarchygetSubclassesOf

Javadoc

Gets the direct subclasses of a given class. The class needs to be resolved at least at the HIERARCHY level.

Popular methods of FastHierarchy

  • canStoreType
    Given an object of declared type child, returns true if the object can be stored in a variable of ty
  • isSubclass
    Return true if class child is a subclass of class parent, neither of them being allowed to be interf
  • <init>
    Constructs a hierarchy from the current scene.
  • canStoreClass
    Given an object of declared type child, returns true if the object can be stored in a variable of ty
  • dfsVisit
  • getAllImplementersOfInterface
    For an interface parent (MUST be an interface), returns set of all implementers of it but NOT their
  • getAllSubinterfaces
    For an interface parent (MUST be an interface), returns set of all subinterfaces.
  • isVisible
    Returns true if the method m is visible from code in the class from.
  • resolveConcreteDispatch
    Given an object of actual type C (o = new C()), returns the method which will be called on an o.f()
  • put
  • canStoreClassClassic
    "Classic" implementation using the intuitive approach (without using Interval) to check whetherchild
  • resolveAbstractDispatch
    Given an object of declared type C, returns the methods which could be called on an o.f() invocation
  • canStoreClassClassic,
  • resolveAbstractDispatch

Popular in Java

  • Running tasks concurrently on multiple threads
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now