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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name phase 1 gives a program's body method. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe program whose body this symbol is - empty for anything else.
-
Field Details
-
METHOD_NAME
-
-
Constructor Details
-
ProgramOfBody
public ProgramOfBody()
-
-
Method Details
-
apply
The program whose body this symbol is - empty for anything else.- Specified by:
applyin interfaceFunction<ISymbol, Optional<IAggregateSymbol>>
-