Commit daa32ab 1 parent 021c634 commit daa32ab Copy full SHA for daa32ab
File tree 2 files changed +26
-26
lines changed
runtime/src/zserio/runtime
2 files changed +26
-26
lines changed Original file line number Diff line number Diff line change 7
7
</#if >
8
8
public final class ${name} implements zserio.runtime.ZserioSubtype
9
9
{
10
- @Override
11
- public String getBaseTypePackage()
10
+ <#if withCodeComments >
11
+ /**
12
+ * Gets the package of the base type which is resolved from the subtype.
13
+ *
14
+ * @return The package of the base type or null if the base type is simple type.
15
+ */
16
+ </#if >
17
+ public static String getBaseTypePackage()
12
18
{
13
19
return <#if basePackageName?? && basePackageName != "" >"${basePackageName} "<#else >null</#if >;
14
20
}
15
21
16
- @Override
17
- public String getBaseTypeName()
22
+ <#if withCodeComments >
23
+ /**
24
+ * Gets the name of the base type which is resolved from the subtype.
25
+ *
26
+ * @return The name of the base type.
27
+ */
28
+ </#if >
29
+ public static String getBaseTypeName()
18
30
{
19
31
return "${baseTypeName} ";
20
32
}
21
33
22
- @Override
23
- public Class<?> getBaseClass()
34
+ <#if withCodeComments >
35
+ /**
36
+ * Gets the class of the base type which is resolved from the subtype.
37
+ *
38
+ * @return The class of the base type or the class of boxing type if the base type is simple type.
39
+ */
40
+ </#if >
41
+ public static Class<?> getBaseClass()
24
42
{
25
43
return ${baseClassName} .class;
26
44
}
Original file line number Diff line number Diff line change 2
2
3
3
/**
4
4
* Interface implemented by all subtypes generated by Zserio.
5
+ *
6
+ * This interface is empty because subtypes generated by Zserio contain only static methods.
5
7
*/
6
8
public interface ZserioSubtype
7
9
{
8
- /**
9
- * Gets the package of the base type which is resolved from the subtype.
10
- *
11
- * @return The package of the base type or null if the base type is simple type.
12
- */
13
- String getBaseTypePackage ();
14
-
15
- /**
16
- * Gets the name of the base type which is resolved from the subtype.
17
- *
18
- * @return The name of the base type.
19
- */
20
- String getBaseTypeName ();
21
-
22
- /**
23
- * Gets the class of the base type which is resolved from the subtype.
24
- *
25
- * @return The class of the base type or the class of boxing type if the base type is simple type.
26
- */
27
- Class <?> getBaseClass ();
28
10
}
You can’t perform that action at this time.
0 commit comments