Package net.glowstone.util
Class ReflectionProcessor
java.lang.Object
net.glowstone.util.ReflectionProcessor
-
Constructor Summary
ConstructorDescriptionReflectionProcessor
(String line, Object... context) Creates a new reflection processor instance. -
Method Summary
-
Constructor Details
-
ReflectionProcessor
Creates a new reflection processor instance.The processor is able to parse referenced contexts with the following syntax:
- $ to reference the first context (equivalent to $1)
- $x to reference a specific context, where 'x' is the index of the context (starting from 1)
To reference a static method/field call, specifying the full package is required.
- Parameters:
line
- the reflection line.context
- the context(s) of the reflection line- See Also:
-
-
Method Details
-
process
Processes the given reflective line.- Returns:
- the resultant value of the reflective line
-