コード例 #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);
 }
コード例 #2
0
ファイル: DocumentLocation.cs プロジェクト: Xtremrules/dot42
 /// <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;
 }
コード例 #3
0
ファイル: DocumentLocation.cs プロジェクト: rfcclub/dot42
 /// <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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #6
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public DebugBaseClassProperty(DalvikObjectReference objectReference, DalvikReferenceType superClass, DebugProperty parent)
     : base(parent)
 {
     this.objectReference = objectReference;
     this.superClass = superClass;
 }
コード例 #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));
 }
コード例 #8
0
ファイル: DalvikStackFrame.cs プロジェクト: rfcclub/dot42
 /// <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;
 }
コード例 #9
0
ファイル: DalvikMethod.cs プロジェクト: Xtremrules/dot42
 /// <summary>
 /// Default ctor
 /// </summary>
 internal DalvikMethod(DalvikReferenceType declaringType, MethodInfo info)
 {
     Id = info.Id;
     this.declaringType = declaringType;
     this.info = info;
 }
コード例 #10
0
 /// <summary>
 /// Default ctor
 /// </summary>
 internal DalvikMethod(DalvikReferenceType declaringType, MethodInfo info)
 {
     Id = info.Id;
     this.declaringType = declaringType;
     this.info          = info;
 }
コード例 #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));
 }
コード例 #12
0
ファイル: DalvikField.cs プロジェクト: yuva2achieve/dot42
 /// <summary>
 /// Default ctor
 /// </summary>
 internal DalvikField(DalvikReferenceType declaringType, FieldInfo info)
 {
     Id = info.Id;
     this.declaringType = declaringType;
     this.info          = info;
 }
コード例 #13
0
ファイル: DalvikReferenceType.cs プロジェクト: rfcclub/dot42
 /// <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);
 }
コード例 #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);
 }
コード例 #15
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public DebugBaseClassProperty(DalvikObjectReference objectReference, DalvikReferenceType superClass)
 {
     this.objectReference = objectReference;
     this.superClass = superClass;
     LazyLoading = true;
 }
コード例 #16
0
ファイル: DalvikField.cs プロジェクト: Xtremrules/dot42
 /// <summary>
 /// Default ctor
 /// </summary>
 internal DalvikField(DalvikReferenceType declaringType, FieldInfo info)
 {
     Id = info.Id;
     this.declaringType = declaringType;
     this.info = info;
 }