Example #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);
 }
Example #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;
 }
Example #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;
 }
Example #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;
 }
Example #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;
 }
Example #6
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public DebugBaseClassProperty(DalvikObjectReference objectReference, DalvikReferenceType superClass, DebugProperty parent)
     : base(parent)
 {
     this.objectReference = objectReference;
     this.superClass = superClass;
 }
Example #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));
 }
Example #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;
 }
Example #9
0
 /// <summary>
 /// Default ctor
 /// </summary>
 internal DalvikMethod(DalvikReferenceType declaringType, MethodInfo info)
 {
     Id = info.Id;
     this.declaringType = declaringType;
     this.info = info;
 }
Example #10
0
 /// <summary>
 /// Default ctor
 /// </summary>
 internal DalvikMethod(DalvikReferenceType declaringType, MethodInfo info)
 {
     Id = info.Id;
     this.declaringType = declaringType;
     this.info          = info;
 }
Example #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));
 }
Example #12
0
 /// <summary>
 /// Default ctor
 /// </summary>
 internal DalvikField(DalvikReferenceType declaringType, FieldInfo info)
 {
     Id = info.Id;
     this.declaringType = declaringType;
     this.info          = info;
 }
Example #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);
 }
Example #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);
 }
 /// <summary>
 /// Default ctor
 /// </summary>
 public DebugBaseClassProperty(DalvikObjectReference objectReference, DalvikReferenceType superClass)
 {
     this.objectReference = objectReference;
     this.superClass = superClass;
     LazyLoading = true;
 }
Example #16
0
 /// <summary>
 /// Default ctor
 /// </summary>
 internal DalvikField(DalvikReferenceType declaringType, FieldInfo info)
 {
     Id = info.Id;
     this.declaringType = declaringType;
     this.info = info;
 }