public interface FunctionContainer extends java.lang.Iterable<GoloFunction>
Modifier and Type | Method and Description |
---|---|
default void |
addElement(java.lang.Object elt)
Adds a function or a macro invocation according to the given argument.
|
void |
addFunction(GoloFunction func)
Adds a function to this container.
|
default void |
addFunctions(java.util.Collection<GoloFunction> funcs) |
void |
addMacroInvocation(MacroInvocation macroCall)
Adds a macro invocation to this container.
|
default GoloFunction |
getFunction(GoloFunction function) |
java.util.List<GoloFunction> |
getFunctions() |
PackageAndClass |
getPackageAndClass() |
boolean |
hasFunctions() |
default java.util.Iterator<GoloFunction> |
iterator() |
default java.util.Iterator<GoloFunction> iterator()
iterator
in interface java.lang.Iterable<GoloFunction>
java.util.List<GoloFunction> getFunctions()
void addFunction(GoloFunction func)
void addMacroInvocation(MacroInvocation macroCall)
The macro is supposed to return a GoloFunction
when expanded.
default void addElement(java.lang.Object elt)
PackageAndClass getPackageAndClass()
default void addFunctions(java.util.Collection<GoloFunction> funcs)
default GoloFunction getFunction(GoloFunction function)
boolean hasFunctions()