MCPcopy Create free account
hub / github.com/asLody/SandHook / newLocal

Method newLocal

xposedcompat/src/main/java/com/android/dx/Code.java:231–238  ·  view source on GitHub ↗

Allocates a new local variable of type type. It is an error to allocate a local after instructions have been emitted.

(TypeId<T> type)

Source from the content-addressed store, hash-verified

229 * allocate a local after instructions have been emitted.
230 */
231 public <T> Local<T> newLocal(TypeId<T> type) {
232 if (localsInitialized) {
233 throw new IllegalStateException("Cannot allocate locals after adding instructions");
234 }
235 Local<T> result = Local.get(this, type);
236 locals.add(result);
237 return result;
238 }
239
240 /**
241 * Returns the local for the parameter at index {@code index} and of type

Calls 2

getMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected