File: Style.cs

package info (click to toggle)
mono-debugger 0.60%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 9,556 kB
  • ctags: 22,787
  • sloc: ansic: 99,407; cs: 42,429; sh: 9,192; makefile: 376
file content (39 lines) | stat: -rw-r--r-- 850 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using System.Text;
using System.Collections;
using Mono.Debugger;
using Mono.Debugger.Languages;

namespace Mono.Debugger
{
	[Serializable]
	public enum DisplayFormat
	{
		Default,
		HexaDecimal,
		Address,
		Object
	}

	/// <summary>
	///   This interface controls how things are being displayed to the
	///   user, for instance the current stack frame or variables from
	///   the target.
	/// </summary>
	[Serializable]
	public abstract class Style
	{
		public abstract string Name {
			get;
		}

		public abstract string ShowVariableType (TargetType type, string name);

		public abstract string PrintVariable (TargetVariable variable, StackFrame frame);

		public abstract string FormatObject (Thread target, object obj,
						     DisplayFormat format);

		public abstract string FormatType (Thread target, TargetType type);
	}
}