/// <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); }
/// <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; }
/// <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; }
/// <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; }
/// <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; }
/// <summary> /// Default ctor /// </summary> public DebugBaseClassProperty(DalvikObjectReference objectReference, DalvikReferenceType superClass, DebugProperty parent) : base(parent) { this.objectReference = objectReference; this.superClass = superClass; }
/// <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> /// 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; }
/// <summary> /// Default ctor /// </summary> internal DalvikMethod(DalvikReferenceType declaringType, MethodInfo info) { Id = info.Id; this.declaringType = declaringType; this.info = info; }
/// <summary> /// Default ctor /// </summary> internal DalvikMethod(DalvikReferenceType declaringType, MethodInfo info) { Id = info.Id; this.declaringType = declaringType; this.info = info; }
/// <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)); }
/// <summary> /// Default ctor /// </summary> internal DalvikField(DalvikReferenceType declaringType, FieldInfo info) { Id = info.Id; this.declaringType = declaringType; this.info = info; }
/// <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); }
/// <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; }
/// <summary> /// Default ctor /// </summary> internal DalvikField(DalvikReferenceType declaringType, FieldInfo info) { Id = info.Id; this.declaringType = declaringType; this.info = info; }