/** * Creates a new {@link Priority}, sets it to this {@link Event} and * returns it. * * @return the newly created {@link Priority} object instance * @param math the {@link ASTNode} representing the expression to be set to the {@link Priority} */ public Priority createPriority(ASTNode math) { Priority p = createPriority(); p.setMath(math); return p; }