This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ValueFactory


With the below, a typical use will be:

ValueFactory.getFactory(frame.task.proc).getValue ("a+2", frame)

so short circuit that vis:

ValueFactory
  static ValueFactory getFactory(Frame)
  Value getValue ("string");
  ... same for die ...

Andrew

Sami Wagiaalla wrote:
Okay so here is a skeleton:

// this takes care of the creation of Value object
public class ValueFactory{

public static ValueFactory getFactory(Proc){
// check cache and return a ValueFactory
} private ValueFactory(Proc proc){
}


   public Value getValue(String name, Frame currentFrame){
       ...
   }

   public Value getValue(DwarfDie die){
       ...     }

}

// this is just speculation but can be put either in Value it self or in a ValuePrint object
...
public String printValue(Value value){
}
...


How well will the above work for hpd, stack examination, source window, DisplayVariable, an any other interested parties :)

Sami


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]