Tabnine Logo
FastHierarchy.canStoreClass
Code IndexAdd Tabnine to your IDE (free)

How to use
canStoreClass
method
in
soot.FastHierarchy

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

origin: Sable/soot

 SootClass c = s.iterator().next();
 s.remove(c);
 if (!c.isInterface() && !c.isAbstract() && canStoreClass(c, declaringClass)) {
  SootMethod concreteM = resolveConcreteDispatch(c, m);
  if (concreteM != null) {
RefType concreteType = (RefType) t;
SootClass concreteClass = concreteType.getSootClass();
if (!canStoreClass(concreteClass, declaringClass)) {
 continue;
origin: Sable/soot

 SootClass c = s.iterator().next();
 s.remove(c);
 if (!c.isInterface() && !c.isAbstract() && canStoreClass(c, declaringClass)) {
  SootMethod concreteM = resolveConcreteDispatch(c, m);
  if (concreteM != null) {
RefType concreteType = (RefType) t;
SootClass concreteClass = concreteType.getSootClass();
if (!canStoreClass(concreteClass, declaringClass)) {
 continue;
origin: Sable/soot

 return true;
} else if (parent instanceof RefType) {
 return canStoreClass(((RefType) child).getSootClass(), ((RefType) parent).getSootClass());
} else {
 return false;
  } else if (!workset.add(cl)) {
   continue;
  } else if (cl.isConcrete() && canStoreClass(cl, parentClass)) {
   return true;
origin: Sable/soot

/** Returns true if the method m is visible from code in the class from. */
private boolean isVisible(SootClass from, SootMethod m) {
 from.checkLevel(SootClass.HIERARCHY);
 if (m.isPublic()) {
  return true;
 }
 if (m.isPrivate()) {
  return from.equals(m.getDeclaringClass());
 }
 if (m.isProtected()) {
  return canStoreClass(from, m.getDeclaringClass());
 }
 // m is package
 return from.getJavaPackageName().equals(m.getDeclaringClass().getJavaPackageName());
 // || canStoreClass( from, m.getDeclaringClass() );
}
origin: Sable/soot

if (fastHierachy.canStoreClass(childClass,parentClass)) {
 SootMethod target = resolveNonSpecial(child, subSig, appOnly);
 if (target != null) {
origin: Sable/soot

if (Scene.v().getOrMakeFastHierarchy().canStoreClass(currentClass, calledClass)) {
 return Jimple.v().newSpecialInvokeExpr(args.get(0), methodRef, rest(args));
} else {
origin: com.bugvm/bugvm-soot

  s.remove( c );
  if( !c.isInterface() && !c.isAbstract()
      && canStoreClass( c, declaringClass ) ) {
    SootMethod concreteM = resolveConcreteDispatch( c, m );
    if( concreteM != null )
RefType concreteType = (RefType) t;
SootClass concreteClass = concreteType.getSootClass();
if( !canStoreClass( concreteClass, declaringClass ) ) {
  continue;
origin: ibinti/bugvm

  s.remove( c );
  if( !c.isInterface() && !c.isAbstract()
      && canStoreClass( c, declaringClass ) ) {
    SootMethod concreteM = resolveConcreteDispatch( c, m );
    if( concreteM != null )
RefType concreteType = (RefType) t;
SootClass concreteClass = concreteType.getSootClass();
if( !canStoreClass( concreteClass, declaringClass ) ) {
  continue;
origin: ibinti/bugvm

  s.remove( c );
  if( !c.isInterface() && !c.isAbstract()
      && canStoreClass( c, declaringClass ) ) {
    SootMethod concreteM = resolveConcreteDispatch( c, m );
    if( concreteM != null )
RefType concreteType = (RefType) t;
SootClass concreteClass = concreteType.getSootClass();
if( !canStoreClass( concreteClass, declaringClass ) ) {
  continue;
origin: com.bugvm/bugvm-soot

  s.remove( c );
  if( !c.isInterface() && !c.isAbstract()
      && canStoreClass( c, declaringClass ) ) {
    SootMethod concreteM = resolveConcreteDispatch( c, m );
    if( concreteM != null )
RefType concreteType = (RefType) t;
SootClass concreteClass = concreteType.getSootClass();
if( !canStoreClass( concreteClass, declaringClass ) ) {
  continue;
origin: ibinti/bugvm

  return canStoreClass( ((RefType) child).getSootClass(),
    ((RefType) parent).getSootClass() );
} else {
    if( !workset.add(cl) ) continue;
    if( cl.isConcrete() 
    &&  canStoreClass(cl, parentClass) ) return true;
    worklist.addAll(getSubclassesOf(cl));
origin: com.bugvm/bugvm-soot

  return canStoreClass( ((RefType) child).getSootClass(),
    ((RefType) parent).getSootClass() );
} else {
    if( !workset.add(cl) ) continue;
    if( cl.isConcrete() 
    &&  canStoreClass(cl, parentClass) ) return true;
    worklist.addAll(getSubclassesOf(cl));
origin: ibinti/bugvm

/** Returns true if the method m is visible from code in the class from. */
private boolean isVisible( SootClass from, SootMethod m ) {
  from.checkLevel(SootClass.HIERARCHY);
  if( m.isPublic() ) return true;
  if( m.isPrivate() ) {
    return from.equals( m.getDeclaringClass() );
  }
  if( m.isProtected() ) {
    return canStoreClass( from, m.getDeclaringClass() );
  }
  // m is package
  return from.getJavaPackageName().equals(
      m.getDeclaringClass().getJavaPackageName() );
    //|| canStoreClass( from, m.getDeclaringClass() );
}
origin: com.bugvm/bugvm-soot

/** Returns true if the method m is visible from code in the class from. */
private boolean isVisible( SootClass from, SootMethod m ) {
  from.checkLevel(SootClass.HIERARCHY);
  if( m.isPublic() ) return true;
  if( m.isPrivate() ) {
    return from.equals( m.getDeclaringClass() );
  }
  if( m.isProtected() ) {
    return canStoreClass( from, m.getDeclaringClass() );
  }
  // m is package
  return from.getJavaPackageName().equals(
      m.getDeclaringClass().getJavaPackageName() );
    //|| canStoreClass( from, m.getDeclaringClass() );
}
sootFastHierarchycanStoreClass

Javadoc

Given an object of declared type child, returns true if the object can be stored in a variable of type parent. If child is an interface that is not a subinterface of parent, this method will return false even though some objects implementing the child interface may also implement the parent interface.

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

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Permission (java.security)
    Legacy security code; do not use.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Reference (javax.naming)
  • JButton (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • From CI to AI: The AI layer in your organization
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