Class ProgramBody
java.lang.Object
org.ek9lang.compiler.support.ProgramBody
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name phase 1 gives a program's body method. -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<MethodSymbol> The body method of a program - empty when the symbol is not a program.static Optional<IAggregateSymbol> The program whose body this symbol is - empty for anything else.
-
Field Details
-
METHOD_NAME
-
-
Method Details
-
programOf
The program whose body this symbol is - empty for anything else. -
bodyOf
The body method of a program - empty when the symbol is not a program.
-