@@ -100,17 +100,17 @@ public function __construct(JavaClassReaderInterface $reader, array $options = [
100100 $ options
101101 );
102102
103- $ this ->debugTool ->getLogger ()->debug ('Start emulation ' );
103+ $ this ->debugTool ->getLogger ()->info ('Start class emulation ' );
104104
105105 // read minor version
106106 $ this ->versions ['minor ' ] = $ reader ->getBinaryReader ()->readUnsignedShort ();
107107
108- $ this ->debugTool ->getLogger ()->debug ('Minor version: ' . $ this ->versions ['minor ' ]);
108+ $ this ->debugTool ->getLogger ()->info ('Minor version: ' . $ this ->versions ['minor ' ]);
109109
110110 // read major version
111111 $ this ->versions ['major ' ] = $ reader ->getBinaryReader ()->readUnsignedShort ();
112112
113- $ this ->debugTool ->getLogger ()->debug ('Major version: ' . $ this ->versions ['minor ' ]);
113+ $ this ->debugTool ->getLogger ()->info ('Major version: ' . $ this ->versions ['minor ' ]);
114114
115115 // read constant pool size
116116 $ this ->constantPool = new ConstantPool (
@@ -120,7 +120,7 @@ public function __construct(JavaClassReaderInterface $reader, array $options = [
120120
121121 $ constantPoolEntries = $ this ->constantPool ->getEntries ();
122122
123- $ this ->debugTool ->getLogger ()->debug ('Constant Pools: ' . count ($ constantPoolEntries ));
123+ $ this ->debugTool ->getLogger ()->info ('Constant Pools: ' . count ($ constantPoolEntries ));
124124
125125 // read access flag
126126 $ this ->accessFlag = $ reader ->getBinaryReader ()->readUnsignedShort ();
@@ -156,7 +156,7 @@ public function __construct(JavaClassReaderInterface $reader, array $options = [
156156 $ this ->debugTool
157157 );
158158
159- $ this ->debugTool ->getLogger ()->debug ('Extracted interfaces: ' . count ($ this ->activeInterfaces ->getEntries ()));
159+ $ this ->debugTool ->getLogger ()->info ('Extracted interfaces: ' . count ($ this ->activeInterfaces ->getEntries ()));
160160
161161 // read fields
162162 $ this ->activeFields = new ActiveFields (
@@ -166,7 +166,7 @@ public function __construct(JavaClassReaderInterface $reader, array $options = [
166166 $ this ->debugTool
167167 );
168168
169- $ this ->debugTool ->getLogger ()->debug ('Extracted fields: ' . count ($ this ->activeFields ->getEntries ()));
169+ $ this ->debugTool ->getLogger ()->info ('Extracted fields: ' . count ($ this ->activeFields ->getEntries ()));
170170
171171 // read methods
172172 $ this ->activeMethods = new ActiveMethods (
@@ -176,7 +176,7 @@ public function __construct(JavaClassReaderInterface $reader, array $options = [
176176 $ this ->debugTool
177177 );
178178
179- $ this ->debugTool ->getLogger ()->debug ('Extracted methods: ' . count ($ this ->activeMethods ->getEntries ()));
179+ $ this ->debugTool ->getLogger ()->info ('Extracted methods: ' . count ($ this ->activeMethods ->getEntries ()));
180180
181181 // read Attributes
182182 $ this ->activeAttributes = new ActiveAttributes (
@@ -186,7 +186,7 @@ public function __construct(JavaClassReaderInterface $reader, array $options = [
186186 $ this ->debugTool
187187 );
188188
189- $ this ->debugTool ->getLogger ()->debug ('Extracted attributes: ' . count ($ this ->activeAttributes ->getEntries ()));
189+ $ this ->debugTool ->getLogger ()->info ('Extracted attributes: ' . count ($ this ->activeAttributes ->getEntries ()));
190190
191191 foreach ($ this ->activeAttributes ->getEntries () as $ entry ) {
192192 if ($ entry ->getAttributeData () instanceof InnerClassesAttribute) {
@@ -196,6 +196,7 @@ public function __construct(JavaClassReaderInterface $reader, array $options = [
196196 );
197197 }
198198 }
199+ $ this ->debugTool ->getLogger ()->info ('End of Class ' );
199200
200201 $ this ->invoker = new JavaClassInvoker (
201202 $ this ,
@@ -381,4 +382,9 @@ function ($code) use (&$codeCounter, &$debugTraces) {
381382 printf ("\n" );
382383 }
383384 }
385+
386+ public function getOptions (): array
387+ {
388+ return $ this ->options ;
389+ }
384390}
0 commit comments