Skip to content

Utility Annotations

HansvdLaan edited this page Apr 25, 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.

@Parameter

@Parameter(ID = "A")
public String a;
};
    
@FunctionSymbol(symbolID = "B", parameters = {"A"})
public void b(String input) {
    // some code
}

@ParameterGenerator

@ParameterGenerator(ID = "A")
public String a(){
    //some code
};
    
@FunctionSymbol(symbolID = "B", parameters = {"A"})
public void b(String input) {
    // some code
}

@Predicate

@ParameterGenerator(ID = "A") public boolean a(){ //some code };

@FunctionSymbol(symbolID = "B", predicates = {"A"}) public void b() { // some code }

Clone this wiki locally