Class: Pacer::Filter::JavaLoopFilter::LoopPipeFunction
- Inherits:
-
Object
- Object
- Pacer::Filter::JavaLoopFilter::LoopPipeFunction
- Defined in:
- lib/pacer/filter/java_loop_filter.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#graph ⇒ Object
readonly
Returns the value of attribute graph.
-
#wrapper ⇒ Object
readonly
Returns the value of attribute wrapper.
Instance Method Summary collapse
- #compute(loop_bundle) ⇒ Object
-
#initialize(graph, wrapper, block) ⇒ LoopPipeFunction
constructor
A new instance of LoopPipeFunction.
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
#block ⇒ Object (readonly)
Returns the value of attribute block.
86 87 88 |
# File 'lib/pacer/filter/java_loop_filter.rb', line 86 def block @block end |
#graph ⇒ Object (readonly)
Returns the value of attribute graph.
86 87 88 |
# File 'lib/pacer/filter/java_loop_filter.rb', line 86 def graph @graph end |
#wrapper ⇒ Object (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 |