Add newInstanceSpecial
This commit is contained in:
parent
9dbc7cb801
commit
04ba11db12
|
|
@ -226,12 +226,18 @@ public class XposedContextWrapper extends ContextWrapper implements XposedInterf
|
||||||
return getBaseContext().invokeSpecial(method, thisObject, args);
|
return getBaseContext().invokeSpecial(method, thisObject, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public <T> T newInstanceOrigin(@NonNull Constructor<T> constructor, Object... args) throws InvocationTargetException, IllegalArgumentException, IllegalAccessException, InstantiationException {
|
public <T> T newInstanceOrigin(@NonNull Constructor<T> constructor, Object... args) throws InvocationTargetException, IllegalArgumentException, IllegalAccessException, InstantiationException {
|
||||||
return getBaseContext().newInstanceOrigin(constructor, args);
|
return getBaseContext().newInstanceOrigin(constructor, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
|
@Override
|
||||||
|
public <T, U extends T> U newInstanceSpecial(@NonNull Constructor<T> constructor, @NonNull Class<U> subClass, Object... args) throws InvocationTargetException, IllegalArgumentException, IllegalAccessException, InstantiationException {
|
||||||
|
return getBaseContext().newInstanceSpecial(constructor, subClass, args);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ public interface XposedInterface {
|
||||||
* @throws IllegalAccessException the illegal access exception
|
* @throws IllegalAccessException the illegal access exception
|
||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
Object invokeOrigin() throws InvocationTargetException, IllegalAccessException;
|
Object invokeOrigin() throws InvocationTargetException, IllegalArgumentException, IllegalAccessException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets extra.
|
* Sets extra.
|
||||||
|
|
@ -539,9 +539,13 @@ public interface XposedInterface {
|
||||||
* @throws InvocationTargetException the invocation target exception
|
* @throws InvocationTargetException the invocation target exception
|
||||||
* @throws IllegalAccessException the illegal access exception
|
* @throws IllegalAccessException the illegal access exception
|
||||||
*/
|
*/
|
||||||
@Nullable
|
@NonNull
|
||||||
<T> T newInstanceOrigin(@NonNull Constructor<T> constructor, Object... args) throws InvocationTargetException, IllegalArgumentException, IllegalAccessException, InstantiationException;
|
<T> T newInstanceOrigin(@NonNull Constructor<T> constructor, Object... args) throws InvocationTargetException, IllegalArgumentException, IllegalAccessException, InstantiationException;
|
||||||
|
|
||||||
|
|
||||||
|
@NonNull
|
||||||
|
<T, U extends T> U newInstanceSpecial(@NonNull Constructor<T> constructor, @NonNull Class<U> subClass, Object... args) throws InvocationTargetException, IllegalArgumentException, IllegalAccessException, InstantiationException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log.
|
* Log.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue