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


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
That looks usable from my perspective, although I'm probably not in the best position to comment on plausability issues :)

Adam


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