类 Metaprogramming
- java.lang.Object
-
- com.antgroup.antchain.myjava.metaprogramming.Metaprogramming
-
public final class Metaprogramming extends Object
myjava meta programming feature
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static <T> ReflectClass<T[]>arrayClass(ReflectClass<T> componentType)static ReflectClass<?>createClass(byte[] bytecode)static voiddefaultLocation()static voidemit(Action action)static <T> Value<T>emit(Computation<T> computation)static voidexit()static voidexit(Computation<?> returnValue)static <T> ReflectClass<T>findClass(Class<T> cls)static ReflectClass<?>findClass(String name)static ClassLoadergetClassLoader()static DiagnosticsgetDiagnostics()static SourceLocationgetLocation()static <T> Value<T>lazy(Computation<T> computation)static <T> Value<T>lazyFragment(LazyComputation<T> computation)static voidlocation(String fileName, int lineNumber)static <T> Value<T>proxy(ReflectClass<T> type, InvocationHandler<T> handler)static <T> Value<T>proxy(Class<T> type, InvocationHandler<T> handler)static voidunsupportedCase()
-
-
-
方法详细资料
-
emit
public static <T> Value<T> emit(Computation<T> computation)
-
emit
public static void emit(Action action)
-
lazyFragment
public static <T> Value<T> lazyFragment(LazyComputation<T> computation)
-
lazy
public static <T> Value<T> lazy(Computation<T> computation)
-
exit
public static void exit(Computation<?> returnValue)
-
exit
public static void exit()
-
location
public static void location(String fileName, int lineNumber)
-
defaultLocation
public static void defaultLocation()
-
getLocation
public static SourceLocation getLocation()
-
findClass
public static ReflectClass<?> findClass(String name)
-
findClass
public static <T> ReflectClass<T> findClass(Class<T> cls)
-
getClassLoader
public static ClassLoader getClassLoader()
-
arrayClass
public static <T> ReflectClass<T[]> arrayClass(ReflectClass<T> componentType)
-
createClass
public static ReflectClass<?> createClass(byte[] bytecode)
-
proxy
public static <T> Value<T> proxy(Class<T> type, InvocationHandler<T> handler)
-
proxy
public static <T> Value<T> proxy(ReflectClass<T> type, InvocationHandler<T> handler)
-
getDiagnostics
public static Diagnostics getDiagnostics()
-
unsupportedCase
public static void unsupportedCase()
-
-