congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
FastHierarchy.put
Code IndexAdd Tabnine to your IDE (free)

How to use
put
method
in
soot.FastHierarchy

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

origin: ibinti/bugvm

/** Constructs a hierarchy from the current scene. */
public FastHierarchy()
{
  this.sc = Scene.v();
  /* First build the inverse maps. */
  for( Iterator clIt = sc.getClasses().iterator(); clIt.hasNext(); ) {
    final SootClass cl = (SootClass) clIt.next();
    if( cl.resolvingLevel() < SootClass.HIERARCHY ) continue;
    if( !cl.isInterface() && cl.hasSuperclass() ) {
      put( classToSubclasses, cl.getSuperclass(), cl );
    }
    for( Iterator superclIt = cl.getInterfaces().iterator(); superclIt.hasNext(); ) {
      final SootClass supercl = (SootClass) superclIt.next();
      if( cl.isInterface() ) {
        interfaceToSubinterfaces.put( supercl, cl );
      } else {
        interfaceToImplementers.put( supercl, cl );
      }
    }
  }
  /* Now do a dfs traversal to get the Interval numbers. */
  dfsVisit( 0, Scene.v().getSootClass( "java.lang.Object" ) );
  /* also have to traverse for all phantom classes because they also
   * can be roots of the type hierarchy
   */
  for(SootClass phantomClass: Scene.v().getPhantomClasses()) {
    if(!phantomClass.isInterface())
      dfsVisit( 0, phantomClass );
  }
}
origin: com.bugvm/bugvm-soot

/** Constructs a hierarchy from the current scene. */
public FastHierarchy()
{
  this.sc = Scene.v();
  /* First build the inverse maps. */
  for( Iterator clIt = sc.getClasses().iterator(); clIt.hasNext(); ) {
    final SootClass cl = (SootClass) clIt.next();
    if( cl.resolvingLevel() < SootClass.HIERARCHY ) continue;
    if( !cl.isInterface() && cl.hasSuperclass() ) {
      put( classToSubclasses, cl.getSuperclass(), cl );
    }
    for( Iterator superclIt = cl.getInterfaces().iterator(); superclIt.hasNext(); ) {
      final SootClass supercl = (SootClass) superclIt.next();
      if( cl.isInterface() ) {
        interfaceToSubinterfaces.put( supercl, cl );
      } else {
        interfaceToImplementers.put( supercl, cl );
      }
    }
  }
  /* Now do a dfs traversal to get the Interval numbers. */
  dfsVisit( 0, Scene.v().getSootClass( "java.lang.Object" ) );
  /* also have to traverse for all phantom classes because they also
   * can be roots of the type hierarchy
   */
  for(SootClass phantomClass: Scene.v().getPhantomClasses()) {
    if(!phantomClass.isInterface())
      dfsVisit( 0, phantomClass );
  }
}
sootFastHierarchyput

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.
  • getSubclassesOf
  • 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()
  • 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

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • JLabel (javax.swing)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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