C# Class XBuilder.XDecompile

Show file Open project: swax/CodePerspective Class Usage Examples

Public Properties

Property Type Description
AddsDone int
AllowedAdds int
BackupPath string
LinesAdded long
RndGen Random

Public Methods

Method Description
SignatureToClass ( string signature, XNodeOut fileNode ) : XNodeOut
XDecompile ( BuildModel build, XNodeOut intRoot, XNodeOut extRoot, XRayedFile item, FunctionCall>.Dictionary callMap, FunctionCall>.Dictionary initMap ) : System

Private Methods

Method Description
AddInit ( Mono.Cecil.MethodDefinition cctor, bool created ) : void
AddInstanceTracking ( Mono.Cecil.TypeDefinition classDef, XNodeOut classNode ) : void
AddInstruction ( Mono.Cecil.MethodDefinition method, int pos, Instruction instruction ) : void
AddLine ( string line ) : void
AddStaticCall ( XNodeOut source, XNodeOut dest ) : void
CheckIfAlreadyXRayed ( IEnumerable files ) : bool
Compile ( ) : string
ComputeFieldValues ( XNodeOut node ) : double
Decompile ( string exePath, string destinationDir ) : void

decompiles file at OriginalPath to AsmDir

GetClassRef ( TypeReference declaringType ) : XNodeOut
InjectGui ( ) : void
InjectLibrary ( string name, string version ) : void
InjectMethodCatch ( XNodeOut node ) : void
InjectMethodEnter ( XNodeOut node ) : void
InjectMethodExit ( XNodeOut node ) : void
MarkNodeAsAnon ( XNodeOut node ) : void
MonoRecompile ( ) : void
MsDecompile ( ) : void
ProcessClassNames ( XNodeOut node ) : void
RecompileClass ( TypeDefinition classDef, XNodeOut fileNode ) : XNodeOut
RecompileMethod ( XNodeOut classNode, TypeDefinition classDef, MethodDefinition method ) : void
ResolveGenericMethod ( MethodReference target ) : MethodReference
ResolveGenericType ( TypeReference originalType, IList instanceArgs, IList methodArgs ) : TypeReference
SaveCode ( XNodeOut classNode, MethodDefinition method ) : void
ScanLines ( bool test ) : void
SetClassDependency ( XNodeOut dependentClass, TypeReference declaringType ) : XNodeOut
TrackMethodEnterParams ( MethodDefinition method, int nodeId, ILProcessor processor, bool hasThis ) : void
TrackMethodExit ( MethodDefinition method, MethodReference target, XNodeOut node, ILProcessor processor, int pos ) : int
UpdateExceptionHandlerPositions ( MethodDefinition method, Instruction oldPos, Instruction newPos ) : void
Verify ( string path ) : void

Method Details

SignatureToClass() public static method

public static SignatureToClass ( string signature, XNodeOut fileNode ) : XNodeOut
signature string
fileNode XNodeOut
return XNodeOut

XDecompile() public method

public XDecompile ( BuildModel build, XNodeOut intRoot, XNodeOut extRoot, XRayedFile item, FunctionCall>.Dictionary callMap, FunctionCall>.Dictionary initMap ) : System
build BuildModel
intRoot XNodeOut
extRoot XNodeOut
item XRayedFile
callMap FunctionCall>.Dictionary
initMap FunctionCall>.Dictionary
return System

Property Details

AddsDone public property

public int AddsDone
return int

AllowedAdds public property

public int AllowedAdds
return int

BackupPath public property

public string BackupPath
return string

LinesAdded public property

public long LinesAdded
return long

RndGen public static property

public static Random RndGen
return Random