Iterator<HeapVariable<Object>> enumerateExposedHeapVariables(){
  ArrayList<HeapVariable<Object>> v=new ArrayList<HeapVariable<Object>>();
  for (Iterator<HeapVariable<Object>> e=getHeapVariables(); e.hasNext(); ) {
    HeapVariable<Object> H=e.next();
    if (isExposedOnExit(H)) {
      v.add(H);
    }
  }
  return v.iterator();
}

Iterator < HeapVariable < Object > > enumerateExposedHeapVariables ( ) { ArrayList < HeapVariable < Object > > v = new ArrayList < HeapVariable < Object > > ( ) ; for ( Iterator < HeapVariable < Object > > e = getHeapVariables ( ) ; e . hasNext ( ) ; ) { HeapVariable < Object > H = e . next ( ) ; if ( isExposedOnExit ( H ) ) { v . add ( H ) ; } } return v . iterator ( ) ; }
return an enumeration of all heap variables that may be exposed on procedure exit .
