Skip to content

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.

@Parameter

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
}

@ParameterGenerator

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
}

@Predicate

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
}