1 / 20

SSM

SSM. Reflection Class - D. 부산외국어대학교 컴퓨터공학부 유수희. 개발환경 : Microsoft Visual Studio 2008. CONTENT. Motive & Dream System Architecture Software Architecture #1(Check CLR Type) Software Architecture #2(Project Browser) Software Architecture #3(Shown on Diagram)

Télécharger la présentation

SSM

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SSM Reflection Class - D 부산외국어대학교 컴퓨터공학부 유수희 개발환경 : Microsoft Visual Studio 2008

  2. CONTENT • Motive & Dream • System Architecture • Software Architecture #1(Check CLR Type) • Software Architecture #2(Project Browser) • Software Architecture #3(Shown on Diagram) • Software Architecture #4(Parsing the IL of a Method Body) • PLAN • Demo, Q&A

  3. MOTIVE Visual Studio 2008

  4. DREAM

  5. SYSTEM ARCHITECTURE Project Manager Reflection Engine Manager XML Read Assembly Method Analysis Menu&Toolbar EXE/DLL Header Test Head Setting Docking Configuration Plug-in • Body Analysis Handler • Branch • Call • Condition • Exception • Hook • Resolve • Switch Individual Class Analysis Project Browser Setting Status Window Fetch Method Window UI Project Browser Class Diagram MSIL Viewer Code Viewer Info Viewer .NET Framework Reflection Namespaces • Aga.Controls • WinFormsUI.Docking C# Window XP

  6. SOFTWARE ARCHITECTURE#1.1 - Open a File Select Type Assemblies (*.dll) Executables (*.exe) Click! Next Step • Valid CLR Type • Create The Tree And Classes • Project Browser

  7. SOFTWARE ARCHITECTURE #1.2 - Valid CLR Type Start TRUE Header @ 0x3C CLI Header Test HeaderSignature ReadUInt16() Machine ReadUInt32() NumberOfSections TimeDateStamp PointerToSymbolTable NumberOfSymbols SizeOfOptionalHeader Characteristics Finish

  8. SOFTWARE ARCHITECTURE #2.1 - Project Browser TreeView MSILView CodeView EXE Using Reflection Class Diagram DLL Info View

  9. SOFTWARE ARCHITECTURE #2.2 - Project Browser DLL EXE

  10. SOFTWARE ARCHITECTURE #3.1 - Individual Class Analysis A S S O C I A T I O N S L I S T System.Reflection Constructors • ConstructorInfo • MethodInfo • PropertyInfo • FieldInfo • EventInfo PrameterInfo TypeItem Method Property getGenericsForType Field Event

  11. SOFTWARE ARCHITECTURE #3.2 - Get New Location Selection.Right + DLocation.Y , DLocation.X DefaultItemLocation Point(25,25) Reserved rectangle Step3 Step2 Selection rectangle Step1 Selection. IntersectsWith(Reserved) Move rectangle Example IntersectsWith Return true

  12. SOFTWARE ARCHITECTURE #3.3 - Draw Class Diagram Expander Max Height Max Weight

  13. SOFTWARE ARCHITECTURE #4.1 - Ask for the IL Code • OperandTpye • (17 Case) • InlineBrTarget • InlineField • InlineMethod • InlineSig • InlineTok • InlineType • Inlinel • Inlinel8 • InlineNode • InlineR • InlineString • InlineSwitch • InlineVar • ShortInlineBrTarget • ShortInlinel • ShortInlineR • ShortInlineVar • Reflection • ReturnType • ReflectedType • FullName • Method Body • Array of bytes • MSIL Code • OpCode • SingleByteOpCode • MultiByteOpCode

  14. SOFTWARE ARCHITECTURE #4.2 – MSIL Viewer Dump

  15. SOFTWARE ARCHITECTURE #4.3 – Set Method Head • General Code • Public, Private • Int, float, String • Main, Program • Byte, double • String str, Int i Reflection • IsPublic • ReturnType • Name • GetParameters • LocalVariabels

  16. SOFTWARE ARCHITECTURE #4.4 – MSIL Decompil MSIL Structure c b Local Variable Init a 2 Single Byte Instructions(0~ 255) Multi Byte Instructions(0~ 30) Single Byte Instructions(0~ 255) Multi Byte Instructions(0~ 30) 1 0

  17. SOFTWARE ARCHITECTURE #4.5 – MSIL Decompil Dump

  18. END PROJECT

  19. PLAN

  20. SSM DEMO, Q&A

More Related