Package uk.co.bjdavies.api.variables
Annotation Type Variable
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface Variable
This annotation will declare to the plugin parser that either the field or the method will be used as a variable
Usages for variables
Field:
@uk.co.bjdavies.api.variables.Variable private String testVariable = "I am Test uk.co.bjdavies.api.variables.Variable";
You would then declare this in command as $(testVar)
Method:
@uk.co.bjdavies.api.variables.Variable private String printString(String s) {
return s;
}
You would then declare this in a command as $(printString(Hi))
- Since:
- 1.0.0