public class

Util

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.asm.decompiler.ir.compiler.Util

Class Overview

Utility routines to build IR templates.

Summary

Public Constructors
Util()
Public Methods
static Leaf L(int id)
Create a leaf node matching everything (terminals and non-terminals alike, of any bitsize)
static Leaf L(int id, int bitsize)
Create a leaf node matching terminals and non-terminals of the provided bitsize
static Leaf L(int id, int bitsize, int flags, INodeHandler customHandler)
Create a leaf node
static Leaf LC(long value, int bitsize, int id)
Create a leaf node matching a given immediate with an explicit bitsize
static Leaf LC(long value, int bitsize)
Create a leaf node matching a given immediate with an explicit bitsize
static Leaf LC(long value)
Create a leaf node matching a given immediate, regardless of its bitsize
static Leaf LI(int id)
Create a leaf node matching immediates only
static Leaf LIV(int id)
Create a leaf node matching immediates and variables only
static Leaf LT(int id)
Create a leaf node matching all terminals, but terminals only
static Leaf LV(int id)
Create a leaf node matching variables only
static Node N(OGroup opgrp, INode... operands)
static Node N(O operator, INode... operands)
static SubstitutionDefinition SD(INode pattern, INode replacement)
static int calcMaxDepths(Node root)
static void setMaxDepths(INode root)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Util ()

Public Methods

public static Leaf L (int id)

Create a leaf node matching everything (terminals and non-terminals alike, of any bitsize)

public static Leaf L (int id, int bitsize)

Create a leaf node matching terminals and non-terminals of the provided bitsize

public static Leaf L (int id, int bitsize, int flags, INodeHandler customHandler)

Create a leaf node

public static Leaf LC (long value, int bitsize, int id)

Create a leaf node matching a given immediate with an explicit bitsize

public static Leaf LC (long value, int bitsize)

Create a leaf node matching a given immediate with an explicit bitsize

public static Leaf LC (long value)

Create a leaf node matching a given immediate, regardless of its bitsize

public static Leaf LI (int id)

Create a leaf node matching immediates only

public static Leaf LIV (int id)

Create a leaf node matching immediates and variables only

public static Leaf LT (int id)

Create a leaf node matching all terminals, but terminals only

public static Leaf LV (int id)

Create a leaf node matching variables only

public static Node N (OGroup opgrp, INode... operands)

public static Node N (O operator, INode... operands)

public static SubstitutionDefinition SD (INode pattern, INode replacement)

public static int calcMaxDepths (Node root)

public static void setMaxDepths (INode root)