Ejemplo n.º 1
0
 /// <summary>
 /// Load the class that this frame refers to.
 /// </summary>
 public DalvikReferenceType GetReferenceType()
 {
     if (referenceType != null)
     {
         return(referenceType);
     }
     referenceType = thread.Manager.Process.ReferenceTypeManager[Location.Class];
     return(referenceType);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public DocumentLocation(Location location, SourceCodePosition sourceCode, DalvikReferenceType referenceType, DalvikMethod method, TypeEntry typeEntry, MethodEntry methodEntry)
 {
     if (location == null)
         throw new ArgumentNullException("location");
     Location = location;
     SourceCode = sourceCode;
     ReferenceType = referenceType;
     Method = method;
     this.typeEntry = typeEntry;
     this.methodEntry = methodEntry;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public DocumentLocation(Location location, Document document, DocumentPosition position, DalvikReferenceType referenceType, DalvikMethod method, TypeEntry typeEntry, MethodEntry methodEntry)
 {
     if (location == null)
         throw new ArgumentNullException("location");
     Location = location;
     Document = document;
     Position = position;
     ReferenceType = referenceType;
     Method = method;
     this.typeEntry = typeEntry;
     this.methodEntry = methodEntry;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public DocumentLocation(Location location, SourceCodePosition sourceCode, DalvikReferenceType referenceType, DalvikMethod method, TypeEntry typeEntry, MethodEntry methodEntry)
 {
     if (location == null)
     {
         throw new ArgumentNullException("location");
     }
     Location         = location;
     SourceCode       = sourceCode;
     ReferenceType    = referenceType;
     Method           = method;
     this.typeEntry   = typeEntry;
     this.methodEntry = methodEntry;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public DocumentLocation(Location location, Document document, DocumentPosition position, DalvikReferenceType referenceType, DalvikMethod method, TypeEntry typeEntry, MethodEntry methodEntry)
 {
     if (location == null)
     {
         throw new ArgumentNullException("location");
     }
     Location         = location;
     Document         = document;
     Position         = position;
     ReferenceType    = referenceType;
     Method           = method;
     this.typeEntry   = typeEntry;
     this.methodEntry = methodEntry;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public DebugBaseClassProperty(DalvikObjectReference objectReference, DalvikReferenceType superClass, DebugProperty parent)
     : base(parent)
 {
     this.objectReference = objectReference;
     this.superClass = superClass;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Gets or load the reference type of this id.
 /// </summary>
 public Task <DalvikReferenceType> GetReferenceTypeAsync()
 {
     if (IsNull || (referenceType != null))
     {
         return(referenceType.AsTask());
     }
     return(process.Debugger.ObjectReference.ReferenceTypeAsync(Id).Select(x => process.ReferenceTypeManager[x]).SaveAndReturn(x => referenceType = x));
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Load the class that this frame refers to.
 /// </summary>
 public DalvikReferenceType GetReferenceType()
 {
     if (referenceType != null) return referenceType;
     referenceType = thread.Manager.Process.ReferenceTypeManager[Location.Class];
     return referenceType;
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Default ctor
 /// </summary>
 internal DalvikMethod(DalvikReferenceType declaringType, MethodInfo info)
 {
     Id = info.Id;
     this.declaringType = declaringType;
     this.info = info;
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Default ctor
 /// </summary>
 internal DalvikMethod(DalvikReferenceType declaringType, MethodInfo info)
 {
     Id = info.Id;
     this.declaringType = declaringType;
     this.info          = info;
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Gets the superclass of this type.
 /// </summary>
 /// <returns>Null if this type is java/lang/Object.</returns>
 public Task <DalvikReferenceType> GetSuperClassAsync()
 {
     if (superClass != null)
     {
         return(superClass.AsTask());
     }
     return(Debugger.ClassType.SuperclassAsync(Id).Select(x => x.IsNull ? null : Manager[x]).SaveAndReturn(x => superClass = x));
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Default ctor
 /// </summary>
 internal DalvikField(DalvikReferenceType declaringType, FieldInfo info)
 {
     Id = info.Id;
     this.declaringType = declaringType;
     this.info          = info;
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Gets the superclass of this type.
 /// </summary>
 /// <returns>Null if this type is java/lang/Object.</returns>
 public Task<DalvikReferenceType> GetSuperClassAsync()
 {
     if (superClass != null) return superClass.AsTask();
     return Debugger.ClassType.SuperclassAsync(Id).Select(x => x.IsNull ? null : Manager[x]).SaveAndReturn(x => superClass = x);
 }
Ejemplo n.º 14
0
 /// <summary>
 /// Gets or load the reference type of this id.
 /// </summary>
 public Task<DalvikReferenceType> GetReferenceTypeAsync()
 {
     if (IsNull || (referenceType != null)) return referenceType.AsTask();
     return process.Debugger.ObjectReference.ReferenceTypeAsync(Id).Select(x => process.ReferenceTypeManager[x]).SaveAndReturn(x => referenceType = x);
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public DebugBaseClassProperty(DalvikObjectReference objectReference, DalvikReferenceType superClass)
 {
     this.objectReference = objectReference;
     this.superClass = superClass;
     LazyLoading = true;
 }
Ejemplo n.º 16
0
 /// <summary>
 /// Default ctor
 /// </summary>
 internal DalvikField(DalvikReferenceType declaringType, FieldInfo info)
 {
     Id = info.Id;
     this.declaringType = declaringType;
     this.info = info;
 }