taskjuggler 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +2086 -0
- data/benchmarks/666tasks.tjp +3183 -0
- data/benchmarks/booking.tjp +14 -10
- data/doc/AppConfig.html +95 -73
- data/doc/Arguments.html +22 -2
- data/doc/CHANGELOG.html +2587 -0
- data/doc/COPYING.html +21 -1
- data/doc/Object.html +161 -122
- data/doc/README.html +21 -1
- data/doc/RuntimeConfig.html +26 -6
- data/doc/String.html +38 -18
- data/doc/StringIO.html +579 -0
- data/doc/TaskJuggler.html +251 -143
- data/doc/TaskJuggler/Account.html +26 -6
- data/doc/TaskJuggler/AccountAttribute.html +28 -8
- data/doc/TaskJuggler/AccountScenario.html +24 -4
- data/doc/TaskJuggler/Allocation.html +30 -10
- data/doc/TaskJuggler/AllocationAttribute.html +28 -8
- data/doc/TaskJuggler/AttributeBase.html +46 -26
- data/doc/TaskJuggler/AttributeDefinition.html +22 -2
- data/doc/TaskJuggler/BatchProcessor.html +40 -20
- data/doc/TaskJuggler/Booking.html +26 -6
- data/doc/TaskJuggler/BookingListAttribute.html +28 -8
- data/doc/TaskJuggler/BooleanAttribute.html +28 -8
- data/doc/TaskJuggler/CSVFile.html +308 -146
- data/doc/TaskJuggler/CellSettingPattern.html +22 -2
- data/doc/TaskJuggler/CellSettingPatternList.html +26 -6
- data/doc/TaskJuggler/Charge.html +26 -6
- data/doc/TaskJuggler/ChargeListAttribute.html +26 -6
- data/doc/TaskJuggler/ChargeSet.html +33 -13
- data/doc/TaskJuggler/ChargeSetListAttribute.html +28 -8
- data/doc/TaskJuggler/ColumnListAttribute.html +26 -6
- data/doc/TaskJuggler/ColumnTable.html +24 -4
- data/doc/TaskJuggler/Daemon.html +26 -6
- data/doc/TaskJuggler/DateAttribute.html +26 -6
- data/doc/TaskJuggler/DefinitionListAttribute.html +22 -2
- data/doc/TaskJuggler/DependencyListAttribute.html +28 -8
- data/doc/TaskJuggler/DurationAttribute.html +28 -8
- data/doc/TaskJuggler/FixnumAttribute.html +24 -4
- data/doc/TaskJuggler/FlagListAttribute.html +28 -8
- data/doc/TaskJuggler/FloatAttribute.html +26 -6
- data/doc/TaskJuggler/FormatListAttribute.html +24 -4
- data/doc/TaskJuggler/GanttChart.html +147 -126
- data/doc/TaskJuggler/GanttContainer.html +34 -14
- data/doc/TaskJuggler/GanttHeader.html +28 -8
- data/doc/TaskJuggler/GanttHeaderScaleItem.html +24 -4
- data/doc/TaskJuggler/GanttLine.html +38 -18
- data/doc/TaskJuggler/GanttLoadStack.html +26 -6
- data/doc/TaskJuggler/GanttMilestone.html +34 -14
- data/doc/TaskJuggler/GanttRouter.html +50 -30
- data/doc/TaskJuggler/GanttTaskBar.html +34 -14
- data/doc/TaskJuggler/HTMLDocument.html +26 -6
- data/doc/TaskJuggler/HTMLGraphics.html +30 -10
- data/doc/TaskJuggler/Interval.html +40 -22
- data/doc/TaskJuggler/IntervalListAttribute.html +28 -8
- data/doc/TaskJuggler/JobInfo.html +24 -4
- data/doc/TaskJuggler/Journal.html +226 -147
- data/doc/TaskJuggler/JournalEntry.html +22 -2
- data/doc/TaskJuggler/JournalEntryList.html +129 -112
- data/doc/TaskJuggler/KeywordArray.html +26 -6
- data/doc/TaskJuggler/KeywordDocumentation.html +46 -26
- data/doc/TaskJuggler/Limits.html +152 -123
- data/doc/TaskJuggler/Limits/Limit.html +149 -70
- data/doc/TaskJuggler/LimitsAttribute.html +36 -51
- data/doc/TaskJuggler/ListAttributeBase.html +24 -4
- data/doc/TaskJuggler/Log.html +50 -32
- data/doc/TaskJuggler/LogFile.html +37 -17
- data/doc/TaskJuggler/LogicalAttribute.html +53 -33
- data/doc/TaskJuggler/LogicalExpression.html +26 -6
- data/doc/TaskJuggler/LogicalExpressionAttribute.html +32 -12
- data/doc/TaskJuggler/LogicalFlag.html +42 -22
- data/doc/TaskJuggler/LogicalFunction.html +204 -140
- data/doc/TaskJuggler/LogicalOperation.html +135 -111
- data/doc/TaskJuggler/Macro.html +22 -2
- data/doc/TaskJuggler/MacroParser.html +32 -12
- data/doc/TaskJuggler/MacroTable.html +32 -12
- data/doc/TaskJuggler/ManagerResponsibilities.html +24 -4
- data/doc/TaskJuggler/ManagerStatusRecord.html +24 -4
- data/doc/TaskJuggler/Message.html +24 -4
- data/doc/TaskJuggler/MessageHandler.html +24 -4
- data/doc/TaskJuggler/Navigator.html +104 -71
- data/doc/TaskJuggler/NavigatorElement.html +32 -12
- data/doc/TaskJuggler/NikuProject.html +22 -2
- data/doc/TaskJuggler/NikuReport.html +310 -228
- data/doc/TaskJuggler/NikuResource.html +22 -2
- data/doc/TaskJuggler/NodeListAttribute.html +615 -0
- data/doc/TaskJuggler/OnShiftCache.html +32 -12
- data/doc/TaskJuggler/ProcessIntercom.html +205 -78
- data/doc/TaskJuggler/ProcessIntercomIface.html +26 -6
- data/doc/TaskJuggler/Project.html +708 -660
- data/doc/TaskJuggler/ProjectBroker.html +506 -304
- data/doc/TaskJuggler/ProjectBrokerIface.html +61 -41
- data/doc/TaskJuggler/ProjectFileParser.html +429 -373
- data/doc/TaskJuggler/ProjectFileScanner.html +1790 -0
- data/doc/TaskJuggler/ProjectRecord.html +80 -60
- data/doc/TaskJuggler/ProjectServer.html +312 -237
- data/doc/TaskJuggler/ProjectServerIface.html +101 -43
- data/doc/TaskJuggler/PropertyAttribute.html +32 -12
- data/doc/TaskJuggler/PropertyList.html +166 -145
- data/doc/TaskJuggler/PropertySet.html +254 -224
- data/doc/TaskJuggler/PropertyTreeNode.html +670 -536
- data/doc/TaskJuggler/Query.html +169 -148
- data/doc/TaskJuggler/RTFHandlers.html +622 -0
- data/doc/TaskJuggler/RTFNavigator.html +28 -8
- data/doc/TaskJuggler/RTFQuery.html +40 -20
- data/doc/TaskJuggler/RTFReport.html +62 -25
- data/doc/TaskJuggler/RTFReportLink.html +765 -0
- data/doc/TaskJuggler/RealFormat.html +26 -6
- data/doc/TaskJuggler/RealFormatAttribute.html +26 -6
- data/doc/TaskJuggler/ReferenceAttribute.html +59 -39
- data/doc/TaskJuggler/Report.html +402 -251
- data/doc/TaskJuggler/ReportBase.html +162 -137
- data/doc/TaskJuggler/ReportContext.html +112 -29
- data/doc/TaskJuggler/ReportServer.html +89 -64
- data/doc/TaskJuggler/ReportServerIface.html +75 -55
- data/doc/TaskJuggler/ReportServerRecord.html +54 -31
- data/doc/TaskJuggler/ReportServlet.html +980 -0
- data/doc/TaskJuggler/ReportTable.html +41 -21
- data/doc/TaskJuggler/ReportTableCell.html +214 -170
- data/doc/TaskJuggler/ReportTableColumn.html +30 -10
- data/doc/TaskJuggler/ReportTableLegend.html +36 -16
- data/doc/TaskJuggler/ReportTableLine.html +32 -12
- data/doc/TaskJuggler/Resource.html +99 -87
- data/doc/TaskJuggler/ResourceListAttribute.html +59 -39
- data/doc/TaskJuggler/ResourceListRE.html +47 -26
- data/doc/TaskJuggler/ResourceScenario.html +403 -437
- data/doc/TaskJuggler/RichText.html +26 -6
- data/doc/TaskJuggler/RichTextAttribute.html +50 -30
- data/doc/TaskJuggler/RichTextDocument.html +37 -17
- data/doc/TaskJuggler/RichTextElement.html +475 -413
- data/doc/TaskJuggler/RichTextException.html +22 -2
- data/doc/TaskJuggler/RichTextFunctionExample.html +28 -8
- data/doc/TaskJuggler/RichTextFunctionHandler.html +24 -4
- data/doc/TaskJuggler/RichTextImage.html +22 -2
- data/doc/TaskJuggler/RichTextIntermediate.html +38 -18
- data/doc/TaskJuggler/RichTextParser.html +56 -34
- data/doc/TaskJuggler/RichTextScanner.html +82 -61
- data/doc/TaskJuggler/RichTextSnip.html +34 -14
- data/doc/TaskJuggler/RichTextSyntaxRules.html +507 -353
- data/doc/TaskJuggler/Scenario.html +22 -2
- data/doc/TaskJuggler/ScenarioData.html +30 -46
- data/doc/TaskJuggler/ScenarioListAttribute.html +38 -18
- data/doc/TaskJuggler/Scoreboard.html +42 -22
- data/doc/TaskJuggler/SheetHandlerBase.html +40 -20
- data/doc/TaskJuggler/SheetReceiver.html +333 -295
- data/doc/TaskJuggler/SheetSender.html +253 -230
- data/doc/TaskJuggler/Shift.html +26 -6
- data/doc/TaskJuggler/ShiftAssignment.html +89 -73
- data/doc/TaskJuggler/ShiftAssignments.html +226 -234
- data/doc/TaskJuggler/ShiftAssignmentsAttribute.html +39 -54
- data/doc/TaskJuggler/ShiftScenario.html +28 -8
- data/doc/TaskJuggler/SortListAttribute.html +34 -14
- data/doc/TaskJuggler/SourceFileInfo.html +24 -4
- data/doc/TaskJuggler/StatusSheetReceiver.html +24 -3
- data/doc/TaskJuggler/StatusSheetReport.html +168 -153
- data/doc/TaskJuggler/StatusSheetSender.html +24 -3
- data/doc/TaskJuggler/StringAttribute.html +38 -18
- data/doc/TaskJuggler/SymbolAttribute.html +32 -12
- data/doc/TaskJuggler/SyntaxReference.html +40 -20
- data/doc/TaskJuggler/TOCEntry.html +26 -6
- data/doc/TaskJuggler/TSResourceRecord.html +22 -2
- data/doc/TaskJuggler/TSTaskRecord.html +22 -2
- data/doc/TaskJuggler/TableColumnDefinition.html +59 -22
- data/doc/TaskJuggler/TableOfContents.html +26 -6
- data/doc/TaskJuggler/TableReport.html +937 -904
- data/doc/TaskJuggler/Task.html +55 -36
- data/doc/TaskJuggler/TaskDependency.html +24 -4
- data/doc/TaskJuggler/TaskListAttribute.html +50 -30
- data/doc/TaskJuggler/TaskListRE.html +27 -7
- data/doc/TaskJuggler/TaskScenario.html +1273 -1153
- data/doc/TaskJuggler/TextFormatter.html +28 -8
- data/doc/TaskJuggler/TextParser.html +585 -338
- data/doc/TaskJuggler/TextParser/Pattern.html +54 -34
- data/doc/TaskJuggler/TextParser/Rule.html +95 -73
- data/doc/TaskJuggler/TextParser/StackElement.html +39 -17
- data/doc/TaskJuggler/TextParser/TextParserResultArray.html +24 -4
- data/doc/TaskJuggler/TextParser/TokenDoc.html +22 -2
- data/doc/TaskJuggler/TextReport.html +28 -8
- data/doc/TaskJuggler/TextScanner.html +400 -1404
- data/doc/TaskJuggler/TextScanner/BufferStreamHandle.html +28 -240
- data/doc/TaskJuggler/TextScanner/FileStreamHandle.html +37 -184
- data/doc/TaskJuggler/TextScanner/MacroStackEntry.html +682 -0
- data/doc/TaskJuggler/TextScanner/StreamHandle.html +342 -67
- data/doc/TaskJuggler/TimeSheet.html +48 -28
- data/doc/TaskJuggler/TimeSheetReceiver.html +24 -3
- data/doc/TaskJuggler/TimeSheetRecord.html +47 -27
- data/doc/TaskJuggler/TimeSheetReport.html +154 -133
- data/doc/TaskJuggler/TimeSheetSender.html +24 -3
- data/doc/TaskJuggler/TimeSheetSummary.html +137 -91
- data/doc/TaskJuggler/TimeSheets.html +26 -6
- data/doc/TaskJuggler/Tj3AppBase.html +85 -58
- data/doc/TaskJuggler/Tj3Client.html +292 -238
- data/doc/TaskJuggler/Tj3Daemon.html +159 -74
- data/doc/TaskJuggler/Tj3SheetAppBase.html +26 -6
- data/doc/TaskJuggler/Tj3SsReceiver.html +26 -6
- data/doc/TaskJuggler/Tj3SsSender.html +53 -26
- data/doc/TaskJuggler/Tj3TsReceiver.html +28 -7
- data/doc/TaskJuggler/Tj3TsSender.html +26 -6
- data/doc/TaskJuggler/Tj3TsSummary.html +26 -6
- data/doc/TaskJuggler/TjException.html +22 -2
- data/doc/TaskJuggler/TjTime.html +216 -160
- data/doc/TaskJuggler/TjpExample.html +34 -14
- data/doc/TaskJuggler/TjpExportRE.html +403 -407
- data/doc/TaskJuggler/TjpSyntaxRules.html +4805 -4408
- data/doc/TaskJuggler/URLParameter.html +649 -0
- data/doc/TaskJuggler/UserManual.html +42 -22
- data/doc/TaskJuggler/WebServer.html +702 -0
- data/doc/TaskJuggler/WorkingHours.html +38 -18
- data/doc/TaskJuggler/WorkingHoursAttribute.html +61 -41
- data/doc/TaskJuggler/XMLBlob.html +24 -4
- data/doc/TaskJuggler/XMLComment.html +24 -4
- data/doc/TaskJuggler/XMLDocument.html +30 -10
- data/doc/TaskJuggler/XMLElement.html +34 -14
- data/doc/TaskJuggler/XMLNamedText.html +22 -2
- data/doc/TaskJuggler/XMLText.html +24 -4
- data/doc/index.html +1841 -1666
- data/doc/lib/AccountScenario_rb.html +1 -1
- data/doc/lib/Account_rb.html +1 -1
- data/doc/lib/Allocation_rb.html +1 -1
- data/doc/lib/AppConfig_rb.html +2 -2
- data/doc/lib/AttributeBase_rb.html +1 -1
- data/doc/lib/AttributeDefinition_rb.html +1 -1
- data/doc/lib/Attributes_rb.html +2 -2
- data/doc/lib/BatchProcessor_rb.html +1 -1
- data/doc/lib/Booking_rb.html +1 -1
- data/doc/lib/ChargeSet_rb.html +1 -1
- data/doc/lib/Charge_rb.html +1 -1
- data/doc/lib/HTMLDocument_rb.html +1 -1
- data/doc/lib/Interval_rb.html +1 -1
- data/doc/lib/Journal_rb.html +2 -2
- data/doc/lib/KeywordArray_rb.html +1 -1
- data/doc/lib/KeywordDocumentation_rb.html +1 -1
- data/doc/lib/Limits_rb.html +2 -2
- data/doc/lib/LogFile_rb.html +2 -2
- data/doc/lib/Log_rb.html +1 -1
- data/doc/lib/LogicalExpression_rb.html +1 -1
- data/doc/lib/LogicalFunction_rb.html +2 -2
- data/doc/lib/LogicalOperation_rb.html +2 -2
- data/doc/lib/MacroParser_rb.html +1 -1
- data/doc/lib/MacroTable_rb.html +1 -1
- data/doc/lib/MessageHandler_rb.html +1 -1
- data/doc/lib/Message_rb.html +1 -1
- data/doc/lib/ProjectFileParser_rb.html +4 -8
- data/doc/lib/ProjectFileScanner_rb.html +67 -0
- data/doc/lib/Project_rb.html +2 -2
- data/doc/lib/PropertyList_rb.html +2 -2
- data/doc/lib/PropertySet_rb.html +2 -2
- data/doc/lib/PropertyTreeNode_rb.html +2 -2
- data/doc/lib/Query_rb.html +2 -2
- data/doc/lib/RTFHandlers_rb.html +73 -0
- data/doc/lib/RTFNavigator_rb.html +1 -1
- data/doc/lib/RTFQuery_rb.html +1 -1
- data/doc/lib/RTFReportLink_rb.html +71 -0
- data/doc/lib/RTFReport_rb.html +2 -2
- data/doc/lib/RealFormat_rb.html +1 -1
- data/doc/lib/ResourceScenario_rb.html +2 -2
- data/doc/lib/Resource_rb.html +2 -2
- data/doc/lib/RichTextDocument_rb.html +1 -1
- data/doc/lib/RichTextElement_rb.html +2 -2
- data/doc/lib/RichTextFunctionExample_rb.html +1 -1
- data/doc/lib/RichTextFunctionHandler_rb.html +1 -1
- data/doc/lib/RichTextParser_rb.html +2 -2
- data/doc/lib/RichTextScanner_rb.html +2 -2
- data/doc/lib/RichTextSnip_rb.html +1 -1
- data/doc/lib/RichTextSyntaxRules_rb.html +2 -2
- data/doc/lib/RichText_rb.html +1 -1
- data/doc/lib/RuntimeConfig_rb.html +1 -1
- data/doc/lib/ScenarioData_rb.html +2 -2
- data/doc/lib/Scenario_rb.html +1 -1
- data/doc/lib/Scoreboard_rb.html +1 -1
- data/doc/lib/SheetHandlerBase_rb.html +1 -1
- data/doc/lib/SheetReceiver_rb.html +2 -2
- data/doc/lib/SheetSender_rb.html +4 -2
- data/doc/lib/ShiftAssignments_rb.html +4 -2
- data/doc/lib/ShiftScenario_rb.html +1 -1
- data/doc/lib/Shift_rb.html +1 -1
- data/doc/lib/SourceFileInfo_rb.html +1 -1
- data/doc/lib/StatusSheetReceiver_rb.html +2 -2
- data/doc/lib/StatusSheetSender_rb.html +2 -2
- data/doc/lib/SyntaxReference_rb.html +1 -1
- data/doc/lib/TOCEntry_rb.html +1 -1
- data/doc/lib/TableColumnDefinition_rb.html +2 -2
- data/doc/lib/TableOfContents_rb.html +1 -1
- data/doc/lib/TaskDependency_rb.html +1 -1
- data/doc/lib/TaskJuggler_rb.html +2 -2
- data/doc/lib/TaskScenario_rb.html +2 -2
- data/doc/lib/Task_rb.html +2 -2
- data/doc/lib/TextFormatter_rb.html +1 -1
- data/doc/lib/TextParser/Pattern_rb.html +1 -1
- data/doc/lib/TextParser/Rule_rb.html +2 -2
- data/doc/lib/TextParser/StackElement_rb.html +2 -2
- data/doc/lib/TextParser/TokenDoc_rb.html +1 -1
- data/doc/lib/TextParser_rb.html +2 -2
- data/doc/lib/TextScanner_rb.html +6 -2
- data/doc/lib/TimeSheetReceiver_rb.html +2 -2
- data/doc/lib/TimeSheetSender_rb.html +2 -2
- data/doc/lib/TimeSheetSummary_rb.html +2 -2
- data/doc/lib/TimeSheets_rb.html +2 -2
- data/doc/lib/Tj3AppBase_rb.html +2 -2
- data/doc/lib/Tj3Config_rb.html +2 -2
- data/doc/lib/Tj3SheetAppBase_rb.html +2 -2
- data/doc/lib/TjException_rb.html +1 -1
- data/doc/lib/TjTime_rb.html +2 -2
- data/doc/lib/TjpExample_rb.html +1 -1
- data/doc/lib/TjpSyntaxRules_rb.html +2 -2
- data/doc/lib/URLParameter_rb.html +67 -0
- data/doc/lib/UTF8String_rb.html +1 -1
- data/doc/lib/UserManual_rb.html +1 -1
- data/doc/lib/WorkingHours_rb.html +1 -1
- data/doc/lib/XMLDocument_rb.html +2 -2
- data/doc/lib/XMLElement_rb.html +1 -1
- data/doc/lib/daemon/Daemon_rb.html +1 -1
- data/doc/lib/daemon/ProcessIntercom_rb.html +2 -2
- data/doc/lib/daemon/ProjectBroker_rb.html +4 -2
- data/doc/lib/daemon/ProjectServer_rb.html +2 -2
- data/doc/lib/daemon/ReportServer_rb.html +2 -2
- data/doc/lib/daemon/WebServer_rb.html +75 -0
- data/doc/lib/deep_copy_rb.html +2 -2
- data/doc/lib/reports/CSVFile_rb.html +2 -2
- data/doc/lib/reports/ColumnTable_rb.html +1 -1
- data/doc/lib/reports/GanttChart_rb.html +2 -2
- data/doc/lib/reports/GanttContainer_rb.html +1 -1
- data/doc/lib/reports/GanttHeaderScaleItem_rb.html +1 -1
- data/doc/lib/reports/GanttHeader_rb.html +1 -1
- data/doc/lib/reports/GanttLine_rb.html +1 -1
- data/doc/lib/reports/GanttLoadStack_rb.html +1 -1
- data/doc/lib/reports/GanttMilestone_rb.html +1 -1
- data/doc/lib/reports/GanttRouter_rb.html +1 -1
- data/doc/lib/reports/GanttTaskBar_rb.html +1 -1
- data/doc/lib/reports/HTMLGraphics_rb.html +1 -1
- data/doc/lib/reports/Navigator_rb.html +2 -2
- data/doc/lib/reports/NikuReport_rb.html +2 -2
- data/doc/lib/reports/ReportBase_rb.html +2 -2
- data/doc/lib/reports/ReportContext_rb.html +2 -2
- data/doc/lib/reports/ReportTableCell_rb.html +2 -2
- data/doc/lib/reports/ReportTableColumn_rb.html +1 -1
- data/doc/lib/reports/ReportTableLegend_rb.html +1 -1
- data/doc/lib/reports/ReportTableLine_rb.html +1 -1
- data/doc/lib/reports/ReportTable_rb.html +2 -2
- data/doc/lib/reports/Report_rb.html +2 -2
- data/doc/lib/reports/ResourceListRE_rb.html +2 -2
- data/doc/lib/reports/StatusSheetReport_rb.html +2 -2
- data/doc/lib/reports/TableReport_rb.html +2 -2
- data/doc/lib/reports/TaskListRE_rb.html +2 -2
- data/doc/lib/reports/TextReport_rb.html +1 -1
- data/doc/lib/reports/TimeSheetReport_rb.html +2 -2
- data/doc/lib/reports/TjpExportRE_rb.html +2 -2
- data/doc/lib/ruby-signal-bug_rb.html +1 -1
- data/doc/lib/taskjuggler3_rb.html +2 -2
- data/doc/lib/tj3client_rb.html +2 -2
- data/doc/lib/tj3d_rb.html +2 -2
- data/doc/lib/tj3man_rb.html +1 -1
- data/doc/lib/tj3ss_receiver_rb.html +1 -1
- data/doc/lib/tj3ss_sender_rb.html +2 -2
- data/doc/lib/tj3ts_receiver_rb.html +2 -2
- data/doc/lib/tj3ts_sender_rb.html +1 -1
- data/doc/lib/tj3ts_summary_rb.html +1 -1
- data/doc/rdoc.css +9 -4
- data/examples/tutorial.tjp +17 -15
- data/gem_spec.rb +3 -0
- data/lib/AppConfig.rb +3 -1
- data/lib/Attributes.rb +10 -8
- data/lib/Journal.rb +55 -20
- data/lib/Limits.rb +72 -46
- data/lib/LogFile.rb +3 -3
- data/lib/LogicalFunction.rb +19 -6
- data/lib/LogicalOperation.rb +5 -1
- data/lib/Project.rb +37 -9
- data/lib/ProjectFileParser.rb +25 -22
- data/lib/ProjectFileScanner.rb +365 -0
- data/lib/PropertyList.rb +2 -1
- data/lib/PropertySet.rb +14 -4
- data/lib/PropertyTreeNode.rb +42 -29
- data/lib/Query.rb +3 -1
- data/lib/RTFHandlers.rb +35 -0
- data/lib/RTFReport.rb +23 -6
- data/lib/RTFReportLink.rb +72 -0
- data/lib/Resource.rb +8 -16
- data/lib/ResourceScenario.rb +1 -22
- data/lib/RichTextElement.rb +42 -0
- data/lib/RichTextParser.rb +6 -4
- data/lib/RichTextScanner.rb +5 -5
- data/lib/RichTextSyntaxRules.rb +48 -10
- data/lib/ScenarioData.rb +5 -3
- data/lib/SheetReceiver.rb +24 -6
- data/lib/SheetSender.rb +17 -13
- data/lib/ShiftAssignments.rb +56 -52
- data/lib/StatusSheetReceiver.rb +1 -0
- data/lib/StatusSheetSender.rb +1 -0
- data/lib/TableColumnDefinition.rb +4 -2
- data/lib/Task.rb +8 -9
- data/lib/TaskJuggler.rb +21 -11
- data/lib/TaskScenario.rb +61 -26
- data/lib/TextParser.rb +268 -106
- data/lib/TextParser/Rule.rb +4 -2
- data/lib/TextParser/StackElement.rb +6 -4
- data/lib/TextScanner.rb +283 -700
- data/lib/TimeSheetReceiver.rb +1 -0
- data/lib/TimeSheetSender.rb +1 -0
- data/lib/TimeSheetSummary.rb +51 -26
- data/lib/TimeSheets.rb +1 -1
- data/lib/Tj3AppBase.rb +8 -1
- data/lib/Tj3Config.rb +1 -1
- data/lib/TjTime.rb +5 -0
- data/lib/TjpSyntaxRules.rb +360 -144
- data/lib/URLParameter.rb +30 -0
- data/lib/XMLDocument.rb +2 -2
- data/lib/daemon/ProcessIntercom.rb +50 -9
- data/lib/daemon/ProjectBroker.rb +63 -10
- data/lib/daemon/ProjectServer.rb +47 -16
- data/lib/daemon/ReportServer.rb +9 -4
- data/lib/daemon/WebServer.rb +204 -0
- data/lib/deep_copy.rb +4 -1
- data/lib/reports/CSVFile.rb +150 -66
- data/lib/reports/GanttChart.rb +2 -1
- data/lib/reports/Navigator.rb +18 -5
- data/lib/reports/NikuReport.rb +32 -2
- data/lib/reports/Report.rb +65 -37
- data/lib/reports/ReportBase.rb +14 -9
- data/lib/reports/ReportContext.rb +19 -4
- data/lib/reports/ReportTable.rb +2 -2
- data/lib/reports/ReportTableCell.rb +54 -30
- data/lib/reports/ResourceListRE.rb +4 -3
- data/lib/reports/StatusSheetReport.rb +8 -13
- data/lib/reports/TableReport.rb +47 -32
- data/lib/reports/TaskListRE.rb +3 -3
- data/lib/reports/TimeSheetReport.rb +14 -5
- data/lib/reports/TjpExportRE.rb +14 -19
- data/lib/taskjuggler3.rb +15 -0
- data/lib/tj3client.rb +9 -7
- data/lib/tj3d.rb +38 -10
- data/lib/tj3ss_sender.rb +7 -0
- data/lib/tj3ts_receiver.rb +1 -0
- data/manual/Day_To_Day_Juggling +1 -1
- data/manual/Rich_Text_Attributes +8 -0
- data/manual/TaskJuggler_2x_Migration +7 -0
- data/manual/The_TaskJuggler_Syntax +20 -6
- data/prj_cfg.rb +3 -2
- data/tasks/changelog.rake +36 -0
- data/tasks/csts.rake +2 -3
- data/tasks/gem.rake +10 -0
- data/tasks/missing.rake +0 -17
- data/test/TestSuite/ReportGenerator/Correct/Journal.html +63 -0
- data/test/TestSuite/ReportGenerator/Correct/Journal.tjp +14 -0
- data/test/TestSuite/{HTML-Reports/LogicalFunctions.tjp → ReportGenerator/Correct/LogicalFunctions1.tjp} +2 -2
- data/test/TestSuite/ReportGenerator/Correct/LogicalFunctions2.csv +3 -0
- data/test/TestSuite/ReportGenerator/Correct/LogicalFunctions2.tjp +19 -0
- data/test/TestSuite/ReportGenerator/Correct/css/tjmanual.css +66 -0
- data/test/TestSuite/ReportGenerator/Correct/css/tjreport.css +407 -0
- data/test/TestSuite/ReportGenerator/Correct/icons/details.png +0 -0
- data/test/TestSuite/ReportGenerator/Correct/icons/flag-green.png +0 -0
- data/test/TestSuite/ReportGenerator/Correct/icons/flag-red.png +0 -0
- data/test/TestSuite/ReportGenerator/Correct/icons/flag-yellow.png +0 -0
- data/test/TestSuite/ReportGenerator/Correct/icons/resource.png +0 -0
- data/test/TestSuite/ReportGenerator/Correct/icons/resourcegroup.png +0 -0
- data/test/TestSuite/ReportGenerator/Correct/icons/task.png +0 -0
- data/test/TestSuite/ReportGenerator/Correct/icons/taskgroup.png +0 -0
- data/test/TestSuite/ReportGenerator/Correct/icons/trend-down.png +0 -0
- data/test/TestSuite/ReportGenerator/Correct/icons/trend-flat.png +0 -0
- data/test/TestSuite/ReportGenerator/Correct/icons/trend-up.png +0 -0
- data/test/TestSuite/ReportGenerator/Correct/opennodes.csv +2 -0
- data/test/TestSuite/ReportGenerator/Correct/opennodes.tjp +26 -0
- data/test/TestSuite/ReportGenerator/Correct/refs/Journal-1.csv +6 -0
- data/test/TestSuite/ReportGenerator/Correct/refs/LogicalFunctions1-1.csv +7 -0
- data/test/TestSuite/ReportGenerator/Correct/refs/LogicalFunctions2-1.csv +2 -0
- data/test/TestSuite/ReportGenerator/Correct/refs/opennodes-1.csv +2 -0
- data/test/TestSuite/ReportGenerator/Correct/scripts/wz_tooltip.js +1301 -0
- data/test/TestSuite/ReportGenerator/Errors/rtp_report_recursion.tjp +20 -0
- data/test/TestSuite/Scheduler/Correct/Container.html +349 -0
- data/test/TestSuite/Scheduler/Correct/Limits.tjp +11 -4
- data/test/TestSuite/Scheduler/Correct/Shift2.html +464 -150
- data/test/TestSuite/Scheduler/Correct/TimeSheet2.html +108 -0
- data/test/TestSuite/Scheduler/Correct/TimeSheet2.tjp +7 -0
- data/test/TestSuite/Scheduler/Correct/css/tjmanual.css +14 -0
- data/test/TestSuite/Scheduler/Correct/css/tjreport.css +233 -21
- data/test/TestSuite/Scheduler/Correct/scripts/wz_tooltip.js +20 -20
- data/test/TestSuite/StatusSheetTemplates/project.tji +35 -0
- data/test/TestSuite/StatusSheetTemplates/project.tjp +56 -0
- data/test/TestSuite/StatusSheets/run +3 -2
- data/test/TestSuite/Syntax/Correct/Include.tjp +1 -1
- data/test/TestSuite/Syntax/Correct/Macro-1.tjp +1 -1
- data/test/TestSuite/Syntax/Correct/Macro-2.tjp +6 -0
- data/test/TestSuite/Syntax/Correct/Macro-3.tjp +14 -0
- data/test/TestSuite/Syntax/Correct/ResourcePrefix.html +32 -0
- data/test/TestSuite/Syntax/Correct/css/tjmanual.css +66 -0
- data/test/TestSuite/Syntax/Correct/css/tjreport.css +407 -0
- data/test/TestSuite/Syntax/Correct/icons/details.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/flag-green.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/flag-red.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/flag-yellow.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/resource.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/resourcegroup.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/task.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/taskgroup.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/trend-down.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/trend-flat.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/trend-up.png +0 -0
- data/test/TestSuite/Syntax/Correct/include/dir1/file2.tji +3 -0
- data/test/TestSuite/Syntax/Correct/include/dir1/file5.tji +2 -0
- data/test/TestSuite/Syntax/Correct/include/dir3/all.tji +3 -0
- data/test/TestSuite/Syntax/Correct/include/dir3/file1.tji +2 -0
- data/test/TestSuite/Syntax/Correct/include/dir3/file2.tji +1 -0
- data/test/TestSuite/Syntax/Correct/scripts/wz_tooltip.js +1301 -0
- data/test/TestSuite/Syntax/Correct/tutorial.tjp +13 -13
- data/test/TestSuite/Syntax/Errors/empty.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/include_recursion.tjp +1 -0
- data/test/TestSuite/Syntax/Errors/macro_stack_overflow.tjp +2 -1
- data/test/TestSuite/Syntax/Errors/{eof_in_istring1.tjp → no_token_match1.tjp} +2 -2
- data/test/TestSuite/Syntax/Errors/{eof_in_istring2.tjp → no_token_match2.tjp} +2 -2
- data/test/TestSuite/Syntax/Errors/{eof_in_istring3.tjp → no_token_match3.tjp} +1 -1
- data/test/TestSuite/Syntax/Errors/{eof_in_istring4.tjp → no_token_match4.tjp} +1 -1
- data/test/TestSuite/Syntax/Errors/{eof_in_istring5.tjp → no_token_match5.tjp} +1 -1
- data/test/TestSuite/Syntax/Errors/not_scheduled.tjp +13 -0
- data/test/TestSuite/Syntax/Errors/unsupported_token.tjp +1 -1
- data/test/TestSuite/TimeSheets/run +5 -5
- data/test/test_CSVFile.rb +75 -0
- data/test/test_Limits.rb +63 -5
- data/test/test_ProjectFileScanner.rb +163 -0
- data/test/test_ReportGenerator.rb +81 -0
- data/test/test_RichText.rb +21 -3
- data/test/test_Scheduler.rb +1 -1
- data/test/test_ShiftAssignments.rb +4 -4
- data/test/test_Syntax.rb +1 -1
- data/test/test_URLParameter.rb +30 -0
- metadata +126 -32
- data/test/TestSuite/Scheduler/Errors/not_scheduled.tjp +0 -8
- data/test/TestSuite/Syntax/Errors/bad_comment.tjp +0 -7
- data/test/TestSuite/TimeSheets/TimeSheetTemplates/2002-03-01/boss_2002-03-01.tji +0 -36
- data/test/TestSuite/TimeSheets/TimeSheetTemplates/2002-03-01/dev1_2002-03-01.tji +0 -48
- data/test/TestSuite/TimeSheets/TimeSheetTemplates/2002-03-01/dev2_2002-03-01.tji +0 -67
- data/test/TestSuite/TimeSheets/TimeSheetTemplates/2002-03-01/dev3_2002-03-01.tji +0 -67
- data/test/TestSuite/TimeSheets/TimeSheetTemplates/2002-03-01/doc_2002-03-01.tji +0 -48
- data/test/TestSuite/TimeSheets/TimeSheetTemplates/2002-03-01/resources.yml +0 -31
- data/test/TestSuite/TimeSheets/TimeSheetTemplates/2002-03-01/test_2002-03-01.tji +0 -36
- data/test/TestSuite/TimeSheets/TimeSheetTemplates/acceptable_intervals +0 -1
- data/test/TestSuite/TimeSheets/TimeSheets/2002-03-01/all.tji +0 -1
- data/test/TestSuite/TimeSheets/TimeSheets/2002-03-01/dev2_2002-03-01.tji +0 -54
- data/test/TestSuite/TimeSheets/TimeSheets/all.tji +0 -2
- data/test/TestSuite/TimeSheets/receiver.log +0 -102
- data/test/TestSuite/TimeSheets/sender.log +0 -794
- data/test/TestSuite/TimeSheets/summary.log +0 -884
- data/test/TestSuite/TimeSheets/timesheets.log +0 -45
- data/test/TestSuite/TimeSheets/tj3d.log +0 -292
- data/test/test_TextScanner.rb +0 -95
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
<h3 class="section-header">Methods</h3>
|
|
70
70
|
<ul class="link-list">
|
|
71
71
|
|
|
72
|
-
<li><a href="#
|
|
72
|
+
<li><a href="#method-c-new">::new</a></li>
|
|
73
73
|
|
|
74
|
-
<li><a href="#
|
|
74
|
+
<li><a href="#method-i-apiVersion">#apiVersion</a></li>
|
|
75
75
|
|
|
76
|
-
<li><a href="#
|
|
76
|
+
<li><a href="#method-i-command">#command</a></li>
|
|
77
77
|
|
|
78
|
-
<li><a href="#
|
|
78
|
+
<li><a href="#method-i-updateState">#updateState</a></li>
|
|
79
79
|
|
|
80
80
|
</ul>
|
|
81
81
|
</div>
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
<h3 class="section-header">Files</h3>
|
|
93
93
|
<ul>
|
|
94
94
|
|
|
95
|
+
<li class="file"><a href="../CHANGELOG.html">CHANGELOG</a></li>
|
|
96
|
+
|
|
95
97
|
<li class="file"><a href="../COPYING.html">COPYING</a></li>
|
|
96
98
|
|
|
97
99
|
<li class="file"><a href="../README.html">README</a></li>
|
|
@@ -261,6 +263,8 @@
|
|
|
261
263
|
|
|
262
264
|
<li><a href="../TaskJuggler/NikuResource.html">TaskJuggler::NikuResource</a></li>
|
|
263
265
|
|
|
266
|
+
<li><a href="../TaskJuggler/NodeListAttribute.html">TaskJuggler::NodeListAttribute</a></li>
|
|
267
|
+
|
|
264
268
|
<li><a href="../TaskJuggler/OnShiftCache.html">TaskJuggler::OnShiftCache</a></li>
|
|
265
269
|
|
|
266
270
|
<li><a href="../TaskJuggler/ProcessIntercom.html">TaskJuggler::ProcessIntercom</a></li>
|
|
@@ -275,6 +279,8 @@
|
|
|
275
279
|
|
|
276
280
|
<li><a href="../TaskJuggler/ProjectFileParser.html">TaskJuggler::ProjectFileParser</a></li>
|
|
277
281
|
|
|
282
|
+
<li><a href="../TaskJuggler/ProjectFileScanner.html">TaskJuggler::ProjectFileScanner</a></li>
|
|
283
|
+
|
|
278
284
|
<li><a href="../TaskJuggler/ProjectRecord.html">TaskJuggler::ProjectRecord</a></li>
|
|
279
285
|
|
|
280
286
|
<li><a href="../TaskJuggler/ProjectServer.html">TaskJuggler::ProjectServer</a></li>
|
|
@@ -291,12 +297,16 @@
|
|
|
291
297
|
|
|
292
298
|
<li><a href="../TaskJuggler/Query.html">TaskJuggler::Query</a></li>
|
|
293
299
|
|
|
300
|
+
<li><a href="../TaskJuggler/RTFHandlers.html">TaskJuggler::RTFHandlers</a></li>
|
|
301
|
+
|
|
294
302
|
<li><a href="../TaskJuggler/RTFNavigator.html">TaskJuggler::RTFNavigator</a></li>
|
|
295
303
|
|
|
296
304
|
<li><a href="../TaskJuggler/RTFQuery.html">TaskJuggler::RTFQuery</a></li>
|
|
297
305
|
|
|
298
306
|
<li><a href="../TaskJuggler/RTFReport.html">TaskJuggler::RTFReport</a></li>
|
|
299
307
|
|
|
308
|
+
<li><a href="../TaskJuggler/RTFReportLink.html">TaskJuggler::RTFReportLink</a></li>
|
|
309
|
+
|
|
300
310
|
<li><a href="../TaskJuggler/RealFormat.html">TaskJuggler::RealFormat</a></li>
|
|
301
311
|
|
|
302
312
|
<li><a href="../TaskJuggler/RealFormatAttribute.html">TaskJuggler::RealFormatAttribute</a></li>
|
|
@@ -315,6 +325,8 @@
|
|
|
315
325
|
|
|
316
326
|
<li><a href="../TaskJuggler/ReportServerRecord.html">TaskJuggler::ReportServerRecord</a></li>
|
|
317
327
|
|
|
328
|
+
<li><a href="../TaskJuggler/ReportServlet.html">TaskJuggler::ReportServlet</a></li>
|
|
329
|
+
|
|
318
330
|
<li><a href="../TaskJuggler/ReportTable.html">TaskJuggler::ReportTable</a></li>
|
|
319
331
|
|
|
320
332
|
<li><a href="../TaskJuggler/ReportTableCell.html">TaskJuggler::ReportTableCell</a></li>
|
|
@@ -443,6 +455,8 @@
|
|
|
443
455
|
|
|
444
456
|
<li><a href="../TaskJuggler/TextScanner/FileStreamHandle.html">TaskJuggler::TextScanner::FileStreamHandle</a></li>
|
|
445
457
|
|
|
458
|
+
<li><a href="../TaskJuggler/TextScanner/MacroStackEntry.html">TaskJuggler::TextScanner::MacroStackEntry</a></li>
|
|
459
|
+
|
|
446
460
|
<li><a href="../TaskJuggler/TextScanner/StreamHandle.html">TaskJuggler::TextScanner::StreamHandle</a></li>
|
|
447
461
|
|
|
448
462
|
<li><a href="../TaskJuggler/TimeSheet.html">TaskJuggler::TimeSheet</a></li>
|
|
@@ -487,8 +501,12 @@
|
|
|
487
501
|
|
|
488
502
|
<li><a href="../TaskJuggler/TjpSyntaxRules.html">TaskJuggler::TjpSyntaxRules</a></li>
|
|
489
503
|
|
|
504
|
+
<li><a href="../TaskJuggler/URLParameter.html">TaskJuggler::URLParameter</a></li>
|
|
505
|
+
|
|
490
506
|
<li><a href="../TaskJuggler/UserManual.html">TaskJuggler::UserManual</a></li>
|
|
491
507
|
|
|
508
|
+
<li><a href="../TaskJuggler/WebServer.html">TaskJuggler::WebServer</a></li>
|
|
509
|
+
|
|
492
510
|
<li><a href="../TaskJuggler/WorkingHours.html">TaskJuggler::WorkingHours</a></li>
|
|
493
511
|
|
|
494
512
|
<li><a href="../TaskJuggler/WorkingHoursAttribute.html">TaskJuggler::WorkingHoursAttribute</a></li>
|
|
@@ -515,6 +533,8 @@
|
|
|
515
533
|
|
|
516
534
|
<li><a href="../String.html">String</a></li>
|
|
517
535
|
|
|
536
|
+
<li><a href="../StringIO.html">StringIO</a></li>
|
|
537
|
+
|
|
518
538
|
</ul>
|
|
519
539
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
|
520
540
|
</div>
|
|
@@ -548,7 +568,7 @@ methods for remote access.
|
|
|
548
568
|
|
|
549
569
|
|
|
550
570
|
<div id="new-method" class="method-detail ">
|
|
551
|
-
<a name="
|
|
571
|
+
<a name="method-c-new"></a>
|
|
552
572
|
|
|
553
573
|
<div class="method-heading">
|
|
554
574
|
|
|
@@ -567,10 +587,10 @@ methods for remote access.
|
|
|
567
587
|
<div class="method-source-code"
|
|
568
588
|
id="new-source">
|
|
569
589
|
<pre>
|
|
570
|
-
<span class="ruby-comment cmt"># File lib/daemon/ProjectBroker.rb, line
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
590
|
+
<span class="ruby-comment cmt"># File lib/daemon/ProjectBroker.rb, line 399</span>
|
|
591
|
+
399: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">broker</span>)
|
|
592
|
+
400: <span class="ruby-ivar">@broker</span> = <span class="ruby-identifier">broker</span>
|
|
593
|
+
401: <span class="ruby-keyword kw">end</span></pre>
|
|
574
594
|
</div>
|
|
575
595
|
|
|
576
596
|
</div>
|
|
@@ -588,7 +608,7 @@ methods for remote access.
|
|
|
588
608
|
|
|
589
609
|
|
|
590
610
|
<div id="api-ersion-method" class="method-detail ">
|
|
591
|
-
<a name="
|
|
611
|
+
<a name="method-i-apiVersion"></a>
|
|
592
612
|
|
|
593
613
|
<div class="method-heading">
|
|
594
614
|
|
|
@@ -612,12 +632,12 @@ don’t match
|
|
|
612
632
|
<div class="method-source-code"
|
|
613
633
|
id="api-ersion-source">
|
|
614
634
|
<pre>
|
|
615
|
-
<span class="ruby-comment cmt"># File lib/daemon/ProjectBroker.rb, line
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
635
|
+
<span class="ruby-comment cmt"># File lib/daemon/ProjectBroker.rb, line 408</span>
|
|
636
|
+
408: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">apiVersion</span>(<span class="ruby-identifier">authKey</span>, <span class="ruby-identifier">version</span>)
|
|
637
|
+
409: <span class="ruby-keyword kw">return</span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">checkKey</span>(<span class="ruby-identifier">authKey</span>, <span class="ruby-value str">'apiVersion'</span>)
|
|
638
|
+
410:
|
|
639
|
+
411: <span class="ruby-identifier">version</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-operator">?</span> <span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span>
|
|
640
|
+
412: <span class="ruby-keyword kw">end</span></pre>
|
|
621
641
|
</div>
|
|
622
642
|
|
|
623
643
|
</div>
|
|
@@ -629,7 +649,7 @@ don’t match
|
|
|
629
649
|
|
|
630
650
|
|
|
631
651
|
<div id="command-method" class="method-detail ">
|
|
632
|
-
<a name="
|
|
652
|
+
<a name="method-i-command"></a>
|
|
633
653
|
|
|
634
654
|
<div class="method-heading">
|
|
635
655
|
|
|
@@ -648,25 +668,25 @@ don’t match
|
|
|
648
668
|
<div class="method-source-code"
|
|
649
669
|
id="command-source">
|
|
650
670
|
<pre>
|
|
651
|
-
<span class="ruby-comment cmt"># File lib/daemon/ProjectBroker.rb, line
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
671
|
+
<span class="ruby-comment cmt"># File lib/daemon/ProjectBroker.rb, line 414</span>
|
|
672
|
+
414: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">command</span>(<span class="ruby-identifier">authKey</span>, <span class="ruby-identifier">cmd</span>, <span class="ruby-identifier">args</span>)
|
|
673
|
+
415: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">checkKey</span>(<span class="ruby-identifier">authKey</span>, <span class="ruby-identifier">cmd</span>)
|
|
674
|
+
416:
|
|
675
|
+
417: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">cmd</span>
|
|
676
|
+
418: <span class="ruby-keyword kw">when</span> <span class="ruby-value">:status</span>
|
|
677
|
+
419: <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">status</span>
|
|
678
|
+
420: <span class="ruby-keyword kw">when</span> <span class="ruby-value">:stop</span>
|
|
679
|
+
421: <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">stop</span>
|
|
680
|
+
422: <span class="ruby-keyword kw">when</span> <span class="ruby-value">:addProject</span>
|
|
681
|
+
423: <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">addProject</span>
|
|
682
|
+
424: <span class="ruby-keyword kw">when</span> <span class="ruby-value">:removeProject</span>
|
|
683
|
+
425: <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">removeProject</span>(<span class="ruby-identifier">args</span>)
|
|
684
|
+
426: <span class="ruby-keyword kw">when</span> <span class="ruby-value">:getProject</span>
|
|
685
|
+
427: <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">getProject</span>(<span class="ruby-identifier">args</span>)
|
|
686
|
+
428: <span class="ruby-keyword kw">else</span>
|
|
687
|
+
429: <span class="ruby-constant">LogFile</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">fatal</span>(<span class="ruby-value str">'Unknown command #{cmd} called'</span>)
|
|
688
|
+
430: <span class="ruby-keyword kw">end</span>
|
|
689
|
+
431: <span class="ruby-keyword kw">end</span></pre>
|
|
670
690
|
</div>
|
|
671
691
|
|
|
672
692
|
</div>
|
|
@@ -678,7 +698,7 @@ don’t match
|
|
|
678
698
|
|
|
679
699
|
|
|
680
700
|
<div id="update-tate-method" class="method-detail ">
|
|
681
|
-
<a name="
|
|
701
|
+
<a name="method-i-updateState"></a>
|
|
682
702
|
|
|
683
703
|
<div class="method-heading">
|
|
684
704
|
|
|
@@ -697,10 +717,10 @@ don’t match
|
|
|
697
717
|
<div class="method-source-code"
|
|
698
718
|
id="update-tate-source">
|
|
699
719
|
<pre>
|
|
700
|
-
<span class="ruby-comment cmt"># File lib/daemon/ProjectBroker.rb, line
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
720
|
+
<span class="ruby-comment cmt"># File lib/daemon/ProjectBroker.rb, line 433</span>
|
|
721
|
+
433: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">updateState</span>(<span class="ruby-identifier">authKey</span>, <span class="ruby-identifier">id</span>, <span class="ruby-identifier">status</span>)
|
|
722
|
+
434: <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">updateState</span>(<span class="ruby-identifier">authKey</span>, <span class="ruby-identifier">id</span>, <span class="ruby-identifier">status</span>)
|
|
723
|
+
435: <span class="ruby-keyword kw">end</span></pre>
|
|
704
724
|
</div>
|
|
705
725
|
|
|
706
726
|
</div>
|
|
@@ -69,63 +69,65 @@
|
|
|
69
69
|
<h3 class="section-header">Methods</h3>
|
|
70
70
|
<ul class="link-list">
|
|
71
71
|
|
|
72
|
-
<li><a href="#
|
|
72
|
+
<li><a href="#method-c-new">::new</a></li>
|
|
73
73
|
|
|
74
|
-
<li><a href="#
|
|
74
|
+
<li><a href="#method-i-allOrNothingListRule">#allOrNothingListRule</a></li>
|
|
75
75
|
|
|
76
|
-
<li><a href="#
|
|
76
|
+
<li><a href="#method-i-also">#also</a></li>
|
|
77
77
|
|
|
78
|
-
<li><a href="#
|
|
78
|
+
<li><a href="#method-i-arg">#arg</a></li>
|
|
79
79
|
|
|
80
|
-
<li><a href="#
|
|
80
|
+
<li><a href="#method-i-checkBooking">#checkBooking</a></li>
|
|
81
81
|
|
|
82
|
-
<li><a href="#
|
|
82
|
+
<li><a href="#method-i-checkContainer">#checkContainer</a></li>
|
|
83
83
|
|
|
84
|
-
<li><a href="#
|
|
84
|
+
<li><a href="#method-i-checkInterval">#checkInterval</a></li>
|
|
85
85
|
|
|
86
|
-
<li><a href="#
|
|
86
|
+
<li><a href="#method-i-close">#close</a></li>
|
|
87
87
|
|
|
88
|
-
<li><a href="#
|
|
88
|
+
<li><a href="#method-i-columnTitle">#columnTitle</a></li>
|
|
89
89
|
|
|
90
|
-
<li><a href="#
|
|
90
|
+
<li><a href="#method-i-commaListRule">#commaListRule</a></li>
|
|
91
91
|
|
|
92
|
-
<li><a href="#
|
|
92
|
+
<li><a href="#method-i-descr">#descr</a></li>
|
|
93
93
|
|
|
94
|
-
<li><a href="#
|
|
94
|
+
<li><a href="#method-i-doc">#doc</a></li>
|
|
95
95
|
|
|
96
|
-
<li><a href="#
|
|
96
|
+
<li><a href="#method-i-example">#example</a></li>
|
|
97
97
|
|
|
98
|
-
<li><a href="#
|
|
98
|
+
<li><a href="#method-i-extendPropertySetDefinition">#extendPropertySetDefinition</a></li>
|
|
99
99
|
|
|
100
|
-
<li><a href="#
|
|
100
|
+
<li><a href="#method-i-initFileStack">#initFileStack</a></li>
|
|
101
101
|
|
|
102
|
-
<li><a href="#
|
|
102
|
+
<li><a href="#method-i-lastSyntaxToken">#lastSyntaxToken</a></li>
|
|
103
103
|
|
|
104
|
-
<li><a href="#
|
|
104
|
+
<li><a href="#method-i-listRule">#listRule</a></li>
|
|
105
105
|
|
|
106
|
-
<li><a href="#
|
|
106
|
+
<li><a href="#method-i-newReport">#newReport</a></li>
|
|
107
107
|
|
|
108
|
-
<li><a href="#
|
|
108
|
+
<li><a href="#method-i-newRichText">#newRichText</a></li>
|
|
109
109
|
|
|
110
|
-
<li><a href="#
|
|
110
|
+
<li><a href="#method-i-nextToken">#nextToken</a></li>
|
|
111
111
|
|
|
112
|
-
<li><a href="#
|
|
112
|
+
<li><a href="#method-i-open">#open</a></li>
|
|
113
113
|
|
|
114
|
-
<li><a href="#
|
|
114
|
+
<li><a href="#method-i-optionsRule">#optionsRule</a></li>
|
|
115
115
|
|
|
116
|
-
<li><a href="#
|
|
116
|
+
<li><a href="#method-i-parseReportAttributes">#parseReportAttributes</a></li>
|
|
117
117
|
|
|
118
|
-
<li><a href="#
|
|
118
|
+
<li><a href="#method-i-popFileStack">#popFileStack</a></li>
|
|
119
119
|
|
|
120
|
-
<li><a href="#
|
|
120
|
+
<li><a href="#method-i-pushFileStack">#pushFileStack</a></li>
|
|
121
121
|
|
|
122
|
-
<li><a href="#
|
|
122
|
+
<li><a href="#method-i-returnToken">#returnToken</a></li>
|
|
123
123
|
|
|
124
|
-
<li><a href="#
|
|
124
|
+
<li><a href="#method-i-setGlobalMacros">#setGlobalMacros</a></li>
|
|
125
125
|
|
|
126
|
-
<li><a href="#
|
|
126
|
+
<li><a href="#method-i-setLimit">#setLimit</a></li>
|
|
127
127
|
|
|
128
|
-
<li><a href="#
|
|
128
|
+
<li><a href="#method-i-singlePattern">#singlePattern</a></li>
|
|
129
|
+
|
|
130
|
+
<li><a href="#method-i-weekDay">#weekDay</a></li>
|
|
129
131
|
|
|
130
132
|
</ul>
|
|
131
133
|
</div>
|
|
@@ -153,6 +155,8 @@
|
|
|
153
155
|
<h3 class="section-header">Files</h3>
|
|
154
156
|
<ul>
|
|
155
157
|
|
|
158
|
+
<li class="file"><a href="../CHANGELOG.html">CHANGELOG</a></li>
|
|
159
|
+
|
|
156
160
|
<li class="file"><a href="../COPYING.html">COPYING</a></li>
|
|
157
161
|
|
|
158
162
|
<li class="file"><a href="../README.html">README</a></li>
|
|
@@ -322,6 +326,8 @@
|
|
|
322
326
|
|
|
323
327
|
<li><a href="../TaskJuggler/NikuResource.html">TaskJuggler::NikuResource</a></li>
|
|
324
328
|
|
|
329
|
+
<li><a href="../TaskJuggler/NodeListAttribute.html">TaskJuggler::NodeListAttribute</a></li>
|
|
330
|
+
|
|
325
331
|
<li><a href="../TaskJuggler/OnShiftCache.html">TaskJuggler::OnShiftCache</a></li>
|
|
326
332
|
|
|
327
333
|
<li><a href="../TaskJuggler/ProcessIntercom.html">TaskJuggler::ProcessIntercom</a></li>
|
|
@@ -336,6 +342,8 @@
|
|
|
336
342
|
|
|
337
343
|
<li><a href="../TaskJuggler/ProjectFileParser.html">TaskJuggler::ProjectFileParser</a></li>
|
|
338
344
|
|
|
345
|
+
<li><a href="../TaskJuggler/ProjectFileScanner.html">TaskJuggler::ProjectFileScanner</a></li>
|
|
346
|
+
|
|
339
347
|
<li><a href="../TaskJuggler/ProjectRecord.html">TaskJuggler::ProjectRecord</a></li>
|
|
340
348
|
|
|
341
349
|
<li><a href="../TaskJuggler/ProjectServer.html">TaskJuggler::ProjectServer</a></li>
|
|
@@ -352,12 +360,16 @@
|
|
|
352
360
|
|
|
353
361
|
<li><a href="../TaskJuggler/Query.html">TaskJuggler::Query</a></li>
|
|
354
362
|
|
|
363
|
+
<li><a href="../TaskJuggler/RTFHandlers.html">TaskJuggler::RTFHandlers</a></li>
|
|
364
|
+
|
|
355
365
|
<li><a href="../TaskJuggler/RTFNavigator.html">TaskJuggler::RTFNavigator</a></li>
|
|
356
366
|
|
|
357
367
|
<li><a href="../TaskJuggler/RTFQuery.html">TaskJuggler::RTFQuery</a></li>
|
|
358
368
|
|
|
359
369
|
<li><a href="../TaskJuggler/RTFReport.html">TaskJuggler::RTFReport</a></li>
|
|
360
370
|
|
|
371
|
+
<li><a href="../TaskJuggler/RTFReportLink.html">TaskJuggler::RTFReportLink</a></li>
|
|
372
|
+
|
|
361
373
|
<li><a href="../TaskJuggler/RealFormat.html">TaskJuggler::RealFormat</a></li>
|
|
362
374
|
|
|
363
375
|
<li><a href="../TaskJuggler/RealFormatAttribute.html">TaskJuggler::RealFormatAttribute</a></li>
|
|
@@ -376,6 +388,8 @@
|
|
|
376
388
|
|
|
377
389
|
<li><a href="../TaskJuggler/ReportServerRecord.html">TaskJuggler::ReportServerRecord</a></li>
|
|
378
390
|
|
|
391
|
+
<li><a href="../TaskJuggler/ReportServlet.html">TaskJuggler::ReportServlet</a></li>
|
|
392
|
+
|
|
379
393
|
<li><a href="../TaskJuggler/ReportTable.html">TaskJuggler::ReportTable</a></li>
|
|
380
394
|
|
|
381
395
|
<li><a href="../TaskJuggler/ReportTableCell.html">TaskJuggler::ReportTableCell</a></li>
|
|
@@ -504,6 +518,8 @@
|
|
|
504
518
|
|
|
505
519
|
<li><a href="../TaskJuggler/TextScanner/FileStreamHandle.html">TaskJuggler::TextScanner::FileStreamHandle</a></li>
|
|
506
520
|
|
|
521
|
+
<li><a href="../TaskJuggler/TextScanner/MacroStackEntry.html">TaskJuggler::TextScanner::MacroStackEntry</a></li>
|
|
522
|
+
|
|
507
523
|
<li><a href="../TaskJuggler/TextScanner/StreamHandle.html">TaskJuggler::TextScanner::StreamHandle</a></li>
|
|
508
524
|
|
|
509
525
|
<li><a href="../TaskJuggler/TimeSheet.html">TaskJuggler::TimeSheet</a></li>
|
|
@@ -548,8 +564,12 @@
|
|
|
548
564
|
|
|
549
565
|
<li><a href="../TaskJuggler/TjpSyntaxRules.html">TaskJuggler::TjpSyntaxRules</a></li>
|
|
550
566
|
|
|
567
|
+
<li><a href="../TaskJuggler/URLParameter.html">TaskJuggler::URLParameter</a></li>
|
|
568
|
+
|
|
551
569
|
<li><a href="../TaskJuggler/UserManual.html">TaskJuggler::UserManual</a></li>
|
|
552
570
|
|
|
571
|
+
<li><a href="../TaskJuggler/WebServer.html">TaskJuggler::WebServer</a></li>
|
|
572
|
+
|
|
553
573
|
<li><a href="../TaskJuggler/WorkingHours.html">TaskJuggler::WorkingHours</a></li>
|
|
554
574
|
|
|
555
575
|
<li><a href="../TaskJuggler/WorkingHoursAttribute.html">TaskJuggler::WorkingHoursAttribute</a></li>
|
|
@@ -576,6 +596,8 @@
|
|
|
576
596
|
|
|
577
597
|
<li><a href="../String.html">String</a></li>
|
|
578
598
|
|
|
599
|
+
<li><a href="../StringIO.html">StringIO</a></li>
|
|
600
|
+
|
|
579
601
|
</ul>
|
|
580
602
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
|
581
603
|
</div>
|
|
@@ -617,7 +639,7 @@ generate the complete reference manual from this rule set.
|
|
|
617
639
|
|
|
618
640
|
|
|
619
641
|
<div id="new-method" class="method-detail ">
|
|
620
|
-
<a name="
|
|
642
|
+
<a name="method-c-new"></a>
|
|
621
643
|
|
|
622
644
|
<div class="method-heading">
|
|
623
645
|
|
|
@@ -639,20 +661,20 @@ that is used for error reporting.
|
|
|
639
661
|
<div class="method-source-code"
|
|
640
662
|
id="new-source">
|
|
641
663
|
<pre>
|
|
642
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
664
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 35</span>
|
|
665
|
+
35: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">messageHandler</span>)
|
|
666
|
+
36: <span class="ruby-keyword kw">super</span>()
|
|
667
|
+
37:
|
|
668
|
+
38: <span class="ruby-ivar">@messageHandler</span> = <span class="ruby-identifier">messageHandler</span>
|
|
669
|
+
39: <span class="ruby-comment cmt"># Define the token types that the ProjectFileScanner may return for</span>
|
|
670
|
+
40: <span class="ruby-comment cmt"># variable elements.</span>
|
|
671
|
+
41: <span class="ruby-ivar">@variables</span> = <span class="ruby-node">%( INTEGER FLOAT DATE TIME STRING LITERAL ID ID_WITH_COLON
|
|
672
|
+
42: ABSOLUTE_ID MACRO )</span>
|
|
673
|
+
43:
|
|
674
|
+
44: <span class="ruby-identifier">initRules</span>
|
|
651
675
|
45:
|
|
652
|
-
46: <span class="ruby-
|
|
653
|
-
47:
|
|
654
|
-
48: <span class="ruby-ivar">@project</span> = <span class="ruby-keyword kw">nil</span>
|
|
655
|
-
49: <span class="ruby-keyword kw">end</span></pre>
|
|
676
|
+
46: <span class="ruby-ivar">@project</span> = <span class="ruby-keyword kw">nil</span>
|
|
677
|
+
47: <span class="ruby-keyword kw">end</span></pre>
|
|
656
678
|
</div>
|
|
657
679
|
|
|
658
680
|
</div>
|
|
@@ -670,7 +692,7 @@ that is used for error reporting.
|
|
|
670
692
|
|
|
671
693
|
|
|
672
694
|
<div id="close-method" class="method-detail ">
|
|
673
|
-
<a name="
|
|
695
|
+
<a name="method-i-close"></a>
|
|
674
696
|
|
|
675
697
|
<div class="method-heading">
|
|
676
698
|
|
|
@@ -692,11 +714,11 @@ processing has been completed.
|
|
|
692
714
|
<div class="method-source-code"
|
|
693
715
|
id="close-source">
|
|
694
716
|
<pre>
|
|
695
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
717
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 71</span>
|
|
718
|
+
71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
|
719
|
+
72: <span class="ruby-identifier">res</span> = <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">close</span>
|
|
720
|
+
73: <span class="ruby-identifier">res</span>
|
|
721
|
+
74: <span class="ruby-keyword kw">end</span></pre>
|
|
700
722
|
</div>
|
|
701
723
|
|
|
702
724
|
</div>
|
|
@@ -708,7 +730,7 @@ processing has been completed.
|
|
|
708
730
|
|
|
709
731
|
|
|
710
732
|
<div id="next-oken-method" class="method-detail ">
|
|
711
|
-
<a name="
|
|
733
|
+
<a name="method-i-nextToken"></a>
|
|
712
734
|
|
|
713
735
|
<div class="method-heading">
|
|
714
736
|
|
|
@@ -731,10 +753,10 @@ text string of the token.
|
|
|
731
753
|
<div class="method-source-code"
|
|
732
754
|
id="next-oken-source">
|
|
733
755
|
<pre>
|
|
734
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
756
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 79</span>
|
|
757
|
+
79: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nextToken</span>
|
|
758
|
+
80: <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">nextToken</span>
|
|
759
|
+
81: <span class="ruby-keyword kw">end</span></pre>
|
|
738
760
|
</div>
|
|
739
761
|
|
|
740
762
|
</div>
|
|
@@ -746,7 +768,7 @@ text string of the token.
|
|
|
746
768
|
|
|
747
769
|
|
|
748
770
|
<div id="open-method" class="method-detail ">
|
|
749
|
-
<a name="
|
|
771
|
+
<a name="method-i-open"></a>
|
|
750
772
|
|
|
751
773
|
<div class="method-heading">
|
|
752
774
|
|
|
@@ -768,24 +790,61 @@ set of TJP files.
|
|
|
768
790
|
<div class="method-source-code"
|
|
769
791
|
id="open-source">
|
|
770
792
|
<pre>
|
|
771
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
793
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 51</span>
|
|
794
|
+
51: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">master</span>, <span class="ruby-identifier">fileNameIsBuffer</span> = <span class="ruby-keyword kw">false</span>)
|
|
795
|
+
52: <span class="ruby-keyword kw">begin</span>
|
|
796
|
+
53: <span class="ruby-ivar">@scanner</span> = <span class="ruby-constant">ProjectFileScanner</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">file</span>, <span class="ruby-ivar">@messageHandler</span>)
|
|
797
|
+
54: <span class="ruby-comment cmt"># We need the ProjectFileScanner object for error reporting.</span>
|
|
798
|
+
55: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">master</span> <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span><span class="ruby-identifier">fileNameIsBuffer</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">file</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">'.'</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">file</span>[<span class="ruby-value">4</span>, <span class="ruby-value">4</span>] <span class="ruby-operator">!=</span> <span class="ruby-value str">'.tjp'</span>
|
|
799
|
+
56: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'illegal_extension'</span>, <span class="ruby-value str">"Project file name must end with "</span> <span class="ruby-operator">+</span>
|
|
800
|
+
57: <span class="ruby-value str">'\.tjp\ extension'</span>)
|
|
801
|
+
58: <span class="ruby-keyword kw">end</span>
|
|
802
|
+
59: <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">fileNameIsBuffer</span>)
|
|
803
|
+
60: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">StandardError</span>
|
|
804
|
+
61: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'file_open'</span>, <span class="ruby-identifier">$!</span>.<span class="ruby-identifier">message</span>)
|
|
805
|
+
62: <span class="ruby-keyword kw">end</span>
|
|
806
|
+
63:
|
|
807
|
+
64: <span class="ruby-ivar">@property</span> = <span class="ruby-keyword kw">nil</span>
|
|
808
|
+
65: <span class="ruby-ivar">@scenarioIdx</span> = <span class="ruby-value">0</span>
|
|
809
|
+
66: <span class="ruby-identifier">initFileStack</span>
|
|
810
|
+
67: <span class="ruby-keyword kw">end</span></pre>
|
|
811
|
+
</div>
|
|
812
|
+
|
|
813
|
+
</div>
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
</div>
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
<div id="parse-eport-ttributes-method" class="method-detail ">
|
|
822
|
+
<a name="method-i-parseReportAttributes"></a>
|
|
823
|
+
|
|
824
|
+
<div class="method-heading">
|
|
825
|
+
|
|
826
|
+
<span class="method-name">parseReportAttributes</span><span
|
|
827
|
+
class="method-args">(report, attributes)</span>
|
|
828
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
829
|
+
|
|
830
|
+
</div>
|
|
831
|
+
|
|
832
|
+
<div class="method-description">
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
<div class="method-source-code"
|
|
839
|
+
id="parse-eport-ttributes-source">
|
|
840
|
+
<pre>
|
|
841
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 106</span>
|
|
842
|
+
106: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parseReportAttributes</span>(<span class="ruby-identifier">report</span>, <span class="ruby-identifier">attributes</span>)
|
|
843
|
+
107: <span class="ruby-ivar">@property</span> = <span class="ruby-identifier">report</span>
|
|
844
|
+
108: <span class="ruby-ivar">@project</span> = <span class="ruby-identifier">report</span>.<span class="ruby-identifier">project</span>
|
|
845
|
+
109: <span class="ruby-identifier">open</span>(<span class="ruby-identifier">attributes</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">true</span>)
|
|
846
|
+
110: <span class="ruby-identifier">parse</span>(<span class="ruby-value str">'reportAttributes'</span>)
|
|
847
|
+
111: <span class="ruby-keyword kw">end</span></pre>
|
|
789
848
|
</div>
|
|
790
849
|
|
|
791
850
|
</div>
|
|
@@ -797,7 +856,7 @@ set of TJP files.
|
|
|
797
856
|
|
|
798
857
|
|
|
799
858
|
<div id="return-oken-method" class="method-detail ">
|
|
800
|
-
<a name="
|
|
859
|
+
<a name="method-i-returnToken"></a>
|
|
801
860
|
|
|
802
861
|
<div class="method-heading">
|
|
803
862
|
|
|
@@ -821,10 +880,10 @@ look-ahead functionality.
|
|
|
821
880
|
<div class="method-source-code"
|
|
822
881
|
id="return-oken-source">
|
|
823
882
|
<pre>
|
|
824
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
883
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 87</span>
|
|
884
|
+
87: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">returnToken</span>(<span class="ruby-identifier">token</span>)
|
|
885
|
+
88: <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">returnToken</span>(<span class="ruby-identifier">token</span>)
|
|
886
|
+
89: <span class="ruby-keyword kw">end</span></pre>
|
|
828
887
|
</div>
|
|
829
888
|
|
|
830
889
|
</div>
|
|
@@ -836,7 +895,7 @@ look-ahead functionality.
|
|
|
836
895
|
|
|
837
896
|
|
|
838
897
|
<div id="set-lobal-acros-method" class="method-detail ">
|
|
839
|
-
<a name="
|
|
898
|
+
<a name="method-i-setGlobalMacros"></a>
|
|
840
899
|
|
|
841
900
|
<div class="method-heading">
|
|
842
901
|
|
|
@@ -852,7 +911,7 @@ look-ahead functionality.
|
|
|
852
911
|
A set of standard marcros is defined in all files as soon as the project
|
|
853
912
|
header has been read. Calling this functions gets the values from @project
|
|
854
913
|
and inserts the <a href="Macro.html">Macro</a> objects into the <a
|
|
855
|
-
href="
|
|
914
|
+
href="ProjectFileScanner.html">ProjectFileScanner</a>.
|
|
856
915
|
</p>
|
|
857
916
|
|
|
858
917
|
|
|
@@ -860,18 +919,18 @@ href="TextScanner.html">TextScanner</a>.
|
|
|
860
919
|
<div class="method-source-code"
|
|
861
920
|
id="set-lobal-acros-source">
|
|
862
921
|
<pre>
|
|
863
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
864
|
-
|
|
865
|
-
|
|
922
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 94</span>
|
|
923
|
+
94: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setGlobalMacros</span>
|
|
924
|
+
95: <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">addMacro</span>(<span class="ruby-constant">Macro</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'projectstart'</span>, <span class="ruby-ivar">@project</span>[<span class="ruby-value str">'start'</span>].<span class="ruby-identifier">to_s</span>,
|
|
925
|
+
96: <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">sourceFileInfo</span>))
|
|
926
|
+
97: <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">addMacro</span>(<span class="ruby-constant">Macro</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'projectend'</span>, <span class="ruby-ivar">@project</span>[<span class="ruby-value str">'end'</span>].<span class="ruby-identifier">to_s</span>,
|
|
866
927
|
98: <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">sourceFileInfo</span>))
|
|
867
|
-
99: <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">addMacro</span>(<span class="ruby-constant">Macro</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'
|
|
928
|
+
99: <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">addMacro</span>(<span class="ruby-constant">Macro</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'now'</span>, <span class="ruby-ivar">@project</span>[<span class="ruby-value str">'now'</span>].<span class="ruby-identifier">to_s</span>,
|
|
868
929
|
100: <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">sourceFileInfo</span>))
|
|
869
|
-
101: <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">addMacro</span>(<span class="ruby-constant">Macro</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'
|
|
870
|
-
102:
|
|
871
|
-
103:
|
|
872
|
-
104:
|
|
873
|
-
105: <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">sourceFileInfo</span>))
|
|
874
|
-
106: <span class="ruby-keyword kw">end</span></pre>
|
|
930
|
+
101: <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">addMacro</span>(<span class="ruby-constant">Macro</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'today'</span>, <span class="ruby-ivar">@project</span>[<span class="ruby-value str">'now'</span>].
|
|
931
|
+
102: <span class="ruby-identifier">to_s</span>(<span class="ruby-ivar">@project</span>[<span class="ruby-value str">'timeFormat'</span>]),
|
|
932
|
+
103: <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">sourceFileInfo</span>))
|
|
933
|
+
104: <span class="ruby-keyword kw">end</span></pre>
|
|
875
934
|
</div>
|
|
876
935
|
|
|
877
936
|
</div>
|
|
@@ -889,7 +948,7 @@ href="TextScanner.html">TextScanner</a>.
|
|
|
889
948
|
|
|
890
949
|
|
|
891
950
|
<div id="all-r-othing-ist-ule-method" class="method-detail ">
|
|
892
|
-
<a name="
|
|
951
|
+
<a name="method-i-allOrNothingListRule"></a>
|
|
893
952
|
|
|
894
953
|
<div class="method-heading">
|
|
895
954
|
|
|
@@ -916,40 +975,40 @@ list is empty.
|
|
|
916
975
|
<div class="method-source-code"
|
|
917
976
|
id="all-r-othing-ist-ule-source">
|
|
918
977
|
<pre>
|
|
919
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
294: }
|
|
937
|
-
295: <span class="ruby-comment cmt"># Create the rule for the comma separated list.</span>
|
|
938
|
-
296: <span class="ruby-identifier">newRule</span>(<span class="ruby-node">"#{name}_AoN_ruleItems"</span>) {
|
|
939
|
-
297: <span class="ruby-identifier">listRule</span>(<span class="ruby-node">"more#{name}_AoN_ruleItems"</span>, <span class="ruby-node">"!#{name}_AoN_ruleItem"</span>)
|
|
978
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 282</span>
|
|
979
|
+
282: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">allOrNothingListRule</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">items</span>)
|
|
980
|
+
283: <span class="ruby-identifier">newRule</span>(<span class="ruby-identifier">name</span>) {
|
|
981
|
+
284: <span class="ruby-comment cmt"># A '*' means all possible items should be in the list.</span>
|
|
982
|
+
285: <span class="ruby-identifier">pattern</span>(<span class="ruby-node">%( _* )</span>, <span class="ruby-identifier">lambda</span> {
|
|
983
|
+
286: <span class="ruby-constant">KeywordArray</span>.<span class="ruby-identifier">new</span>([ <span class="ruby-value str">'*'</span> ])
|
|
984
|
+
287: })
|
|
985
|
+
288: <span class="ruby-identifier">descr</span>(<span class="ruby-value str">'A shortcut for all items'</span>)
|
|
986
|
+
289: <span class="ruby-comment cmt"># A '-' means the list should be empty.</span>
|
|
987
|
+
290: <span class="ruby-identifier">pattern</span>([ <span class="ruby-value str">'_-'</span> ], <span class="ruby-identifier">lambda</span> {
|
|
988
|
+
291: <span class="ruby-constant">KeywordArray</span>.<span class="ruby-identifier">new</span>
|
|
989
|
+
292: })
|
|
990
|
+
293: <span class="ruby-identifier">descr</span>(<span class="ruby-value str">'No items'</span>)
|
|
991
|
+
294: <span class="ruby-comment cmt"># Or the list consists of one or more comma separated keywords.</span>
|
|
992
|
+
295: <span class="ruby-identifier">pattern</span>([ <span class="ruby-node">"!#{name}_AoN_ruleItems"</span> ], <span class="ruby-identifier">lambda</span> {
|
|
993
|
+
296: <span class="ruby-constant">KeywordArray</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@val</span>[<span class="ruby-value">0</span>])
|
|
994
|
+
297: })
|
|
940
995
|
298: }
|
|
941
|
-
299: <span class="ruby-comment cmt"># Create the rule for the
|
|
942
|
-
300: <span class="ruby-identifier">newRule</span>(<span class="ruby-node">"#{name}
|
|
943
|
-
301: <span class="ruby-
|
|
944
|
-
302:
|
|
945
|
-
303:
|
|
946
|
-
304:
|
|
947
|
-
305:
|
|
948
|
-
306:
|
|
949
|
-
307:
|
|
950
|
-
308:
|
|
951
|
-
309:
|
|
952
|
-
310:
|
|
996
|
+
299: <span class="ruby-comment cmt"># Create the rule for the comma separated list.</span>
|
|
997
|
+
300: <span class="ruby-identifier">newRule</span>(<span class="ruby-node">"#{name}_AoN_ruleItems"</span>) {
|
|
998
|
+
301: <span class="ruby-identifier">listRule</span>(<span class="ruby-node">"more#{name}_AoN_ruleItems"</span>, <span class="ruby-node">"!#{name}_AoN_ruleItem"</span>)
|
|
999
|
+
302: }
|
|
1000
|
+
303: <span class="ruby-comment cmt"># Create the rule for the keywords with their description.</span>
|
|
1001
|
+
304: <span class="ruby-identifier">newRule</span>(<span class="ruby-node">"#{name}_AoN_ruleItem"</span>) {
|
|
1002
|
+
305: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">items</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
|
1003
|
+
306: <span class="ruby-identifier">items</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">keyword</span><span class="ruby-operator">|</span> <span class="ruby-identifier">singlePattern</span>(<span class="ruby-value str">'_'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">keyword</span>) }
|
|
1004
|
+
307: <span class="ruby-keyword kw">else</span>
|
|
1005
|
+
308: <span class="ruby-identifier">items</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">keyword</span>, <span class="ruby-identifier">description</span><span class="ruby-operator">|</span>
|
|
1006
|
+
309: <span class="ruby-identifier">singlePattern</span>(<span class="ruby-value str">'_'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">keyword</span>)
|
|
1007
|
+
310: <span class="ruby-identifier">descr</span>(<span class="ruby-identifier">description</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">description</span>
|
|
1008
|
+
311: <span class="ruby-keyword kw">end</span>
|
|
1009
|
+
312: <span class="ruby-keyword kw">end</span>
|
|
1010
|
+
313: }
|
|
1011
|
+
314: <span class="ruby-keyword kw">end</span></pre>
|
|
953
1012
|
</div>
|
|
954
1013
|
|
|
955
1014
|
</div>
|
|
@@ -961,7 +1020,7 @@ list is empty.
|
|
|
961
1020
|
|
|
962
1021
|
|
|
963
1022
|
<div id="also-method" class="method-detail ">
|
|
964
|
-
<a name="
|
|
1023
|
+
<a name="method-i-also"></a>
|
|
965
1024
|
|
|
966
1025
|
<div class="method-heading">
|
|
967
1026
|
|
|
@@ -983,11 +1042,11 @@ generate the documentation for the patterns of this rule.
|
|
|
983
1042
|
<div class="method-source-code"
|
|
984
1043
|
id="also-source">
|
|
985
1044
|
<pre>
|
|
986
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
1045
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 384</span>
|
|
1046
|
+
384: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">also</span>(<span class="ruby-identifier">seeAlso</span>)
|
|
1047
|
+
385: <span class="ruby-identifier">seeAlso</span> = [ <span class="ruby-identifier">seeAlso</span> ] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">seeAlso</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
|
1048
|
+
386: <span class="ruby-ivar">@cr</span>.<span class="ruby-identifier">setSeeAlso</span>(<span class="ruby-identifier">seeAlso</span>)
|
|
1049
|
+
387: <span class="ruby-keyword kw">end</span></pre>
|
|
991
1050
|
</div>
|
|
992
1051
|
|
|
993
1052
|
</div>
|
|
@@ -999,7 +1058,7 @@ generate the documentation for the patterns of this rule.
|
|
|
999
1058
|
|
|
1000
1059
|
|
|
1001
1060
|
<div id="arg-method" class="method-detail ">
|
|
1002
|
-
<a name="
|
|
1061
|
+
<a name="method-i-arg"></a>
|
|
1003
1062
|
|
|
1004
1063
|
<div class="method-heading">
|
|
1005
1064
|
|
|
@@ -1022,10 +1081,10 @@ used for this variable. <em>text</em> is the documentation text.
|
|
|
1022
1081
|
<div class="method-source-code"
|
|
1023
1082
|
id="arg-source">
|
|
1024
1083
|
<pre>
|
|
1025
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1084
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 372</span>
|
|
1085
|
+
372: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">arg</span>(<span class="ruby-identifier">idx</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">text</span>)
|
|
1086
|
+
373: <span class="ruby-ivar">@cr</span>.<span class="ruby-identifier">setArg</span>(<span class="ruby-identifier">idx</span>, <span class="ruby-constant">TextParser</span><span class="ruby-operator">::</span><span class="ruby-constant">TokenDoc</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">text</span>))
|
|
1087
|
+
374: <span class="ruby-keyword kw">end</span></pre>
|
|
1029
1088
|
</div>
|
|
1030
1089
|
|
|
1031
1090
|
</div>
|
|
@@ -1037,7 +1096,7 @@ used for this variable. <em>text</em> is the documentation text.
|
|
|
1037
1096
|
|
|
1038
1097
|
|
|
1039
1098
|
<div id="check-ooking-method" class="method-detail ">
|
|
1040
|
-
<a name="
|
|
1099
|
+
<a name="method-i-checkBooking"></a>
|
|
1041
1100
|
|
|
1042
1101
|
<div class="method-heading">
|
|
1043
1102
|
|
|
@@ -1058,18 +1117,21 @@ Convenience function to check the integrity of a booking statement.
|
|
|
1058
1117
|
<div class="method-source-code"
|
|
1059
1118
|
id="check-ooking-source">
|
|
1060
1119
|
<pre>
|
|
1061
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1120
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 154</span>
|
|
1121
|
+
154: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">checkBooking</span>(<span class="ruby-identifier">task</span>, <span class="ruby-identifier">resource</span>)
|
|
1122
|
+
155: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">task</span>.<span class="ruby-identifier">leaf?</span>
|
|
1123
|
+
156: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'booking_no_leaf'</span>, <span class="ruby-node">"#{task.fullId} is not a leaf task"</span>,
|
|
1124
|
+
157: <span class="ruby-identifier">task</span>, <span class="ruby-ivar">@sourceFileInfo</span>[<span class="ruby-value">0</span>])
|
|
1125
|
+
158: <span class="ruby-keyword kw">end</span>
|
|
1126
|
+
159: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">task</span>[<span class="ruby-value str">'milestone'</span>, <span class="ruby-ivar">@scenarioIdx</span>]
|
|
1127
|
+
160: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'booking_milestone'</span>, <span class="ruby-value str">"You cannot add bookings to a milestone"</span>,
|
|
1128
|
+
161: <span class="ruby-identifier">task</span>, <span class="ruby-ivar">@sourceFileInfo</span>[<span class="ruby-value">0</span>])
|
|
1129
|
+
162: <span class="ruby-keyword kw">end</span>
|
|
1130
|
+
163: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">resource</span>.<span class="ruby-identifier">leaf?</span>
|
|
1131
|
+
164: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'booking_group'</span>, <span class="ruby-value str">"You cannot book a group resource"</span>,
|
|
1132
|
+
165: <span class="ruby-identifier">task</span>, <span class="ruby-ivar">@sourceFileInfo</span>[<span class="ruby-value">0</span>])
|
|
1133
|
+
166: <span class="ruby-keyword kw">end</span>
|
|
1134
|
+
167: <span class="ruby-keyword kw">end</span></pre>
|
|
1073
1135
|
</div>
|
|
1074
1136
|
|
|
1075
1137
|
</div>
|
|
@@ -1081,7 +1143,7 @@ Convenience function to check the integrity of a booking statement.
|
|
|
1081
1143
|
|
|
1082
1144
|
|
|
1083
1145
|
<div id="check-ontainer-method" class="method-detail ">
|
|
1084
|
-
<a name="
|
|
1146
|
+
<a name="method-i-checkContainer"></a>
|
|
1085
1147
|
|
|
1086
1148
|
<div class="method-heading">
|
|
1087
1149
|
|
|
@@ -1103,14 +1165,15 @@ been added to a property.
|
|
|
1103
1165
|
<div class="method-source-code"
|
|
1104
1166
|
id="check-ontainer-source">
|
|
1105
1167
|
<pre>
|
|
1106
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1168
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 128</span>
|
|
1169
|
+
128: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">checkContainer</span>(<span class="ruby-identifier">attribute</span>)
|
|
1170
|
+
129: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@property</span>.<span class="ruby-identifier">container?</span>
|
|
1171
|
+
130: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'container_attribute'</span>,
|
|
1172
|
+
131: <span class="ruby-node">"The attribute #{attribute} may not be used for this property "</span> <span class="ruby-operator">+</span>
|
|
1173
|
+
132: <span class="ruby-value str">'after sub properties have been added.'</span>, <span class="ruby-ivar">@property</span>,
|
|
1174
|
+
133: <span class="ruby-ivar">@sourceFileInfo</span>[<span class="ruby-value">0</span>])
|
|
1175
|
+
134: <span class="ruby-keyword kw">end</span>
|
|
1176
|
+
135: <span class="ruby-keyword kw">end</span></pre>
|
|
1114
1177
|
</div>
|
|
1115
1178
|
|
|
1116
1179
|
</div>
|
|
@@ -1122,7 +1185,7 @@ been added to a property.
|
|
|
1122
1185
|
|
|
1123
1186
|
|
|
1124
1187
|
<div id="check-nterval-method" class="method-detail ">
|
|
1125
|
-
<a name="
|
|
1188
|
+
<a name="method-i-checkInterval"></a>
|
|
1126
1189
|
|
|
1127
1190
|
<div class="method-heading">
|
|
1128
1191
|
|
|
@@ -1144,20 +1207,20 @@ fits completely within the project time frame.
|
|
|
1144
1207
|
<div class="method-source-code"
|
|
1145
1208
|
id="check-nterval-source">
|
|
1146
1209
|
<pre>
|
|
1147
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1210
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 139</span>
|
|
1211
|
+
139: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">checkInterval</span>(<span class="ruby-identifier">iv</span>)
|
|
1212
|
+
140: <span class="ruby-comment cmt"># Make sure the interval is within the project time frame.</span>
|
|
1213
|
+
141: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">iv</span>.<span class="ruby-identifier">start</span> <span class="ruby-operator"><</span> <span class="ruby-ivar">@project</span>[<span class="ruby-value str">'start'</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">iv</span>.<span class="ruby-identifier">start</span> <span class="ruby-operator">>=</span> <span class="ruby-ivar">@project</span>[<span class="ruby-value str">'end'</span>]
|
|
1214
|
+
142: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'interval_start_in_range'</span>,
|
|
1215
|
+
143: <span class="ruby-node">"Start date #{iv.start} must be within the project time frame "</span> <span class="ruby-operator">+</span>
|
|
1216
|
+
144: <span class="ruby-node">"(#{@project['start']} - #{@project['end']})"</span>)
|
|
1217
|
+
145: <span class="ruby-keyword kw">end</span>
|
|
1218
|
+
146: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">iv</span>.<span class="ruby-identifier">end</span> <span class="ruby-operator"><=</span> <span class="ruby-ivar">@project</span>[<span class="ruby-value str">'start'</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">iv</span>.<span class="ruby-identifier">end</span> <span class="ruby-operator">></span> <span class="ruby-ivar">@project</span>[<span class="ruby-value str">'end'</span>]
|
|
1219
|
+
147: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'interval_end_in_range'</span>,
|
|
1220
|
+
148: <span class="ruby-node">"End date #{iv.end} must be within the project time frame "</span> <span class="ruby-operator">+</span>
|
|
1221
|
+
149: <span class="ruby-node">"(#{@project['start']} - #{@project['end']})"</span>)
|
|
1222
|
+
150: <span class="ruby-keyword kw">end</span>
|
|
1223
|
+
151: <span class="ruby-keyword kw">end</span></pre>
|
|
1161
1224
|
</div>
|
|
1162
1225
|
|
|
1163
1226
|
</div>
|
|
@@ -1169,7 +1232,7 @@ fits completely within the project time frame.
|
|
|
1169
1232
|
|
|
1170
1233
|
|
|
1171
1234
|
<div id="column-itle-method" class="method-detail ">
|
|
1172
|
-
<a name="
|
|
1235
|
+
<a name="method-i-columnTitle"></a>
|
|
1173
1236
|
|
|
1174
1237
|
<div class="method-heading">
|
|
1175
1238
|
|
|
@@ -1191,11 +1254,11 @@ be from the static set or be from a user defined attribute.
|
|
|
1191
1254
|
<div class="method-source-code"
|
|
1192
1255
|
id="column-itle-source">
|
|
1193
1256
|
<pre>
|
|
1194
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1257
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 397</span>
|
|
1258
|
+
397: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">columnTitle</span>(<span class="ruby-identifier">colId</span>)
|
|
1259
|
+
398: <span class="ruby-constant">TableReport</span>.<span class="ruby-identifier">defaultColumnTitle</span>(<span class="ruby-identifier">colId</span>) <span class="ruby-operator">||</span>
|
|
1260
|
+
399: <span class="ruby-ivar">@project</span>.<span class="ruby-identifier">attributeName</span>(<span class="ruby-identifier">colId</span>)
|
|
1261
|
+
400: <span class="ruby-keyword kw">end</span></pre>
|
|
1199
1262
|
</div>
|
|
1200
1263
|
|
|
1201
1264
|
</div>
|
|
@@ -1207,7 +1270,7 @@ be from the static set or be from a user defined attribute.
|
|
|
1207
1270
|
|
|
1208
1271
|
|
|
1209
1272
|
<div id="comma-ist-ule-method" class="method-detail ">
|
|
1210
|
-
<a name="
|
|
1273
|
+
<a name="method-i-commaListRule"></a>
|
|
1211
1274
|
|
|
1212
1275
|
<div class="method-heading">
|
|
1213
1276
|
|
|
@@ -1226,14 +1289,14 @@ be from the static set or be from a user defined attribute.
|
|
|
1226
1289
|
<div class="method-source-code"
|
|
1227
1290
|
id="comma-ist-ule-source">
|
|
1228
1291
|
<pre>
|
|
1229
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1292
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 329</span>
|
|
1293
|
+
329: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">commaListRule</span>(<span class="ruby-identifier">listItem</span>)
|
|
1294
|
+
330: <span class="ruby-identifier">optional</span>
|
|
1295
|
+
331: <span class="ruby-identifier">repeatable</span>
|
|
1296
|
+
332: <span class="ruby-identifier">pattern</span>([ <span class="ruby-value str">'_,'</span>, <span class="ruby-node">"#{listItem}"</span> ], <span class="ruby-identifier">lambda</span> {
|
|
1297
|
+
333: <span class="ruby-ivar">@val</span>[<span class="ruby-value">1</span>]
|
|
1298
|
+
334: })
|
|
1299
|
+
335: <span class="ruby-keyword kw">end</span></pre>
|
|
1237
1300
|
</div>
|
|
1238
1301
|
|
|
1239
1302
|
</div>
|
|
@@ -1245,7 +1308,7 @@ be from the static set or be from a user defined attribute.
|
|
|
1245
1308
|
|
|
1246
1309
|
|
|
1247
1310
|
<div id="descr-method" class="method-detail ">
|
|
1248
|
-
<a name="
|
|
1311
|
+
<a name="method-i-descr"></a>
|
|
1249
1312
|
|
|
1250
1313
|
<div class="method-heading">
|
|
1251
1314
|
|
|
@@ -1267,14 +1330,14 @@ token.
|
|
|
1267
1330
|
<div class="method-source-code"
|
|
1268
1331
|
id="descr-source">
|
|
1269
1332
|
<pre>
|
|
1270
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1333
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 361</span>
|
|
1334
|
+
361: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">descr</span>(<span class="ruby-identifier">text</span>)
|
|
1335
|
+
362: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@cr</span>.<span class="ruby-identifier">patterns</span>[<span class="ruby-value">1</span>].<span class="ruby-identifier">length</span> <span class="ruby-operator">!=</span> <span class="ruby-value">1</span> <span class="ruby-operator">||</span>
|
|
1336
|
+
363: (<span class="ruby-ivar">@cr</span>.<span class="ruby-identifier">patterns</span>[<span class="ruby-value">1</span>][<span class="ruby-value">0</span>][<span class="ruby-value">0</span>] <span class="ruby-operator">!=</span> <span class="ruby-value">__</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@cr</span>.<span class="ruby-identifier">patterns</span>[<span class="ruby-value">1</span>][<span class="ruby-value">0</span>][<span class="ruby-value">0</span>] <span class="ruby-operator">!=</span> <span class="ruby-value">$$</span>)
|
|
1337
|
+
364: <span class="ruby-identifier">raise</span> <span class="ruby-value str">'descr() may only be used for patterns with terminal tokens.'</span>
|
|
1338
|
+
365: <span class="ruby-keyword kw">end</span>
|
|
1339
|
+
366: <span class="ruby-identifier">arg</span>(<span class="ruby-value">0</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">text</span>)
|
|
1340
|
+
367: <span class="ruby-keyword kw">end</span></pre>
|
|
1278
1341
|
</div>
|
|
1279
1342
|
|
|
1280
1343
|
</div>
|
|
@@ -1286,7 +1349,7 @@ token.
|
|
|
1286
1349
|
|
|
1287
1350
|
|
|
1288
1351
|
<div id="doc-method" class="method-detail ">
|
|
1289
|
-
<a name="
|
|
1352
|
+
<a name="method-i-doc"></a>
|
|
1290
1353
|
|
|
1291
1354
|
<div class="method-heading">
|
|
1292
1355
|
|
|
@@ -1307,10 +1370,10 @@ Add documentation for the current pattern of the currently processed rule.
|
|
|
1307
1370
|
<div class="method-source-code"
|
|
1308
1371
|
id="doc-source">
|
|
1309
1372
|
<pre>
|
|
1310
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1373
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 355</span>
|
|
1374
|
+
355: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">doc</span>(<span class="ruby-identifier">keyword</span>, <span class="ruby-identifier">text</span>)
|
|
1375
|
+
356: <span class="ruby-ivar">@cr</span>.<span class="ruby-identifier">setDoc</span>(<span class="ruby-identifier">keyword</span>, <span class="ruby-identifier">text</span>)
|
|
1376
|
+
357: <span class="ruby-keyword kw">end</span></pre>
|
|
1314
1377
|
</div>
|
|
1315
1378
|
|
|
1316
1379
|
</div>
|
|
@@ -1322,7 +1385,7 @@ Add documentation for the current pattern of the currently processed rule.
|
|
|
1322
1385
|
|
|
1323
1386
|
|
|
1324
1387
|
<div id="example-method" class="method-detail ">
|
|
1325
|
-
<a name="
|
|
1388
|
+
<a name="method-i-example"></a>
|
|
1326
1389
|
|
|
1327
1390
|
<div class="method-heading">
|
|
1328
1391
|
|
|
@@ -1345,10 +1408,10 @@ identify that only a part of the file should be included.
|
|
|
1345
1408
|
<div class="method-source-code"
|
|
1346
1409
|
id="example-source">
|
|
1347
1410
|
<pre>
|
|
1348
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1411
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 392</span>
|
|
1412
|
+
392: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">example</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">tag</span> = <span class="ruby-keyword kw">nil</span>)
|
|
1413
|
+
393: <span class="ruby-ivar">@cr</span>.<span class="ruby-identifier">setExample</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">tag</span>)
|
|
1414
|
+
394: <span class="ruby-keyword kw">end</span></pre>
|
|
1352
1415
|
</div>
|
|
1353
1416
|
|
|
1354
1417
|
</div>
|
|
@@ -1360,7 +1423,7 @@ identify that only a part of the file should be included.
|
|
|
1360
1423
|
|
|
1361
1424
|
|
|
1362
1425
|
<div id="extend-roperty-et-efinition-method" class="method-detail ">
|
|
1363
|
-
<a name="
|
|
1426
|
+
<a name="method-i-extendPropertySetDefinition"></a>
|
|
1364
1427
|
|
|
1365
1428
|
<div class="method-heading">
|
|
1366
1429
|
|
|
@@ -1388,41 +1451,41 @@ new attribute. @propertySet determines what property should be extended.
|
|
|
1388
1451
|
<div class="method-source-code"
|
|
1389
1452
|
id="extend-roperty-et-efinition-source">
|
|
1390
1453
|
<pre>
|
|
1391
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1454
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 176</span>
|
|
1455
|
+
176: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">extendPropertySetDefinition</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">default</span>)
|
|
1456
|
+
177: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@propertySet</span>.<span class="ruby-identifier">knownAttribute?</span>(<span class="ruby-ivar">@val</span>[<span class="ruby-value">1</span>])
|
|
1457
|
+
178: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'extend_redefinition'</span>,
|
|
1458
|
+
179: <span class="ruby-node">"The extended attribute #{@val[1]} has already been defined."</span>)
|
|
1459
|
+
180: <span class="ruby-keyword kw">end</span>
|
|
1460
|
+
181:
|
|
1461
|
+
182: <span class="ruby-comment cmt"># Determine the values for scenarioSpecific and inheritable.</span>
|
|
1462
|
+
183: <span class="ruby-identifier">inherit</span> = <span class="ruby-keyword kw">false</span>
|
|
1463
|
+
184: <span class="ruby-identifier">scenarioSpecific</span> = <span class="ruby-keyword kw">false</span>
|
|
1464
|
+
185: <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@val</span>[<span class="ruby-value">3</span>].<span class="ruby-identifier">nil?</span>
|
|
1465
|
+
186: <span class="ruby-ivar">@val</span>[<span class="ruby-value">3</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">option</span><span class="ruby-operator">|</span>
|
|
1466
|
+
187: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">option</span>
|
|
1467
|
+
188: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'inherit'</span>
|
|
1468
|
+
189: <span class="ruby-identifier">inherit</span> = <span class="ruby-keyword kw">true</span>
|
|
1469
|
+
190: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'scenariospecific'</span>
|
|
1470
|
+
191: <span class="ruby-identifier">scenarioSpecific</span> = <span class="ruby-keyword kw">true</span>
|
|
1471
|
+
192: <span class="ruby-keyword kw">end</span>
|
|
1472
|
+
193: <span class="ruby-keyword kw">end</span>
|
|
1473
|
+
194: <span class="ruby-keyword kw">end</span>
|
|
1474
|
+
195: <span class="ruby-comment cmt"># Register the new Attribute type with the Property set it should belong</span>
|
|
1475
|
+
196: <span class="ruby-comment cmt"># to.</span>
|
|
1476
|
+
197: <span class="ruby-ivar">@propertySet</span>.<span class="ruby-identifier">addAttributeType</span>(<span class="ruby-constant">AttributeDefinition</span>.<span class="ruby-identifier">new</span>(
|
|
1477
|
+
198: <span class="ruby-ivar">@val</span>[<span class="ruby-value">1</span>], <span class="ruby-ivar">@val</span>[<span class="ruby-value">2</span>], <span class="ruby-identifier">type</span>, <span class="ruby-identifier">inherit</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">scenarioSpecific</span>, <span class="ruby-identifier">default</span>, <span class="ruby-keyword kw">true</span>))
|
|
1478
|
+
199:
|
|
1479
|
+
200: <span class="ruby-comment cmt"># Add the new user-defined attribute as reportable attribute to the parser</span>
|
|
1480
|
+
201: <span class="ruby-comment cmt"># rule.</span>
|
|
1481
|
+
202: <span class="ruby-identifier">oldCurrentRule</span> = <span class="ruby-ivar">@cr</span>
|
|
1482
|
+
203: <span class="ruby-ivar">@cr</span> = <span class="ruby-ivar">@rules</span>[<span class="ruby-value str">'reportableAttributes'</span>]
|
|
1483
|
+
204: <span class="ruby-identifier">singlePattern</span>(<span class="ruby-value str">'_'</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@val</span>[<span class="ruby-value">1</span>])
|
|
1484
|
+
205: <span class="ruby-identifier">descr</span>(<span class="ruby-ivar">@val</span>[<span class="ruby-value">2</span>])
|
|
1485
|
+
206: <span class="ruby-ivar">@cr</span> = <span class="ruby-identifier">oldCurrentRule</span>
|
|
1486
|
+
207:
|
|
1487
|
+
208: <span class="ruby-identifier">scenarioSpecific</span>
|
|
1488
|
+
209: <span class="ruby-keyword kw">end</span></pre>
|
|
1426
1489
|
</div>
|
|
1427
1490
|
|
|
1428
1491
|
</div>
|
|
@@ -1434,7 +1497,7 @@ new attribute. @propertySet determines what property should be extended.
|
|
|
1434
1497
|
|
|
1435
1498
|
|
|
1436
1499
|
<div id="init-ile-tack-method" class="method-detail ">
|
|
1437
|
-
<a name="
|
|
1500
|
+
<a name="method-i-initFileStack"></a>
|
|
1438
1501
|
|
|
1439
1502
|
<div class="method-heading">
|
|
1440
1503
|
|
|
@@ -1459,17 +1522,17 @@ creates or resets the stack.
|
|
|
1459
1522
|
<div class="method-source-code"
|
|
1460
1523
|
id="init-ile-tack-source">
|
|
1461
1524
|
<pre>
|
|
1462
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1525
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 408</span>
|
|
1526
|
+
408: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initFileStack</span>
|
|
1527
|
+
409: <span class="ruby-ivar">@fileStackVariables</span> = <span class="ruby-node">%( taskprefix reportprefix
|
|
1528
|
+
410: resourceprefix accountprefix )</span>
|
|
1529
|
+
411: <span class="ruby-identifier">stackEntry</span> = {}
|
|
1530
|
+
412: <span class="ruby-ivar">@fileStackVariables</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">var</span><span class="ruby-operator">|</span>
|
|
1531
|
+
413: <span class="ruby-identifier">stackEntry</span>[<span class="ruby-identifier">var</span>] = <span class="ruby-value str">''</span>
|
|
1532
|
+
414: <span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-value str">'@'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">var</span>, <span class="ruby-value str">''</span>)
|
|
1533
|
+
415: <span class="ruby-keyword kw">end</span>
|
|
1534
|
+
416: <span class="ruby-ivar">@fileStack</span> = [ <span class="ruby-identifier">stackEntry</span> ]
|
|
1535
|
+
417: <span class="ruby-keyword kw">end</span></pre>
|
|
1473
1536
|
</div>
|
|
1474
1537
|
|
|
1475
1538
|
</div>
|
|
@@ -1481,7 +1544,7 @@ creates or resets the stack.
|
|
|
1481
1544
|
|
|
1482
1545
|
|
|
1483
1546
|
<div id="last-yntax-oken-method" class="method-detail ">
|
|
1484
|
-
<a name="
|
|
1547
|
+
<a name="method-i-lastSyntaxToken"></a>
|
|
1485
1548
|
|
|
1486
1549
|
<div class="method-heading">
|
|
1487
1550
|
|
|
@@ -1503,10 +1566,10 @@ first <tt>idx</tt> tokens.
|
|
|
1503
1566
|
<div class="method-source-code"
|
|
1504
1567
|
id="last-yntax-oken-source">
|
|
1505
1568
|
<pre>
|
|
1506
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1569
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 378</span>
|
|
1570
|
+
378: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lastSyntaxToken</span>(<span class="ruby-identifier">idx</span>)
|
|
1571
|
+
379: <span class="ruby-ivar">@cr</span>.<span class="ruby-identifier">setLastSyntaxToken</span>(<span class="ruby-identifier">idx</span>)
|
|
1572
|
+
380: <span class="ruby-keyword kw">end</span></pre>
|
|
1510
1573
|
</div>
|
|
1511
1574
|
|
|
1512
1575
|
</div>
|
|
@@ -1518,7 +1581,7 @@ first <tt>idx</tt> tokens.
|
|
|
1518
1581
|
|
|
1519
1582
|
|
|
1520
1583
|
<div id="list-ule-method" class="method-detail ">
|
|
1521
|
-
<a name="
|
|
1584
|
+
<a name="method-i-listRule"></a>
|
|
1522
1585
|
|
|
1523
1586
|
<div class="method-heading">
|
|
1524
1587
|
|
|
@@ -1537,19 +1600,19 @@ first <tt>idx</tt> tokens.
|
|
|
1537
1600
|
<div class="method-source-code"
|
|
1538
1601
|
id="list-ule-source">
|
|
1539
1602
|
<pre>
|
|
1540
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1603
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 316</span>
|
|
1604
|
+
316: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">listRule</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">listItem</span>)
|
|
1605
|
+
317: <span class="ruby-identifier">pattern</span>([ <span class="ruby-node">"#{listItem}"</span>, <span class="ruby-node">"!#{name}"</span> ], <span class="ruby-identifier">lambda</span> {
|
|
1606
|
+
318: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@val</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">&&</span> <span class="ruby-ivar">@val</span>[<span class="ruby-value">1</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-ivar">@val</span>[<span class="ruby-value">0</span>])
|
|
1607
|
+
319: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'duplicate_in_list'</span>,
|
|
1608
|
+
320: <span class="ruby-value str">"Duplicate items in list."</span>)
|
|
1609
|
+
321: <span class="ruby-keyword kw">end</span>
|
|
1610
|
+
322: [ <span class="ruby-ivar">@val</span>[<span class="ruby-value">0</span>] ] <span class="ruby-operator">+</span> (<span class="ruby-ivar">@val</span>[<span class="ruby-value">1</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> [] <span class="ruby-operator">:</span> <span class="ruby-ivar">@val</span>[<span class="ruby-value">1</span>])
|
|
1611
|
+
323: })
|
|
1612
|
+
324: <span class="ruby-identifier">newRule</span>(<span class="ruby-identifier">name</span>) {
|
|
1613
|
+
325: <span class="ruby-identifier">commaListRule</span>(<span class="ruby-identifier">listItem</span>)
|
|
1614
|
+
326: }
|
|
1615
|
+
327: <span class="ruby-keyword kw">end</span></pre>
|
|
1553
1616
|
</div>
|
|
1554
1617
|
|
|
1555
1618
|
</div>
|
|
@@ -1561,7 +1624,7 @@ first <tt>idx</tt> tokens.
|
|
|
1561
1624
|
|
|
1562
1625
|
|
|
1563
1626
|
<div id="new-eport-method" class="method-detail ">
|
|
1564
|
-
<a name="
|
|
1627
|
+
<a name="method-i-newReport"></a>
|
|
1565
1628
|
|
|
1566
1629
|
<div class="method-heading">
|
|
1567
1630
|
|
|
@@ -1574,10 +1637,9 @@ first <tt>idx</tt> tokens.
|
|
|
1574
1637
|
<div class="method-description">
|
|
1575
1638
|
|
|
1576
1639
|
<p>
|
|
1577
|
-
This method is a convenience wrapper around
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
is the name of the report, <tt>type</tt> is the report type.
|
|
1640
|
+
This method is a convenience wrapper around Project.new. It checks if the
|
|
1641
|
+
report name already exists. It also triggers the attribute inheritance.
|
|
1642
|
+
<tt>name</tt> is the name of the report, <tt>type</tt> is the report type.
|
|
1581
1643
|
<tt>sourceFileInfo</tt> is a <a
|
|
1582
1644
|
href="SourceFileInfo.html">SourceFileInfo</a> of the report definition. The
|
|
1583
1645
|
method returns the newly created <a href="Report.html">Report</a>.
|
|
@@ -1588,23 +1650,23 @@ method returns the newly created <a href="Report.html">Report</a>.
|
|
|
1588
1650
|
<div class="method-source-code"
|
|
1589
1651
|
id="new-eport-source">
|
|
1590
1652
|
<pre>
|
|
1591
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1653
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 242</span>
|
|
1654
|
+
242: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">newReport</span>(<span class="ruby-identifier">id</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">sourceFileInfo</span>)
|
|
1655
|
+
243: <span class="ruby-ivar">@reportCounter</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
|
1656
|
+
244: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">'.'</span>
|
|
1657
|
+
245: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@project</span>.<span class="ruby-identifier">reportByName</span>(<span class="ruby-identifier">name</span>)
|
|
1658
|
+
246: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'report_redefinition'</span>,
|
|
1659
|
+
247: <span class="ruby-node">"A report with the name #{name} has already been defined."</span>)
|
|
1660
|
+
248: <span class="ruby-keyword kw">end</span>
|
|
1661
|
+
249: <span class="ruby-keyword kw">end</span>
|
|
1662
|
+
250: <span class="ruby-ivar">@property</span> = <span class="ruby-constant">Report</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@project</span>, <span class="ruby-identifier">id</span> <span class="ruby-operator">||</span> <span class="ruby-node">"report#{@reportCounter}"</span>,
|
|
1663
|
+
251: <span class="ruby-identifier">name</span>, <span class="ruby-keyword kw">nil</span>)
|
|
1664
|
+
252: <span class="ruby-ivar">@property</span>.<span class="ruby-identifier">typeSpec</span> = <span class="ruby-identifier">type</span>
|
|
1665
|
+
253: <span class="ruby-ivar">@property</span>.<span class="ruby-identifier">sourceFileInfo</span> = <span class="ruby-identifier">sourceFileInfo</span>
|
|
1666
|
+
254: <span class="ruby-ivar">@property</span>.<span class="ruby-identifier">set</span>(<span class="ruby-value str">'formats'</span>, [ <span class="ruby-value">:tjp</span> ])
|
|
1667
|
+
255: <span class="ruby-ivar">@property</span>.<span class="ruby-identifier">inheritAttributes</span>
|
|
1668
|
+
256: <span class="ruby-ivar">@property</span>
|
|
1669
|
+
257: <span class="ruby-keyword kw">end</span></pre>
|
|
1608
1670
|
</div>
|
|
1609
1671
|
|
|
1610
1672
|
</div>
|
|
@@ -1616,7 +1678,7 @@ method returns the newly created <a href="Report.html">Report</a>.
|
|
|
1616
1678
|
|
|
1617
1679
|
|
|
1618
1680
|
<div id="new-ich-ext-method" class="method-detail ">
|
|
1619
|
-
<a name="
|
|
1681
|
+
<a name="method-i-newRichText"></a>
|
|
1620
1682
|
|
|
1621
1683
|
<div class="method-heading">
|
|
1622
1684
|
|
|
@@ -1647,29 +1709,24 @@ be provided by <em>tokenSet</em>.
|
|
|
1647
1709
|
<div class="method-source-code"
|
|
1648
1710
|
id="new-ich-ext-source">
|
|
1649
1711
|
<pre>
|
|
1650
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
227: <span class="ruby-comment cmt"># An empty strings signals an already reported error</span>
|
|
1669
|
-
228: <span class="ruby-identifier">raise</span> <span class="ruby-constant">TjException</span>.<span class="ruby-identifier">new</span>, <span class="ruby-value str">''</span>
|
|
1670
|
-
229: <span class="ruby-keyword kw">end</span>
|
|
1671
|
-
230: <span class="ruby-identifier">rti</span>
|
|
1672
|
-
231: <span class="ruby-keyword kw">end</span></pre>
|
|
1712
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 219</span>
|
|
1713
|
+
219: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">newRichText</span>(<span class="ruby-identifier">text</span>, <span class="ruby-identifier">tokenSet</span> = <span class="ruby-keyword kw">nil</span>)
|
|
1714
|
+
220: <span class="ruby-identifier">sfi</span> = <span class="ruby-identifier">sourceFileInfo</span>
|
|
1715
|
+
221: <span class="ruby-keyword kw">begin</span>
|
|
1716
|
+
222: <span class="ruby-identifier">rText</span> = <span class="ruby-constant">RichText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">text</span>, <span class="ruby-constant">RTFHandlers</span>.<span class="ruby-identifier">create</span>(<span class="ruby-ivar">@project</span>, <span class="ruby-identifier">sfi</span>))
|
|
1717
|
+
223: <span class="ruby-identifier">rti</span> = <span class="ruby-identifier">rText</span>.<span class="ruby-identifier">generateIntermediateFormat</span>( [ <span class="ruby-value">0</span>, <span class="ruby-value">0</span>, <span class="ruby-value">0</span>], <span class="ruby-identifier">tokenSet</span>)
|
|
1718
|
+
224: <span class="ruby-identifier">rti</span>.<span class="ruby-identifier">sectionNumbers</span> = <span class="ruby-keyword kw">false</span>
|
|
1719
|
+
225: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">RichTextException</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">msg</span>
|
|
1720
|
+
226: <span class="ruby-identifier">sfi</span> = <span class="ruby-constant">SourceFileInfo</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">sfi</span>.<span class="ruby-identifier">fileName</span>, <span class="ruby-identifier">sfi</span>.<span class="ruby-identifier">lineNo</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">msg</span>.<span class="ruby-identifier">lineNo</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>, <span class="ruby-value">0</span>)
|
|
1721
|
+
227: <span class="ruby-identifier">message</span> = <span class="ruby-constant">Message</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">msg</span>.<span class="ruby-identifier">id</span>, <span class="ruby-value str">'error'</span>, <span class="ruby-identifier">msg</span>.<span class="ruby-identifier">text</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"\n"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">msg</span>.<span class="ruby-identifier">line</span>,
|
|
1722
|
+
228: <span class="ruby-ivar">@property</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">sfi</span>)
|
|
1723
|
+
229: <span class="ruby-ivar">@messageHandler</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">message</span>)
|
|
1724
|
+
230:
|
|
1725
|
+
231: <span class="ruby-comment cmt"># An empty strings signals an already reported error</span>
|
|
1726
|
+
232: <span class="ruby-identifier">raise</span> <span class="ruby-constant">TjException</span>.<span class="ruby-identifier">new</span>, <span class="ruby-value str">''</span>
|
|
1727
|
+
233: <span class="ruby-keyword kw">end</span>
|
|
1728
|
+
234: <span class="ruby-identifier">rti</span>
|
|
1729
|
+
235: <span class="ruby-keyword kw">end</span></pre>
|
|
1673
1730
|
</div>
|
|
1674
1731
|
|
|
1675
1732
|
</div>
|
|
@@ -1681,7 +1738,7 @@ be provided by <em>tokenSet</em>.
|
|
|
1681
1738
|
|
|
1682
1739
|
|
|
1683
1740
|
<div id="options-ule-method" class="method-detail ">
|
|
1684
|
-
<a name="
|
|
1741
|
+
<a name="method-i-optionsRule"></a>
|
|
1685
1742
|
|
|
1686
1743
|
<div class="method-heading">
|
|
1687
1744
|
|
|
@@ -1703,13 +1760,13 @@ attributes. <em>attributes</em> is the rule that lists these attributes.
|
|
|
1703
1760
|
<div class="method-source-code"
|
|
1704
1761
|
id="options-ule-source">
|
|
1705
1762
|
<pre>
|
|
1706
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1763
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 339</span>
|
|
1764
|
+
339: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">optionsRule</span>(<span class="ruby-identifier">attributes</span>)
|
|
1765
|
+
340: <span class="ruby-identifier">optional</span>
|
|
1766
|
+
341: <span class="ruby-identifier">pattern</span>([ <span class="ruby-value str">'_{'</span>, <span class="ruby-node">"!#{attributes}"</span>, <span class="ruby-value str">'_}'</span> ], <span class="ruby-identifier">lambda</span> {
|
|
1767
|
+
342: <span class="ruby-ivar">@val</span>[<span class="ruby-value">1</span>]
|
|
1768
|
+
343: })
|
|
1769
|
+
344: <span class="ruby-keyword kw">end</span></pre>
|
|
1713
1770
|
</div>
|
|
1714
1771
|
|
|
1715
1772
|
</div>
|
|
@@ -1721,7 +1778,7 @@ attributes. <em>attributes</em> is the rule that lists these attributes.
|
|
|
1721
1778
|
|
|
1722
1779
|
|
|
1723
1780
|
<div id="pop-ile-tack-method" class="method-detail ">
|
|
1724
|
-
<a name="
|
|
1781
|
+
<a name="method-i-popFileStack"></a>
|
|
1725
1782
|
|
|
1726
1783
|
<div class="method-heading">
|
|
1727
1784
|
|
|
@@ -1743,15 +1800,14 @@ variables according to the now top-entry.
|
|
|
1743
1800
|
<div class="method-source-code"
|
|
1744
1801
|
id="pop-ile-tack-source">
|
|
1745
1802
|
<pre>
|
|
1746
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
433: <span class="ruby-keyword kw">end</span></pre>
|
|
1803
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 430</span>
|
|
1804
|
+
430: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">popFileStack</span>
|
|
1805
|
+
431: <span class="ruby-ivar">@fileStack</span>.<span class="ruby-identifier">pop</span>
|
|
1806
|
+
432: <span class="ruby-ivar">@fileStackVariables</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">var</span><span class="ruby-operator">|</span>
|
|
1807
|
+
433: <span class="ruby-identifier">stackEntry</span> = <span class="ruby-ivar">@fileStack</span>.<span class="ruby-identifier">last</span>
|
|
1808
|
+
434: <span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-value str">'@'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">var</span>, <span class="ruby-identifier">stackEntry</span>[<span class="ruby-identifier">var</span>])
|
|
1809
|
+
435: <span class="ruby-keyword kw">end</span>
|
|
1810
|
+
436: <span class="ruby-keyword kw">end</span></pre>
|
|
1755
1811
|
</div>
|
|
1756
1812
|
|
|
1757
1813
|
</div>
|
|
@@ -1763,7 +1819,7 @@ variables according to the now top-entry.
|
|
|
1763
1819
|
|
|
1764
1820
|
|
|
1765
1821
|
<div id="push-ile-tack-method" class="method-detail ">
|
|
1766
|
-
<a name="
|
|
1822
|
+
<a name="method-i-pushFileStack"></a>
|
|
1767
1823
|
|
|
1768
1824
|
<div class="method-heading">
|
|
1769
1825
|
|
|
@@ -1784,14 +1840,14 @@ Push a new set of variables onto the @fileStack.
|
|
|
1784
1840
|
<div class="method-source-code"
|
|
1785
1841
|
id="push-ile-tack-source">
|
|
1786
1842
|
<pre>
|
|
1787
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1843
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 420</span>
|
|
1844
|
+
420: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pushFileStack</span>
|
|
1845
|
+
421: <span class="ruby-identifier">stackEntry</span> = {}
|
|
1846
|
+
422: <span class="ruby-ivar">@fileStackVariables</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">var</span><span class="ruby-operator">|</span>
|
|
1847
|
+
423: <span class="ruby-identifier">stackEntry</span>[<span class="ruby-identifier">var</span>] = <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-value str">'@'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">var</span>)
|
|
1848
|
+
424: <span class="ruby-keyword kw">end</span>
|
|
1849
|
+
425: <span class="ruby-ivar">@fileStack</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">stackEntry</span>
|
|
1850
|
+
426: <span class="ruby-keyword kw">end</span></pre>
|
|
1795
1851
|
</div>
|
|
1796
1852
|
|
|
1797
1853
|
</div>
|
|
@@ -1803,7 +1859,7 @@ Push a new set of variables onto the @fileStack.
|
|
|
1803
1859
|
|
|
1804
1860
|
|
|
1805
1861
|
<div id="set-imit-method" class="method-detail ">
|
|
1806
|
-
<a name="
|
|
1862
|
+
<a name="method-i-setLimit"></a>
|
|
1807
1863
|
|
|
1808
1864
|
<div class="method-heading">
|
|
1809
1865
|
|
|
@@ -1827,16 +1883,16 @@ href="Limits.html">Limits</a> object is enough.
|
|
|
1827
1883
|
<div class="method-source-code"
|
|
1828
1884
|
id="set-imit-source">
|
|
1829
1885
|
<pre>
|
|
1830
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1886
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 262</span>
|
|
1887
|
+
262: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setLimit</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>, <span class="ruby-identifier">interval</span>)
|
|
1888
|
+
263: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@limitResources</span>.<span class="ruby-identifier">empty?</span>
|
|
1889
|
+
264: <span class="ruby-ivar">@limits</span>.<span class="ruby-identifier">setLimit</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>, <span class="ruby-identifier">interval</span>)
|
|
1890
|
+
265: <span class="ruby-keyword kw">else</span>
|
|
1891
|
+
266: <span class="ruby-ivar">@limitResources</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">resource</span><span class="ruby-operator">|</span>
|
|
1892
|
+
267: <span class="ruby-ivar">@limits</span>.<span class="ruby-identifier">setLimit</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>, <span class="ruby-identifier">interval</span>, <span class="ruby-identifier">resource</span>)
|
|
1893
|
+
268: <span class="ruby-keyword kw">end</span>
|
|
1894
|
+
269: <span class="ruby-keyword kw">end</span>
|
|
1895
|
+
270: <span class="ruby-keyword kw">end</span></pre>
|
|
1840
1896
|
</div>
|
|
1841
1897
|
|
|
1842
1898
|
</div>
|
|
@@ -1848,7 +1904,7 @@ href="Limits.html">Limits</a> object is enough.
|
|
|
1848
1904
|
|
|
1849
1905
|
|
|
1850
1906
|
<div id="single-attern-method" class="method-detail ">
|
|
1851
|
-
<a name="
|
|
1907
|
+
<a name="method-i-singlePattern"></a>
|
|
1852
1908
|
|
|
1853
1909
|
<div class="method-heading">
|
|
1854
1910
|
|
|
@@ -1870,12 +1926,12 @@ value of that item.
|
|
|
1870
1926
|
<div class="method-source-code"
|
|
1871
1927
|
id="single-attern-source">
|
|
1872
1928
|
<pre>
|
|
1873
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1929
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 348</span>
|
|
1930
|
+
348: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">singlePattern</span>(<span class="ruby-identifier">item</span>)
|
|
1931
|
+
349: <span class="ruby-identifier">pattern</span>([ <span class="ruby-identifier">item</span> ], <span class="ruby-identifier">lambda</span> {
|
|
1932
|
+
350: <span class="ruby-ivar">@val</span>[<span class="ruby-value">0</span>]
|
|
1933
|
+
351: })
|
|
1934
|
+
352: <span class="ruby-keyword kw">end</span></pre>
|
|
1879
1935
|
</div>
|
|
1880
1936
|
|
|
1881
1937
|
</div>
|
|
@@ -1887,7 +1943,7 @@ value of that item.
|
|
|
1887
1943
|
|
|
1888
1944
|
|
|
1889
1945
|
<div id="week-ay-method" class="method-detail ">
|
|
1890
|
-
<a name="
|
|
1946
|
+
<a name="method-i-weekDay"></a>
|
|
1891
1947
|
|
|
1892
1948
|
<div class="method-heading">
|
|
1893
1949
|
|
|
@@ -1910,14 +1966,14 @@ and does some error checking. It returns 0 for ‘sun’, 1 for
|
|
|
1910
1966
|
<div class="method-source-code"
|
|
1911
1967
|
id="week-ay-source">
|
|
1912
1968
|
<pre>
|
|
1913
|
-
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1969
|
+
<span class="ruby-comment cmt"># File lib/ProjectFileParser.rb, line 118</span>
|
|
1970
|
+
118: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">weekDay</span>(<span class="ruby-identifier">name</span>)
|
|
1971
|
+
119: <span class="ruby-identifier">names</span> = <span class="ruby-node">%( sun mon tue wed thu fri sat )</span>
|
|
1972
|
+
120: <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">day</span> = <span class="ruby-identifier">names</span>.<span class="ruby-identifier">index</span>(<span class="ruby-ivar">@val</span>[<span class="ruby-value">0</span>])).<span class="ruby-identifier">nil?</span>
|
|
1973
|
+
121: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'weekday'</span>, <span class="ruby-node">"Weekday name expected (#{names.join(', ')})"</span>)
|
|
1974
|
+
122: <span class="ruby-keyword kw">end</span>
|
|
1975
|
+
123: <span class="ruby-identifier">day</span>
|
|
1976
|
+
124: <span class="ruby-keyword kw">end</span></pre>
|
|
1921
1977
|
</div>
|
|
1922
1978
|
|
|
1923
1979
|
</div>
|