Package edu.umd.cs.findbugs.ba.bcp
Class BindingSet
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.bcp.BindingSet
-
public class BindingSet extends java.lang.Object
A set of Bindings, which are definitions of variables occuring in a ByteCodePattern. BindingSets are immutable; to add a binding, a new cell is allocated. (Are we CONSING yet?)- Author:
- David Hovemeyer
- See Also:
Binding
-
-
Constructor Summary
Constructors Constructor Description BindingSet(Binding binding, BindingSet parent)
Constructor; creates a new BindingSet as an extension of an existing one.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Binding
lookup(java.lang.String varName)
Look for a Binding for given variable.java.lang.String
toString()
-
-
-
Constructor Detail
-
BindingSet
public BindingSet(Binding binding, BindingSet parent)
Constructor; creates a new BindingSet as an extension of an existing one.- Parameters:
binding
- a variable bindingparent
- the parent BindingSet, containing other bindings
-
-
Method Detail
-
lookup
public Binding lookup(java.lang.String varName)
Look for a Binding for given variable.- Parameters:
varName
- name of the variable- Returns:
- the Binding, or null if no such Binding is present in the set
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-