Package com.sonarsource.rpg.api.tree
Interface ProcedureTree
-
- All Superinterfaces:
Tree
- All Known Subinterfaces:
MainProcedureTree
,SubProcedureTree
public interface ProcedureTree extends Tree
Common interface for all procedures:MainProcedureTree
orSubProcedureTree
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<CalculationTree>
calculations()
List of top-level calculations: calculations which are nested inside other calculations (e.g.List<FileDeclarationTree>
fileDeclarations()
List<DefinitionTree>
topLevelDefinitions()
List of the top-level definitions of the procedure: subfields of data structure are not part of this list, they can be accessed from their parentDataStructureDefinitionTree
.
-
-
-
Method Detail
-
topLevelDefinitions
List<DefinitionTree> topLevelDefinitions()
List of the top-level definitions of the procedure: subfields of data structure are not part of this list, they can be accessed from their parentDataStructureDefinitionTree
.- Returns:
- list of top-level definitions
-
fileDeclarations
List<FileDeclarationTree> fileDeclarations()
- Returns:
- list of file declarations.
-
calculations
List<CalculationTree> calculations()
List of top-level calculations: calculations which are nested inside other calculations (e.g. an "IF" group) don't appear in this list.- Returns:
- list of top-level calculations
-
-