Class BodyOfProgram
java.lang.Object
org.ek9lang.compiler.support.BodyOfProgram
- All Implemented Interfaces:
Function<ISymbol, Optional<MethodSymbol>>
public final class BodyOfProgram
extends Object
implements Function<ISymbol, Optional<MethodSymbol>>
THE body method of a program: the compiler-made
_main that holds what was written in the program, and
which IS the program wherever a person reads about it. The method is recognised by ProgramOfBody, never by
a private "_main" test.-
Constructor Details
-
BodyOfProgram
public BodyOfProgram()
-
-
Method Details
-
apply
The body method of a program - empty when the symbol is not a program.- Specified by:
applyin interfaceFunction<ISymbol, Optional<MethodSymbol>>
-