1919import com .reandroid .arsc .container .BlockList ;
2020import com .reandroid .arsc .io .BlockReader ;
2121import com .reandroid .dex .base .Ule128Item ;
22- import com .reandroid .dex .debug .DebugElement ;
22+ import com .reandroid .dex .debug .DebugElementBlock ;
2323import com .reandroid .dex .debug .DebugSequence ;
24- import com .reandroid .dex .debug .DebugParameter ;
24+ import com .reandroid .dex .debug .DebugParameterBlock ;
2525import com .reandroid .dex .id .IdItem ;
2626import com .reandroid .dex .key .DataKey ;
2727import com .reandroid .dex .key .Key ;
@@ -40,7 +40,7 @@ public class DebugInfo extends DataItem implements KeyReference, Comparable<Debu
4040
4141 private final Ule128Item lineStart ;
4242 private final Ule128Item debugParameterCount ;
43- private BlockList <DebugParameter > debugParametersArray ;
43+ private BlockList <DebugParameterBlock > debugParametersArray ;
4444 private final DebugSequence debugSequence ;
4545
4646 private final DataKey <DebugInfo > debugKey ;
@@ -95,24 +95,24 @@ public int getParameterCount() {
9595 }
9696 return 0 ;
9797 }
98- public DebugParameter getDebugParameter (int index ) {
99- BlockList <DebugParameter > debugParametersArray = this .debugParametersArray ;
98+ public DebugParameterBlock getDebugParameter (int index ) {
99+ BlockList <DebugParameterBlock > debugParametersArray = this .debugParametersArray ;
100100 if (debugParametersArray != null ) {
101101 return debugParametersArray .get (index );
102102 }
103103 return null ;
104104 }
105- public DebugParameter getOrCreateDebugParameter (int index ) {
106- BlockList <DebugParameter > debugParametersArray = initParametersArray ();
105+ public DebugParameterBlock getOrCreateDebugParameter (int index ) {
106+ BlockList <DebugParameterBlock > debugParametersArray = initParametersArray ();
107107 debugParametersArray .ensureSize (index + 1 );
108108 return debugParametersArray .get (index );
109109 }
110110 public void removeDebugParameter (int index ) {
111- BlockList <DebugParameter > parameterNames = this .debugParametersArray ;
111+ BlockList <DebugParameterBlock > parameterNames = this .debugParametersArray ;
112112 if (parameterNames == null ) {
113113 return ;
114114 }
115- DebugParameter parameter = parameterNames .get (index );
115+ DebugParameterBlock parameter = parameterNames .get (index );
116116 if (parameter == null ) {
117117 return ;
118118 }
@@ -127,16 +127,16 @@ public boolean hasSequence() {
127127 return !getDebugSequence ().isEmpty ();
128128 }
129129 public boolean hasParameters () {
130- BlockList <DebugParameter > array = debugParametersArray ;
130+ BlockList <DebugParameterBlock > array = debugParametersArray ;
131131 return array != null && array .size () != 0 ;
132132 }
133- public Iterator <DebugParameter > getParameters () {
133+ public Iterator <DebugParameterBlock > getParameters () {
134134 if (debugParametersArray != null ) {
135135 return debugParametersArray .iterator ();
136136 }
137137 return EmptyIterator .of ();
138138 }
139- public Iterator <DebugElement > getExtraLines () {
139+ public Iterator <DebugElementBlock > getExtraLines () {
140140 return getDebugSequence ().getExtraLines ();
141141 }
142142 public DebugSequence getDebugSequence () {
@@ -148,14 +148,14 @@ public void onReadBytes(BlockReader reader) throws IOException {
148148 lineStart .onReadBytes (reader );
149149 debugParameterCount .onReadBytes (reader );
150150 if (debugParameterCount .get () > 0 ) {
151- BlockList <DebugParameter > array = initParametersArray ();
151+ BlockList <DebugParameterBlock > array = initParametersArray ();
152152 array .setSize (debugParameterCount .get ());
153153 array .readChildes (reader );
154154 }
155155 debugSequence .onReadBytes (reader );
156156 }
157- private BlockList <DebugParameter > initParametersArray () {
158- BlockList <DebugParameter > debugParametersArray = this .debugParametersArray ;
157+ private BlockList <DebugParameterBlock > initParametersArray () {
158+ BlockList <DebugParameterBlock > debugParametersArray = this .debugParametersArray ;
159159 if (debugParametersArray == null ) {
160160 debugParametersArray = new BlockList <>();
161161 this .debugParametersArray = debugParametersArray ;
@@ -166,7 +166,7 @@ private BlockList<DebugParameter> initParametersArray() {
166166 }
167167
168168 public void onRemove () {
169- BlockList <DebugParameter > array = this .debugParametersArray ;
169+ BlockList <DebugParameterBlock > array = this .debugParametersArray ;
170170 if (array != null ) {
171171 this .debugParametersArray = null ;
172172 array .clearChildes ();
@@ -191,9 +191,9 @@ protected void onRefreshed() {
191191 }
192192
193193 public Iterator <IdItem > usedIds () {
194- Iterator <IdItem > iterator1 = new IterableIterator <DebugParameter , IdItem >(getParameters ()) {
194+ Iterator <IdItem > iterator1 = new IterableIterator <DebugParameterBlock , IdItem >(getParameters ()) {
195195 @ Override
196- public Iterator <IdItem > iterator (DebugParameter element ) {
196+ public Iterator <IdItem > iterator (DebugParameterBlock element ) {
197197 return element .usedIds ();
198198 }
199199 };
@@ -207,11 +207,11 @@ public void merge(DebugInfo debugInfo) {
207207 int count = debugInfo .getParameterCount ();
208208 debugParameterCount .set (count );
209209 if (count != 0 ) {
210- BlockList <DebugParameter > array = initParametersArray ();
210+ BlockList <DebugParameterBlock > array = initParametersArray ();
211211 array .setSize (count );
212212 for (int i = 0 ; i < count ; i ++) {
213- DebugParameter comingParameter = debugInfo .getDebugParameter (i );
214- DebugParameter parameter = array .get (i );
213+ DebugParameterBlock comingParameter = debugInfo .getDebugParameter (i );
214+ DebugParameterBlock parameter = array .get (i );
215215 parameter .merge (comingParameter );
216216 }
217217 }
@@ -279,7 +279,7 @@ public int hashCode() {
279279 int hash = 1 ;
280280 if (!isEmpty ()) {
281281 hash = hash * 31 + lineStart .get ();
282- BlockList <DebugParameter > array = this .debugParametersArray ;
282+ BlockList <DebugParameterBlock > array = this .debugParametersArray ;
283283 hash = hash * 31 ;
284284 if (array != null ) {
285285 hash = hash + array .hashCode ();
@@ -299,6 +299,6 @@ public String toString() {
299299 ")}" ;
300300 }
301301
302- private static final Creator <DebugParameter > CREATOR = DebugParameter ::new ;
302+ private static final Creator <DebugParameterBlock > CREATOR = DebugParameterBlock ::new ;
303303
304304}
0 commit comments