reflection
Is metaprogramming a subset of reflection?
I used to think that metaprogramming involved modifying the program, and (as do some answers to What is reflection and why is it useful? ) that reflection merely consisted of introspection of a progra[详细]
2023-04-10 03:42 分类:问答Get functions and classes defined in file?
I\'m looping over all the files in a directory. Now I want to get all the functions and classes defined in each of them. From there, I can examine them further using the ReflectionClass. I can\'t figu[详细]
2023-04-10 03:28 分类:问答java primitive data type
I am creating a criteria query from a java object using reflection. The function is as follows private void createCriteria(Class searchClass, Object object, Criteria criteria, Field field, ClassMetad[详细]
2023-04-10 02:57 分类:问答How to get parameter names and types via reflection in Scala/Java methods?
We can use reflection to get method names as follows: object Foo { def bar(name:String, age:Int) = {} }[详细]
2023-04-10 02:50 分类:问答Built-in (or popular 3rd party library) way to map between primitive and corresponding reference type ("wrapper")?
I\'m looking for a bidirectional map that, for example, produces java.lang.Boolean.class when a lookup is done on java.lang.Boolean.TYPE, and visa versa. Basically, a primitive ⇆ wrapper map.[详细]
2023-04-10 01:45 分类:问答Probing Dlls through Reflection in ASP .Net
I have been trying to find more information on the technique ofdll and exe discovery by way of writing programs using ASP .Net and reflection(?).I haven\'t been able to find anything.[详细]
2023-04-10 01:37 分类:问答Java getMethod throws method not found exception?
I am using the getMethod(String name) function to load a method bu开发者_Python百科t it always throws MethodNotFoundException. If I run class.getMethods() the method I am looking for is in that result[详细]
2023-04-09 23:40 分类:问答How to get the value of a private member using reflection C# 4
I am trying to get the private member\'s value (Text) from NumericUpDown. public class NumericUpDown {[详细]
2023-04-09 22:17 分类:问答Detecting DllImportAttribute and its data in an assembly
I am trying to find (at runtime) the the the p/invokes along with their information: 1) Dll name 2) EntryPoint.[详细]
2023-04-09 20:34 分类:问答Self-cloning executable with .NET reflection
I\'m trying a sort of experiment in C# .NET. I\'d like to create a program that clones itself (eventually as a mutated clone).Finally, I want it to produce a \"son\" that also needs to have the abilit[详细]
2023-04-09 18:50 分类:问答