Class ProgramOfBody

java.lang.Object
org.ek9lang.compiler.support.ProgramOfBody
All Implemented Interfaces:
Function<ISymbol, Optional<IAggregateSymbol>>

public final class ProgramOfBody extends Object implements Function<ISymbol, Optional<IAggregateSymbol>>
THE reading of a program's body - use it, never a private "_main" test. Phase 1 gives a program a compiler-made method _main holding its body; nobody wrote that name, so the body IS the program: a call graph node, a tool's answer and a message all name the program. Gated on BOTH the name and the owner's genus, so a program's constructor, were one ever made, is not taken for its body.

This gives the program a body symbol belongs to; BodyOfProgram gives the body of a program.