You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
551 B
19 lines
551 B
include ./textutils.ysl2
|
|
|
|
function "toJava" {
|
|
param "type";
|
|
|
|
choose {
|
|
when "$type='stringlist'" > String[]
|
|
when "$type='string'" > String
|
|
when "$type='message'" > MimeMessage
|
|
when "$type='pEp-identity'" > Identity
|
|
when "$type='identity-list'" > Identity[]
|
|
when "$type='timestamp'" > Date
|
|
when "$type='pEp-enc-format'" > MimeMessage.EncFormat
|
|
otherwise call "CamelCase" with "text", "$type";
|
|
}
|
|
}
|
|
|
|
define operator "†([$@]?[a-zA-Z0-9_]+)" as call "toJava" with "type", "%1";
|
|
|
|
|