Hash :
dfbb2020
Author :
Date :
2021-12-05T14:50:52
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
Aggregates: First, Second with Third
Redirects: First => Second, Third => Fourth
Jolie: "logger.ol" in LoggerService
log@LoggerService( new )();
println @ Console( "none" )()
outputPort OutputPort3 {
location: "socket://localhost:9002/"
protocol: sodep
interfaces: Interface3
}
interface MyInterface {
OneWay:
myOW( string )
RequestResponse:
myRR( string )( string )
}
private service MainService {
embed ConfigurationService( ) as Conf
main {
getDBConn@Conf( )( res )
}
}
----------------------------------------------------
[
["property", "Aggregates"],
["punctuation", ":"],
["aggregates", [
["class-name", "First"],
["punctuation", ","],
["class-name", "Second"],
["keyword", "with"],
["class-name", "Third"]
]],
["property", "Redirects"],
["punctuation", ":"],
["redirects", [
["class-name", "First"],
["operator", "=>"],
["class-name", "Second"],
["punctuation", ","],
["class-name", "Third"],
["operator", "=>"],
["class-name", "Fourth"]
]],
["property", "Jolie"],
["punctuation", ":"],
["string", "\"logger.ol\""],
["keyword", "in"],
["class-name", "LoggerService"],
["function", "log"],
["operator", "@"],
["class-name", "LoggerService"],
["punctuation", "("],
["keyword", "new"],
["punctuation", ")"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ";"],
["function", "println"],
["operator", "@"],
["class-name", "Console"],
["punctuation", "("],
["string", "\"none\""],
["punctuation", ")"],
["punctuation", "("],
["punctuation", ")"],
["keyword", "outputPort"],
["class-name", "OutputPort3"],
["punctuation", "{"],
["property", "location"],
["punctuation", ":"],
["string", "\"socket://localhost:9002/\""],
["property", "protocol"],
["punctuation", ":"],
" sodep\r\n ",
["property", "interfaces"],
["punctuation", ":"],
" Interface3\r\n",
["punctuation", "}"],
["keyword", "interface"],
" MyInterface ",
["punctuation", "{"],
["property", "OneWay"],
["punctuation", ":"],
["function", "myOW"],
["punctuation", "("],
["builtin", "string"],
["punctuation", ")"],
["property", "RequestResponse"],
["punctuation", ":"],
["function", "myRR"],
["punctuation", "("],
["builtin", "string"],
["punctuation", ")"],
["punctuation", "("],
["builtin", "string"],
["punctuation", ")"],
["punctuation", "}"],
["keyword", "private"],
["keyword", "service"],
["class-name", "MainService"],
["punctuation", "{"],
["keyword", "embed"],
["class-name", "ConfigurationService"],
["punctuation", "("],
["punctuation", ")"],
["keyword", "as"],
["class-name", "Conf"],
["keyword", "main"],
["punctuation", "{"],
["function", "getDBConn"],
["operator", "@"],
["class-name", "Conf"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", "("],
" res ",
["punctuation", ")"],
["punctuation", "}"],
["punctuation", "}"]
]
----------------------------------------------------
Checks for outputPorts and Aggregates and Redirect constructs.