dk.brics.string.external
Interface ExternalVisibility

All Known Implementing Classes:
MainExternalVisibility, PublicExternalVisibility

public interface ExternalVisibility

Defines which methods are seen by the string analysis as being accessible from unknown code.


Method Summary
 boolean isExternallyVisibleField(SootField field)
          Defines which fields are seen by the string analysis as being acecssible from unknown code.
 boolean isExternallyVisibleMethod(SootMethod sm)
          Defines which methods are seen by the string analysis as being accessible from unknown code.
 

Method Detail

isExternallyVisibleField

boolean isExternallyVisibleField(SootField field)
Defines which fields are seen by the string analysis as being acecssible from unknown code. Note that this is also called for private fields, so a reasonable implementation should return false for such fields.

An externally visible field is considered to be corrupt, meaning it can spontaneously change value.

Parameters:
field - a field in the application being analyzed
Returns:
true if the field is externally visible.

isExternallyVisibleMethod

boolean isExternallyVisibleMethod(SootMethod sm)
Defines which methods are seen by the string analysis as being accessible from unknown code. The arguments to these methods can contain any values, and the return values might escape to unknown code.

Parameters:
sm - a method in the analyzed code.
Returns:
whether the method could possibly be called from unknown code.


Copyright © 2003-2009 Anders Møller, Aske Simon Christensen, Asger Feldthaus.