Trace:
Differences
This shows you the differences between two versions of the page.
Last revision Both sides next revision | |||
jvx:common:util:reflective [2018/02/02 11:26] admin created |
jvx:common:util:reflective [2020/06/15 14:50] cduncan Edited for English grammar (capitalization, punctuation, correct verb conjugation) |
||
---|---|---|---|
Line 4: | Line 4: | ||
JVx' Reflective class allows you to create class instances or call methods via reflection but without directly using java.lang.reflect. | JVx' Reflective class allows you to create class instances or call methods via reflection but without directly using java.lang.reflect. | ||
- | == How it works? == | + | == How does it work? == |
We have a short example for you. Our class: | We have a short example for you. Our class: | ||
Line 51: | Line 51: | ||
</file> | </file> | ||
- | As you can see, we use the class Reflective.Parameter. It is useful if you have methods with the same name, same number of parameters but with different parameter types. Without this class, it is not guaranteed that the desired method is called. | + | As you can see, we use the class Reflective.Parameter. It is useful if you have methods with the same name and same number of parameters but with different parameter types. Without this class, it is not guaranteed that the desired method is called. |