File tree Expand file tree Collapse file tree 1 file changed +2
-36
lines changed
sbe-tool/src/main/java/uk/co/real_logic/sbe/ir Expand file tree Collapse file tree 1 file changed +2
-36
lines changed Original file line number Diff line number Diff line change 6565 */
6666public class Token
6767{
68- /**
69- * Indicates how the version field should be interpreted.
70- */
71- public enum VersionContext
72- {
73- /**
74- * Indicates the version is for the template itself.
75- */
76- TEMPLATE_VERSION ,
77-
78- /**
79- * Indicates the field was introduced since this template version.
80- */
81- SINCE_TEMPLATE_VERSION
82- }
83-
8468 /**
8569 * Invalid ID value.
8670 */
@@ -204,10 +188,9 @@ public int id()
204188 }
205189
206190 /**
207- * The version context for this token.
191+ * The version context for this token. This is the schema version in which the type was introduced.
208192 *
209- * @return version context for this token.
210- * @see Token#versionContext()
193+ * @return version for this type.
211194 */
212195 public int version ()
213196 {
@@ -234,23 +217,6 @@ public String applicableTypeName()
234217 return null == referencedName ? name : referencedName ;
235218 }
236219
237- /**
238- * The context in which the version field should be interpreted.
239- *
240- * @return context in which the version field should be interpreted.
241- */
242- public VersionContext versionContext ()
243- {
244- if (signal == Signal .BEGIN_MESSAGE || signal == Signal .END_MESSAGE )
245- {
246- return VersionContext .TEMPLATE_VERSION ;
247- }
248- else
249- {
250- return VersionContext .SINCE_TEMPLATE_VERSION ;
251- }
252- }
253-
254220 /**
255221 * The encodedLength of this token in bytes.
256222 *
You can’t perform that action at this time.
0 commit comments