asthook.static.ast package

Submodules

asthook.static.ast.AstInRam module

class asthook.static.ast.AstInRam.AstInRam

Bases: object

classmethod addpath(project, path, value)
classmethod askpath(project, path)
projects = {}

asthook.static.ast.Taint module

Module contents

class asthook.static.ast.Node(node, state)

Bases: object

Decorator Node apply function when th node throwing

class asthook.static.ast.Register

Bases: object

Class to register Node decorator modules

classmethod add_node(node, state, func)
funcs = [{}]
classmethod get_node(node, state, instance=0)
instance = 0
classmethod set_instance(instance)
class asthook.static.ast.ast(base_path, app, args, instance=0, conn=None)

Bases: object

Class allow to create the AST of the apk

class ASTList(elt, parent=None)

Bases: BaseNode

apply(selfp)
getName()
class Annotation(elt, parent=None)

Bases: BaseNode

apply(selfp)
getName()
class AnnotationDeclaration(elt, parent=None)

Bases: BaseNode

apply(selfp)
class AnnotationMethod(elt, parent=None)

Bases: BaseNode

apply(selfp)
class ArrayCreator(elt, parent=None)

Bases: BaseNode

apply(selfp)
class ArrayInitializer(elt, parent=None)

Bases: BaseNode

apply(selfp)
class ArraySelector(elt, parent=None)

Bases: BaseNode

apply(selfp)
class Assignment(elt, parent=None)

Bases: BaseNode

apply(selfp)
class AssignmentValue(elt, parent=None)

Bases: BaseNode

apply(selfp)
class AssignmentVar(elt, parent=None)

Bases: BaseNode

apply(selfp)
class BaseNode(elt, parent=None)

Bases: object

NameFormat(name)
class NodeGraph

Bases: object

apply(selfp)
getEgdeLabel()
getName()
graph(selfp)
visit(selfp)
class BasicType(elt, parent=None)

Bases: BaseNode

apply(selfp)
class BinaryOperation(elt, parent=None)

Bases: BaseNode

apply(selfp)
getName()
class BlockStatement(elt, parent=None)

Bases: BaseNode

apply(selfp)
class BreakStatement(elt, parent=None)

Bases: BaseNode

apply(selfp)
class Cast(elt, parent=None)

Bases: BaseNode

apply(selfp)
getName()
class CastSelectors(elt, parent=None)

Bases: BaseNode

apply(selfp)
class CatchClause(elt, parent=None)

Bases: BaseNode

apply(selfp)
class ClassCreator(elt, parent=None)

Bases: BaseNode

apply(selfp)
getName()
class ClassCreatorParameters(elt, parent=None)

Bases: BaseNode

apply(selfp)
class ClassDeclaration(elt, parent=None)

Bases: BaseNode

apply(selfp)
getName()
class ClassReference(elt, parent=None)

Bases: BaseNode

apply(selfp)
class ConstantDeclaration(elt, parent=None)

Bases: BaseNode

apply(selfp)
class ConstructorDeclaration(elt, parent=None)

Bases: BaseNode

apply(selfp)
getName()
class ConstructorDeclarationParameters(elt, parent=None)

Bases: BaseNode

apply(selfp)
class ContinueStatement(elt, parent=None)

Bases: BaseNode

apply(selfp)
class DepNode(base_path, hascache)

Bases: object

parse(path)
class DoStatement(elt, parent=None)

Bases: BaseNode

apply(selfp)
class EnumBody(elt, parent=None)

Bases: BaseNode

apply(selfp)
class EnumConstantDeclaration(elt, parent=None)

Bases: BaseNode

apply(selfp)
class EnumDeclaration(elt, parent=None)

Bases: BaseNode

apply(selfp)
class ExplicitConstructorInvocation(elt, parent=None)

Bases: BaseNode

apply(selfp)
class FieldDeclaration(elt, parent=None)

Bases: BaseNode

apply(selfp)
getName()
class ForControl(elt, parent=None)

Bases: BaseNode

apply(selfp)
class ForStatement(elt, parent=None)

Bases: BaseNode

apply(selfp)
class FormalParameter(elt, parent=None)

Bases: BaseNode

apply(selfp)
class IfStatement(elt, parent=None)

Bases: BaseNode

apply(selfp)
getName()
class IfStatementCondition(elt, parent=None)

Bases: BaseNode

apply(selfp)
class InnerClassCreator(elt, parent=None)

Bases: BaseNode

apply(selfp)
class InterfaceDeclaration(elt, parent=None)

Bases: BaseNode

apply(selfp)
class Literal(elt, parent=None)

Bases: BaseNode

apply(selfp)
getName()
class LocalVariableDeclaration(elt, parent=None)

Bases: BaseNode

apply(selfp)
getName()
class MemberReference(elt, parent=None)

Bases: BaseNode

apply(selfp)
getName()
class MethodDeclaration(elt, parent=None)

Bases: BaseNode

apply(selfp)
getName()
class MethodDeclarationParameters(elt, parent=None)

Bases: BaseNode

apply(selfp)
class MethodInvocation(elt, parent=None)

Bases: BaseNode

apply(selfp)
getName()
class MethodInvocationParameters(elt, parent=None)

Bases: BaseNode

apply(selfp)
class ReferenceType(elt, parent=None)

Bases: BaseNode

apply(selfp)
class ReturnStatement(elt, parent=None)

Bases: BaseNode

apply(selfp)
class Statement(elt, parent=None)

Bases: BaseNode

apply(selfp)
class StatementExpression(elt, parent=None)

Bases: BaseNode

apply(selfp)
getName()
class SuperConstructorInvocation(elt, parent=None)

Bases: BaseNode

apply(selfp)
class SuperMethodInvocation(elt, parent=None)

Bases: BaseNode

apply(selfp)
class SwitchStatement(elt, parent=None)

Bases: BaseNode

apply(selfp)
class SwitchStatementCase(elt, parent=None)

Bases: BaseNode

apply(selfp)
class SynchronizedStatement(elt, parent=None)

Bases: BaseNode

apply(selfp)
class TernaryExpression(elt, parent=None)

Bases: BaseNode

apply(selfp)
class This(elt, parent=None)

Bases: BaseNode

apply(selfp)
class ThrowStatement(elt, parent=None)

Bases: BaseNode

apply(selfp)
class TryStatement(elt, parent=None)

Bases: BaseNode

apply(selfp)
class TryStatementBlock(elt, parent=None)

Bases: BaseNode

apply(selfp)
class TryStatementFinally(elt, parent=None)

Bases: BaseNode

apply(selfp)
class TypeArgument(elt, parent=None)

Bases: BaseNode

apply(selfp)
class VariableDeclarator(elt, parent=None)

Bases: BaseNode

apply(selfp)
getName()
class WhileStatement(elt, parent=None)

Bases: BaseNode

apply(selfp)
class WhileStatementCondition(elt, parent=None)

Bases: BaseNode

apply(selfp)
check_import(paths, imports, depnodes, depnode)
get_infos()

Get marker to interact between different nodes

get_tmp()
hook(selfc, state)
init_graph(path)
load()

Throwing the AST and apply Nodes modules

set_infos(e)

Set marker to interact between different nodes

asthook.static.ast.protect_node(fun)