public MethodHandleConstant addMethodHandle(MethodHandleType mhType,ConstantPoolEntry cpEntry){
  MethodHandleConstant entry=getMethodHandle(mhType,cpEntry);
  if (entry != null) {
    return entry;
  }
  entry=new MethodHandleConstant(this,_entries.size(),mhType,cpEntry);
  addConstant(entry);
  return entry;
}

public MethodHandleConstant addMethodHandle ( MethodHandleType mhType , ConstantPoolEntry cpEntry ) { MethodHandleConstant entry = getMethodHandle ( mhType , cpEntry ) ; if ( entry != null ) { return entry ; } entry = new MethodHandleConstant ( this , _entries . size ( ) , mhType , cpEntry ) ; addConstant ( entry ) ; return entry ; }
adds a method ref constant .
