Class: Pacer::Filter::JavaLoopFilter::LoopPipeFunction

Inherits:
Object
  • Object
show all
Defined in:
lib/pacer/filter/java_loop_filter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(graph, wrapper, block) ⇒ LoopPipeFunction

Returns a new instance of LoopPipeFunction.



88
89
90
91
92
# File 'lib/pacer/filter/java_loop_filter.rb', line 88

def initialize(graph, wrapper, block)
  @graph = graph
  @wrapper = wrapper
  @block = block
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



86
87
88
# File 'lib/pacer/filter/java_loop_filter.rb', line 86

def block
  @block
end

#graphObject (readonly)

Returns the value of attribute graph.



86
87
88
# File 'lib/pacer/filter/java_loop_filter.rb', line 86

def graph
  @graph
end

#wrapperObject (readonly)

Returns the value of attribute wrapper.



86
87
88
# File 'lib/pacer/filter/java_loop_filter.rb', line 86

def wrapper
  @wrapper
end

Instance Method Details

#compute(loop_bundle) ⇒ Object



94
95
96
# File 'lib/pacer/filter/java_loop_filter.rb', line 94

def compute(loop_bundle)
  !!(block.call LoopBundleWrapper.new(graph, wrapper, loop_bundle))
end