mirror of
https://gitee.com/BDWare/cp.git
synced 2026-01-29 01:29:27 +00:00
reserve for parameter at compiler
This commit is contained in:
@@ -2,12 +2,17 @@ package org.bdware.sc.boundry.test;
|
||||
|
||||
import org.bdware.sc.boundry.AccountIndex;
|
||||
import org.bdware.sc.boundry.JavaScriptEntry;
|
||||
import org.bdware.sc.boundry.utils.AESUtil;
|
||||
import org.bdware.sc.engine.DesktopEngine;
|
||||
import org.junit.Test;
|
||||
import wrp.jdk.nashorn.api.scripting.ScriptObjectMirror;
|
||||
import wrp.jdk.nashorn.internal.objects.Global;
|
||||
import wrp.jdk.nashorn.internal.runtime.Context;
|
||||
import wrp.jdk.nashorn.internal.runtime.ScriptObject;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Parameter;
|
||||
|
||||
public class ACIndexTest {
|
||||
public static void main(String[] args) {
|
||||
AccountIndex index = AccountIndex.createIndex();
|
||||
@@ -38,4 +43,11 @@ public class ACIndexTest {
|
||||
long end = System.currentTimeMillis();
|
||||
System.out.println(end - start);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test() throws NoSuchMethodException {
|
||||
Method abc = AESUtil.class.getMethod("encrypt", String.class, String.class);
|
||||
Parameter[] param = abc.getParameters();
|
||||
System.out.println(param[0].getName());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user