Search in sources :

Example 1 with INodeModifier

use of com.google.security.zynamics.binnavi.ZyGraph.Builders.Modifiers.INodeModifier in project binnavi by google.

the class CCommentUtilities method createInstructionLine.

/**
   * TODO (timkornau): either comment function or find a nicer way to generate a pretty printed
   * instruction line which does not depend on the graph model.
   */
public static String createInstructionLine(final INaviInstruction instruction, final CGraphModel graphModel) {
    final ZyGraphViewSettings graphSettings = graphModel.getGraph().getSettings();
    final BackEndDebuggerProvider provider = graphModel.getDebuggerProvider();
    final INodeModifier modifier = new CDefaultModifier(graphSettings, provider);
    return ZyInstructionBuilder.buildInstructionLine(instruction, graphSettings, modifier).first();
}
Also used : INodeModifier(com.google.security.zynamics.binnavi.ZyGraph.Builders.Modifiers.INodeModifier) ZyGraphViewSettings(com.google.security.zynamics.binnavi.ZyGraph.ZyGraphViewSettings) BackEndDebuggerProvider(com.google.security.zynamics.binnavi.debug.debugger.BackEndDebuggerProvider) CDefaultModifier(com.google.security.zynamics.binnavi.ZyGraph.Builders.Modifiers.CDefaultModifier)

Aggregations

CDefaultModifier (com.google.security.zynamics.binnavi.ZyGraph.Builders.Modifiers.CDefaultModifier)1 INodeModifier (com.google.security.zynamics.binnavi.ZyGraph.Builders.Modifiers.INodeModifier)1 ZyGraphViewSettings (com.google.security.zynamics.binnavi.ZyGraph.ZyGraphViewSettings)1 BackEndDebuggerProvider (com.google.security.zynamics.binnavi.debug.debugger.BackEndDebuggerProvider)1