class Metasm::ExpressionString

An Expression with a custom string representation used to show define constants, struct offsets, func local vars, etc

Attributes

expr[RW]
hide_str[RW]
str[RW]
type[RW]

Public Class Methods

new(expr, str, type=nil) click to toggle source
# File metasm/main.rb, line 950
def initialize(expr, str, type=nil)
        @expr = Expression[expr]
        @str = str
        @type = type
end

Public Instance Methods

bind(*a) click to toggle source
# File metasm/main.rb, line 946
def bind(*a); expr.bind(*a); end
expr_externals() click to toggle source
# File metasm/main.rb, line 948
def expr_externals; expr.expr_externals; end
externals() click to toggle source
# File metasm/main.rb, line 947
def externals; expr.externals; end
inspect() click to toggle source
# File metasm/main.rb, line 956
def inspect ; "ExpressionString.new(#{@expr.inspect}, #{str.inspect}, #{type.inspect})" ; end
match_rec(*a) click to toggle source
# File metasm/main.rb, line 949
def match_rec(*a); expr.match_rec(*a); end
reduce() click to toggle source
# File metasm/main.rb, line 944
def reduce; expr.reduce; end
reduce_rec() click to toggle source
# File metasm/main.rb, line 945
def reduce_rec; expr.reduce_rec; end
render() click to toggle source
# File metasm/render.rb, line 104
def render; hide_str ? @expr.render : render_str ; end
render_str() click to toggle source
# File metasm/main.rb, line 955
def render_str ; [str] ; end