All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.thrift.common.st Maven / Gradle / Ivy

thriftfile(context) ::= <<







namespace java.swift 
 }; separator="\n">

"}; separator="\n">

}; separator="\n\n">

}; separator="\n\n">

}; separator="\n\n">

>>

_enum(enum) ::= <<
<_doc(enum.documentation)><\\\>
enum  {
  <\\\>
  <_maybeEnumValue(enum, enumElem)>}; separator=", ">
}
>>

_maybeEnumValue(enum, enumElem) ::= <<
=
>>

_struct(struct) ::= <<
<_doc(struct.documentation)><\\\>
<_structkind(struct)> <_structAnnotations(struct.idlAnnotations)> {
  <_field(f)>;}; separator="\n">
}
>>

_structAnnotations(annotations) ::= <<
 ( }; separator=", "> )
>>

_structAnnotation(annotationKey, annotationValue) ::= <<
 = ""
>>

_structkind(struct) ::= <<
structexceptionunion
>>

_field(field) ::= <<
<_doc(field.documentation)><\\\>
: <_fieldRequiredness(field)> <_fieldAnnotations(field.idlAnnotations)>
>>

_fieldAnnotations(annotations) ::= <<
 ( }; separator=", "> )
>>

_fieldAnnotation(annotationKey, annotationValue) ::= <<
 = ""
>>

_fieldRequiredness(field) ::= <<
 
>>

_service(service) ::= <<
<_doc(service.documentation)><\\\>
service  extends  {
  }; separator="\n">
}
>>

_method(method) ::= <<
<_doc(method.documentation)><\\\>
oneway <\\\>
 <\\\>
(<_methodParameters(method.parameters)>)<\\\>
<_methodExceptions(method.exceptions)><\\\>
;
>>

_methodParameters(params) ::= <<
}; separator=", ">
>>

_methodExceptions(exceptions) ::= <<
 throws (:  ex}; separator=", ">)
>>

_doc(documentation) ::= <<

/**
}; separator="\n">
 */

>>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy