org.jboss.byteman.rule.binding
Class Bindings

java.lang.Object
  extended by org.jboss.byteman.rule.binding.Bindings

public class Bindings
extends java.lang.Object

* an ordered list of ECA rule event bindings as they occur in the event specification


Field Summary
private  java.util.List<Binding> bindings
          the list of current bindings
 
Constructor Summary
Bindings()
           
 
Method Summary
 void addBindings(java.util.List<Binding> bindings)
          add the method parameter bindings to the front of the list n.b.
 void append(Binding binding)
          append a binding to the end of the currrent bindings list
 java.util.Iterator<Binding> iterator()
           
 Binding lookup(java.lang.String name)
          lookup a binding in the list by name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bindings

private java.util.List<Binding> bindings
the list of current bindings

Constructor Detail

Bindings

public Bindings()
Method Detail

lookup

public Binding lookup(java.lang.String name)
lookup a binding in the list by name

Parameters:
name -
Returns:
the binding or null if no bidngin exists with the supplied name

addBindings

public void addBindings(java.util.List<Binding> bindings)
add the method parameter bindings to the front of the list n.b. the caller must ensure that the bindings are only for the rule's positional parameters and have names constructed from successive non-negative integers

Parameters:
bindings -

append

public void append(Binding binding)
append a binding to the end of the currrent bindings list

Parameters:
binding -

iterator

public java.util.Iterator<Binding> iterator()