-
Notifications
You must be signed in to change notification settings - Fork 0
Utility Annotations
HansvdLaan edited this page Apr 26, 2018
·
6 revisions
These are the annotations which can be used to help build the learning setups. Below all annotations are showcased together with a small example.
The Parameter annotation is used to create a new parameter which can be referenced in a symbol.
@Parameter(ID = "A")
public String a;
};
@FunctionSymbol(symbolID = "B", parameters = {"A"})
public void b(String input) {
// some code
}
The ParameterGenerator annotation is used to create a new parameter which can be referenced in a symbol.
@ParameterGenerator(ID = "A")
public String a(){
//some code
};
@FunctionSymbol(symbolID = "B", parameters = {"A"})
public void b(String input) {
// some code
}
The Predicate annotation is used to create a new predicate which can be referenced in a symbol.
@ParameterGenerator(ID = "A")
public boolean a(){
//some code
};
@FunctionSymbol(symbolID = "B", predicates = {"A"})
public void b() {
// some code
}