abc.weaving.residues
Class Residue.Bindings

java.lang.Object
  extended by abc.weaving.residues.Residue.Bindings
Enclosing class:
Residue

public static class Residue.Bindings
extends java.lang.Object

Author:
Sascha Kuzins Represents the possible bindings of locals to advice-formals.

Constructor Summary
Residue.Bindings()
           
 
Method Summary
 void calculateBitMaskLayout()
          Calculate the mask layout for the bindings
 boolean contains(Local local)
           
 int getMaskBits(int index)
          Sets the bits of the mask which belong to the advice-formal at position index
 int getMaskPos(int index)
          Position of the bits of the mask that belong to the advice-formal at position index
 int getMaskValue(Local local, int i)
          Calculate bits to be or'd into the mask if this local is bound.
 boolean isAmbiguous()
           
 int lastIndexOf(Local local)
          Find last index of advice-formal which is bound to local
 java.util.List localsFromIndex(int i)
           
 int numOfFormals()
           
 void set(int pos, Local local)
          Add binding of Local local to advice-formal at position pos.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Residue.Bindings

public Residue.Bindings()
Method Detail

set

public void set(int pos,
                Local local)
Add binding of Local local to advice-formal at position pos.


lastIndexOf

public int lastIndexOf(Local local)
Find last index of advice-formal which is bound to local


contains

public boolean contains(Local local)

isAmbiguous

public boolean isAmbiguous()

localsFromIndex

public java.util.List localsFromIndex(int i)

getMaskValue

public int getMaskValue(Local local,
                        int i)
Calculate bits to be or'd into the mask if this local is bound.


numOfFormals

public int numOfFormals()

getMaskBits

public int getMaskBits(int index)
Sets the bits of the mask which belong to the advice-formal at position index


getMaskPos

public int getMaskPos(int index)
Position of the bits of the mask that belong to the advice-formal at position index


calculateBitMaskLayout

public void calculateBitMaskLayout()
Calculate the mask layout for the bindings


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object