src/Pure/PIDE/markup.scala
author wenzelm
Tue Mar 25 16:11:00 2014 +0100 (2014-03-25)
changeset 56278 2576d3a40ed6
parent 56202 0a11d17eeeff
child 56548 ae6870efc28d
permissions -rw-r--r--
separate tokenization and language context for SML: no symbols, no antiquotes;
wenzelm@45670
     1
/*  Title:      Pure/PIDE/markup.scala
wenzelm@45673
     2
    Module:     PIDE
wenzelm@27958
     3
    Author:     Makarius
wenzelm@27958
     4
wenzelm@50201
     5
Isabelle-specific implementation of quasi-abstract markup elements.
wenzelm@27958
     6
*/
wenzelm@27958
     7
wenzelm@27958
     8
package isabelle
wenzelm@27958
     9
wenzelm@27970
    10
wenzelm@32450
    11
object Markup
wenzelm@32450
    12
{
wenzelm@45666
    13
  /* properties */
wenzelm@29184
    14
wenzelm@29184
    15
  val NAME = "name"
wenzelm@43780
    16
  val Name = new Properties.String(NAME)
wenzelm@42136
    17
wenzelm@29184
    18
  val KIND = "kind"
wenzelm@43780
    19
  val Kind = new Properties.String(KIND)
wenzelm@29184
    20
wenzelm@52854
    21
  val INSTANCE = "instance"
wenzelm@52854
    22
  val Instance = new Properties.String(INSTANCE)
wenzelm@52854
    23
wenzelm@29184
    24
wenzelm@50201
    25
  /* basic markup */
wenzelm@29184
    26
wenzelm@45666
    27
  val Empty = Markup("", Nil)
wenzelm@45666
    28
  val Broken = Markup("broken", Nil)
wenzelm@50201
    29
wenzelm@55551
    30
  class Markup_String(val name: String, prop: String)
wenzelm@55551
    31
  {
wenzelm@55551
    32
    private val Prop = new Properties.String(prop)
wenzelm@55551
    33
wenzelm@55551
    34
    def apply(s: String): Markup = Markup(name, Prop(s))
wenzelm@55551
    35
    def unapply(markup: Markup): Option[String] =
wenzelm@55551
    36
      if (markup.name == name) Prop.unapply(markup.properties) else None
wenzelm@55551
    37
  }
wenzelm@55551
    38
wenzelm@55551
    39
  class Markup_Int(val name: String, prop: String)
wenzelm@55551
    40
  {
wenzelm@55551
    41
    private val Prop = new Properties.Int(prop)
wenzelm@55551
    42
wenzelm@55551
    43
    def apply(i: Int): Markup = Markup(name, Prop(i))
wenzelm@55551
    44
    def unapply(markup: Markup): Option[Int] =
wenzelm@55551
    45
      if (markup.name == name) Prop.unapply(markup.properties) else None
wenzelm@55551
    46
  }
wenzelm@55551
    47
wenzelm@50201
    48
wenzelm@50201
    49
  /* formal entities */
wenzelm@50201
    50
wenzelm@50201
    51
  val BINDING = "binding"
wenzelm@50201
    52
  val ENTITY = "entity"
wenzelm@50201
    53
  val DEF = "def"
wenzelm@50201
    54
  val REF = "ref"
wenzelm@50201
    55
wenzelm@50201
    56
  object Entity
wenzelm@50201
    57
  {
wenzelm@50201
    58
    def unapply(markup: Markup): Option[(String, String)] =
wenzelm@50201
    59
      markup match {
wenzelm@55551
    60
        case Markup(ENTITY, props) =>
wenzelm@55551
    61
          (props, props) match {
wenzelm@55615
    62
            case (Kind(kind), Name(name)) => Some((kind, name))
wenzelm@50201
    63
            case _ => None
wenzelm@50201
    64
          }
wenzelm@50201
    65
        case _ => None
wenzelm@50201
    66
      }
wenzelm@50201
    67
  }
wenzelm@50201
    68
wenzelm@50201
    69
wenzelm@55672
    70
  /* completion */
wenzelm@55672
    71
wenzelm@55672
    72
  val COMPLETION = "completion"
wenzelm@55914
    73
  val NO_COMPLETION = "no_completion"
wenzelm@55672
    74
wenzelm@55672
    75
wenzelm@50201
    76
  /* position */
wenzelm@50201
    77
wenzelm@50201
    78
  val LINE = "line"
wenzelm@50201
    79
  val OFFSET = "offset"
wenzelm@50201
    80
  val END_OFFSET = "end_offset"
wenzelm@50201
    81
  val FILE = "file"
wenzelm@50201
    82
  val ID = "id"
wenzelm@50201
    83
wenzelm@50201
    84
  val DEF_LINE = "def_line"
wenzelm@50201
    85
  val DEF_OFFSET = "def_offset"
wenzelm@50201
    86
  val DEF_END_OFFSET = "def_end_offset"
wenzelm@50201
    87
  val DEF_FILE = "def_file"
wenzelm@50201
    88
  val DEF_ID = "def_id"
wenzelm@50201
    89
wenzelm@50201
    90
  val POSITION_PROPERTIES = Set(LINE, OFFSET, END_OFFSET, FILE, ID)
wenzelm@50201
    91
  val POSITION = "position"
wenzelm@50201
    92
wenzelm@50201
    93
wenzelm@55550
    94
  /* embedded languages */
wenzelm@55550
    95
wenzelm@55666
    96
  val Symbols = new Properties.Boolean("symbols")
wenzelm@55666
    97
  val Antiquotes = new Properties.Boolean("antiquotes")
wenzelm@55828
    98
  val Delimited = new Properties.Boolean("delimited")
wenzelm@55615
    99
wenzelm@55550
   100
  val LANGUAGE = "language"
wenzelm@55615
   101
  object Language
wenzelm@55615
   102
  {
wenzelm@55616
   103
    val ML = "ML"
wenzelm@56278
   104
    val SML = "SML"
wenzelm@55616
   105
    val UNKNOWN = "unknown"
wenzelm@55616
   106
wenzelm@55828
   107
    def unapply(markup: Markup): Option[(String, Boolean, Boolean, Boolean)] =
wenzelm@55615
   108
      markup match {
wenzelm@55615
   109
        case Markup(LANGUAGE, props) =>
wenzelm@55828
   110
          (props, props, props, props) match {
wenzelm@55828
   111
            case (Name(name), Symbols(symbols), Antiquotes(antiquotes), Delimited(delimited)) =>
wenzelm@55828
   112
              Some((name, symbols, antiquotes, delimited))
wenzelm@55615
   113
            case _ => None
wenzelm@55615
   114
          }
wenzelm@55615
   115
        case _ => None
wenzelm@55615
   116
      }
wenzelm@55615
   117
  }
wenzelm@55550
   118
wenzelm@55550
   119
wenzelm@54702
   120
  /* external resources */
wenzelm@50201
   121
wenzelm@50201
   122
  val PATH = "path"
wenzelm@55551
   123
  val Path = new Markup_String(PATH, NAME)
wenzelm@50201
   124
wenzelm@54702
   125
  val URL = "url"
wenzelm@55551
   126
  val Url = new Markup_String(URL, NAME)
wenzelm@54702
   127
wenzelm@50201
   128
wenzelm@50201
   129
  /* pretty printing */
wenzelm@50201
   130
wenzelm@55551
   131
  val Block = new Markup_Int("block", "indent")
wenzelm@55551
   132
  val Break = new Markup_Int("break", "width")
wenzelm@50201
   133
wenzelm@51570
   134
  val ITEM = "item"
wenzelm@51574
   135
  val BULLET = "bullet"
wenzelm@51570
   136
wenzelm@50201
   137
  val SEPARATOR = "separator"
wenzelm@50201
   138
wenzelm@50201
   139
wenzelm@50201
   140
  /* hidden text */
wenzelm@50201
   141
wenzelm@50201
   142
  val HIDDEN = "hidden"
wenzelm@50201
   143
wenzelm@50201
   144
wenzelm@50201
   145
  /* logical entities */
wenzelm@50201
   146
wenzelm@50201
   147
  val CLASS = "class"
wenzelm@50201
   148
  val TYPE_NAME = "type_name"
wenzelm@50201
   149
  val FIXED = "fixed"
wenzelm@53378
   150
  val CASE = "case"
wenzelm@50201
   151
  val CONSTANT = "constant"
wenzelm@50201
   152
  val DYNAMIC_FACT = "dynamic_fact"
wenzelm@50201
   153
wenzelm@50201
   154
wenzelm@50201
   155
  /* inner syntax */
wenzelm@50201
   156
wenzelm@50201
   157
  val TFREE = "tfree"
wenzelm@50201
   158
  val TVAR = "tvar"
wenzelm@50201
   159
  val FREE = "free"
wenzelm@50201
   160
  val SKOLEM = "skolem"
wenzelm@50201
   161
  val BOUND = "bound"
wenzelm@50201
   162
  val VAR = "var"
wenzelm@50201
   163
  val NUMERAL = "numeral"
wenzelm@50201
   164
  val LITERAL = "literal"
wenzelm@50201
   165
  val DELIMITER = "delimiter"
wenzelm@50201
   166
  val INNER_STRING = "inner_string"
wenzelm@55033
   167
  val INNER_CARTOUCHE = "inner_cartouche"
wenzelm@50201
   168
  val INNER_COMMENT = "inner_comment"
wenzelm@50201
   169
wenzelm@50201
   170
  val TOKEN_RANGE = "token_range"
wenzelm@50201
   171
wenzelm@50201
   172
  val SORTING = "sorting"
wenzelm@50201
   173
  val TYPING = "typing"
wenzelm@50201
   174
wenzelm@50201
   175
  val ATTRIBUTE = "attribute"
wenzelm@50201
   176
  val METHOD = "method"
wenzelm@50201
   177
wenzelm@50201
   178
wenzelm@55550
   179
  /* antiquotations */
wenzelm@50201
   180
wenzelm@55526
   181
  val ANTIQUOTED = "antiquoted"
wenzelm@55526
   182
  val ANTIQUOTE = "antiquote"
wenzelm@55526
   183
wenzelm@50201
   184
  val ML_ANTIQUOTATION = "ML_antiquotation"
wenzelm@50201
   185
  val DOCUMENT_ANTIQUOTATION = "document_antiquotation"
wenzelm@50201
   186
  val DOCUMENT_ANTIQUOTATION_OPTION = "document_antiquotation_option"
wenzelm@50201
   187
wenzelm@50201
   188
wenzelm@50201
   189
  /* text structure */
wenzelm@50201
   190
wenzelm@50201
   191
  val PARAGRAPH = "paragraph"
wenzelm@50545
   192
  val TEXT_FOLD = "text_fold"
wenzelm@50201
   193
wenzelm@50201
   194
wenzelm@50201
   195
  /* ML syntax */
wenzelm@50201
   196
wenzelm@55505
   197
  val ML_KEYWORD1 = "ML_keyword1"
wenzelm@55505
   198
  val ML_KEYWORD2 = "ML_keyword2"
wenzelm@55505
   199
  val ML_KEYWORD3 = "ML_keyword3"
wenzelm@50201
   200
  val ML_DELIMITER = "ML_delimiter"
wenzelm@50201
   201
  val ML_TVAR = "ML_tvar"
wenzelm@50201
   202
  val ML_NUMERAL = "ML_numeral"
wenzelm@50201
   203
  val ML_CHAR = "ML_char"
wenzelm@50201
   204
  val ML_STRING = "ML_string"
wenzelm@50201
   205
  val ML_COMMENT = "ML_comment"
wenzelm@56278
   206
  val SML_STRING = "SML_string"
wenzelm@56278
   207
  val SML_COMMENT = "SML_comment"
wenzelm@50201
   208
wenzelm@50201
   209
  val ML_DEF = "ML_def"
wenzelm@50201
   210
  val ML_OPEN = "ML_open"
wenzelm@55837
   211
  val ML_STRUCTURE = "ML_structure"
wenzelm@50201
   212
  val ML_TYPING = "ML_typing"
wenzelm@50201
   213
wenzelm@50201
   214
wenzelm@50201
   215
  /* outer syntax */
wenzelm@50201
   216
wenzelm@55744
   217
  val COMMAND = "command"
wenzelm@55744
   218
  val KEYWORD1 = "keyword1"
wenzelm@55744
   219
  val KEYWORD2 = "keyword2"
wenzelm@55765
   220
  val KEYWORD3 = "keyword3"
wenzelm@55919
   221
  val QUASI_KEYWORD = "quasi_keyword"
wenzelm@56202
   222
  val IMPROPER = "improper"
wenzelm@50201
   223
  val OPERATOR = "operator"
wenzelm@50201
   224
  val STRING = "string"
wenzelm@50201
   225
  val ALTSTRING = "altstring"
wenzelm@50201
   226
  val VERBATIM = "verbatim"
wenzelm@55033
   227
  val CARTOUCHE = "cartouche"
wenzelm@50201
   228
  val COMMENT = "comment"
wenzelm@50201
   229
  val CONTROL = "control"
wenzelm@50201
   230
wenzelm@50201
   231
wenzelm@50201
   232
  /* timing */
wenzelm@50201
   233
wenzelm@50781
   234
  val Elapsed = new Properties.Double("elapsed")
wenzelm@50781
   235
  val CPU = new Properties.Double("cpu")
wenzelm@50781
   236
  val GC = new Properties.Double("gc")
wenzelm@50781
   237
wenzelm@50781
   238
  object Timing_Properties
wenzelm@50781
   239
  {
wenzelm@50781
   240
    def apply(timing: isabelle.Timing): Properties.T =
wenzelm@50781
   241
      Elapsed(timing.elapsed.seconds) ::: CPU(timing.cpu.seconds) ::: GC(timing.gc.seconds)
wenzelm@51662
   242
wenzelm@50781
   243
    def unapply(props: Properties.T): Option[isabelle.Timing] =
wenzelm@50781
   244
      (props, props, props) match {
wenzelm@50781
   245
        case (Elapsed(elapsed), CPU(cpu), GC(gc)) =>
wenzelm@50781
   246
          Some(new isabelle.Timing(Time.seconds(elapsed), Time.seconds(cpu), Time.seconds(gc)))
wenzelm@50781
   247
        case _ => None
wenzelm@50781
   248
      }
wenzelm@50781
   249
  }
wenzelm@50781
   250
wenzelm@50201
   251
  val TIMING = "timing"
wenzelm@50201
   252
wenzelm@50201
   253
  object Timing
wenzelm@50201
   254
  {
wenzelm@50781
   255
    def apply(timing: isabelle.Timing): Markup = Markup(TIMING, Timing_Properties(timing))
wenzelm@51662
   256
wenzelm@50201
   257
    def unapply(markup: Markup): Option[isabelle.Timing] =
wenzelm@50201
   258
      markup match {
wenzelm@50781
   259
        case Markup(TIMING, Timing_Properties(timing)) => Some(timing)
wenzelm@50201
   260
        case _ => None
wenzelm@50201
   261
      }
wenzelm@50201
   262
  }
wenzelm@50201
   263
wenzelm@50201
   264
wenzelm@51662
   265
  /* command timing */
wenzelm@51662
   266
wenzelm@51818
   267
  val COMMAND_TIMING = "command_timing"
wenzelm@51662
   268
wenzelm@51662
   269
wenzelm@50201
   270
  /* toplevel */
wenzelm@50201
   271
wenzelm@50201
   272
  val SUBGOALS = "subgoals"
wenzelm@50201
   273
  val PROOF_STATE = "proof_state"
wenzelm@50201
   274
wenzelm@50201
   275
  val STATE = "state"
wenzelm@50543
   276
  val GOAL = "goal"
wenzelm@50201
   277
  val SUBGOAL = "subgoal"
wenzelm@50215
   278
wenzelm@50450
   279
wenzelm@50201
   280
  /* command status */
wenzelm@50201
   281
wenzelm@50201
   282
  val TASK = "task"
wenzelm@50201
   283
wenzelm@50201
   284
  val ACCEPTED = "accepted"
wenzelm@50201
   285
  val FORKED = "forked"
wenzelm@50201
   286
  val JOINED = "joined"
wenzelm@50201
   287
  val RUNNING = "running"
wenzelm@50201
   288
  val FINISHED = "finished"
wenzelm@50201
   289
  val FAILED = "failed"
wenzelm@50201
   290
wenzelm@50201
   291
wenzelm@50201
   292
  /* interactive documents */
wenzelm@50201
   293
wenzelm@50201
   294
  val VERSION = "version"
wenzelm@50201
   295
  val ASSIGN = "assign"
wenzelm@50201
   296
wenzelm@50201
   297
wenzelm@50201
   298
  /* prover process */
wenzelm@50201
   299
wenzelm@50201
   300
  val PROVER_COMMAND = "prover_command"
wenzelm@50201
   301
  val PROVER_ARG = "prover_arg"
wenzelm@50201
   302
wenzelm@50201
   303
wenzelm@50201
   304
  /* messages */
wenzelm@50201
   305
lars@55316
   306
  val SERIAL = "serial"
lars@55316
   307
  val Serial = new Properties.Long(SERIAL)
wenzelm@50201
   308
wenzelm@50201
   309
  val MESSAGE = "message"
wenzelm@50201
   310
wenzelm@50201
   311
  val INIT = "init"
wenzelm@50201
   312
  val STATUS = "status"
wenzelm@50201
   313
  val REPORT = "report"
wenzelm@50500
   314
  val RESULT = "result"
wenzelm@50201
   315
  val WRITELN = "writeln"
wenzelm@50201
   316
  val TRACING = "tracing"
wenzelm@50201
   317
  val WARNING = "warning"
wenzelm@50201
   318
  val ERROR = "error"
wenzelm@50201
   319
  val PROTOCOL = "protocol"
wenzelm@50201
   320
  val SYSTEM = "system"
wenzelm@50201
   321
  val STDOUT = "stdout"
wenzelm@50201
   322
  val STDERR = "stderr"
wenzelm@50201
   323
  val EXIT = "exit"
wenzelm@50201
   324
wenzelm@50201
   325
  val WRITELN_MESSAGE = "writeln_message"
wenzelm@50201
   326
  val TRACING_MESSAGE = "tracing_message"
wenzelm@50201
   327
  val WARNING_MESSAGE = "warning_message"
wenzelm@50201
   328
  val ERROR_MESSAGE = "error_message"
wenzelm@50201
   329
wenzelm@52876
   330
  val messages =
wenzelm@50201
   331
    Map(WRITELN -> WRITELN_MESSAGE, TRACING -> TRACING_MESSAGE,
wenzelm@52876
   332
        WARNING -> WARNING_MESSAGE, ERROR -> ERROR_MESSAGE)
wenzelm@52876
   333
  val message: String => String = messages.withDefault((s: String) => s)
wenzelm@50201
   334
wenzelm@50201
   335
  val Return_Code = new Properties.Int("return_code")
wenzelm@50201
   336
wenzelm@50201
   337
  val LEGACY = "legacy"
wenzelm@50201
   338
wenzelm@50201
   339
  val NO_REPORT = "no_report"
wenzelm@50201
   340
wenzelm@50201
   341
  val BAD = "bad"
wenzelm@50201
   342
wenzelm@50500
   343
  val INTENSIFY = "intensify"
wenzelm@52643
   344
  val INFORMATION = "information"
wenzelm@50500
   345
wenzelm@50500
   346
wenzelm@50500
   347
  /* active areas */
wenzelm@50500
   348
wenzelm@50715
   349
  val BROWSER = "browser"
wenzelm@50500
   350
  val GRAPHVIEW = "graphview"
wenzelm@50500
   351
wenzelm@50500
   352
  val SENDBACK = "sendback"
wenzelm@50500
   353
  val PADDING = "padding"
wenzelm@52697
   354
  val PADDING_LINE = (PADDING, "line")
wenzelm@52697
   355
  val PADDING_COMMAND = (PADDING, "command")
wenzelm@50500
   356
wenzelm@50500
   357
  val DIALOG = "dialog"
wenzelm@50503
   358
  val Result = new Properties.String(RESULT)
wenzelm@50500
   359
wenzelm@50201
   360
wenzelm@50201
   361
  /* protocol message functions */
wenzelm@50201
   362
wenzelm@50201
   363
  val FUNCTION = "function"
wenzelm@50201
   364
  val Function = new Properties.String(FUNCTION)
wenzelm@50201
   365
wenzelm@52800
   366
  val Flush: Properties.T = List((FUNCTION, "flush"))
wenzelm@52800
   367
wenzelm@52563
   368
  val Assign_Update: Properties.T = List((FUNCTION, "assign_update"))
wenzelm@50201
   369
  val Removed_Versions: Properties.T = List((FUNCTION, "removed_versions"))
wenzelm@50201
   370
wenzelm@52111
   371
  object Protocol_Handler
wenzelm@52111
   372
  {
wenzelm@52111
   373
    def unapply(props: Properties.T): Option[(String)] =
wenzelm@52111
   374
      props match {
wenzelm@52111
   375
        case List((FUNCTION, "protocol_handler"), (NAME, name)) => Some(name)
wenzelm@52111
   376
        case _ => None
wenzelm@52111
   377
      }
wenzelm@52111
   378
  }
wenzelm@52111
   379
wenzelm@52111
   380
  val INVOKE_SCALA = "invoke_scala"
wenzelm@50201
   381
  object Invoke_Scala
wenzelm@50201
   382
  {
wenzelm@50201
   383
    def unapply(props: Properties.T): Option[(String, String)] =
wenzelm@50201
   384
      props match {
wenzelm@52111
   385
        case List((FUNCTION, INVOKE_SCALA), (NAME, name), (ID, id)) => Some((name, id))
wenzelm@50201
   386
        case _ => None
wenzelm@50201
   387
      }
wenzelm@50201
   388
  }
wenzelm@52111
   389
wenzelm@52111
   390
  val CANCEL_SCALA = "cancel_scala"
wenzelm@50201
   391
  object Cancel_Scala
wenzelm@50201
   392
  {
wenzelm@50201
   393
    def unapply(props: Properties.T): Option[String] =
wenzelm@50201
   394
      props match {
wenzelm@52111
   395
        case List((FUNCTION, CANCEL_SCALA), (ID, id)) => Some(id)
wenzelm@50201
   396
        case _ => None
wenzelm@50201
   397
      }
wenzelm@50201
   398
  }
wenzelm@50255
   399
wenzelm@53055
   400
  val SLEDGEHAMMER_PROVERS = "sledgehammer_provers"
wenzelm@53055
   401
  val Sledgehammer_Provers: Properties.T = List((FUNCTION, SLEDGEHAMMER_PROVERS))
wenzelm@53055
   402
wenzelm@50255
   403
  object ML_Statistics
wenzelm@50255
   404
  {
wenzelm@50255
   405
    def unapply(props: Properties.T): Option[Properties.T] =
wenzelm@50255
   406
      props match {
wenzelm@50255
   407
        case (FUNCTION, "ML_statistics") :: stats => Some(stats)
wenzelm@50255
   408
        case _ => None
wenzelm@50255
   409
      }
wenzelm@50255
   410
  }
wenzelm@50975
   411
wenzelm@50975
   412
  object Task_Statistics
wenzelm@50975
   413
  {
wenzelm@50975
   414
    def unapply(props: Properties.T): Option[Properties.T] =
wenzelm@50975
   415
      props match {
wenzelm@50975
   416
        case (FUNCTION, "task_statistics") :: stats => Some(stats)
wenzelm@50975
   417
        case _ => None
wenzelm@50975
   418
      }
wenzelm@50975
   419
  }
lars@55316
   420
wenzelm@55553
   421
lars@55316
   422
  /* simplifier trace */
lars@55316
   423
wenzelm@55553
   424
  val SIMP_TRACE = "simp_trace"
lars@55316
   425
wenzelm@55553
   426
  val SIMP_TRACE_LOG = "simp_trace_log"
wenzelm@55553
   427
  val SIMP_TRACE_STEP = "simp_trace_step"
wenzelm@55553
   428
  val SIMP_TRACE_RECURSE = "simp_trace_recurse"
wenzelm@55553
   429
  val SIMP_TRACE_HINT = "simp_trace_hint"
wenzelm@55553
   430
  val SIMP_TRACE_IGNORE = "simp_trace_ignore"
lars@55316
   431
wenzelm@55553
   432
  val SIMP_TRACE_CANCEL = "simp_trace_cancel"
wenzelm@55553
   433
  object Simp_Trace_Cancel
lars@55316
   434
  {
lars@55316
   435
    def unapply(props: Properties.T): Option[Long] =
lars@55316
   436
      props match {
wenzelm@55553
   437
        case (FUNCTION, SIMP_TRACE_CANCEL) :: Serial(i) => Some(i)
lars@55316
   438
        case _ => None
lars@55316
   439
      }
lars@55316
   440
  }
wenzelm@45666
   441
}
wenzelm@43721
   442
wenzelm@43721
   443
wenzelm@45666
   444
sealed case class Markup(name: String, properties: Properties.T)
wenzelm@43748
   445