
com.dyuproject.protostuff.compiler.java_bean_model_model.stg Maven / Gradle / Ivy
group java_bean_model_model : java_bean_model_base;
message_block(message, module, options, nested) ::= <<
public static class
{
}
>>
message_impl_declaration(message, options) ::= <<
,
implements
Externalizable, Message\<\>
>>
message_constructor(message, options) ::= <<
public () {}
public () {
}
>>
field_declare_constructor_singular(field, options) ::= <<
>>
field_assign_constructor_singular(field, options) ::= <<
this. = ;
>>
message_getters_and_setters(message, options) ::= <<
>>
field_getters_and_setters(field, options, message) ::= <<
public List\<\> getList() {
return ;
}
public setList(List\<\> ) {
this. = ;
}
public get(int index) {
return == null ? null : .get(index);
}
public int getCount() {
return == null ? 0 : .size();
}
public add( ) {
if(this. == null)
this. = new ArrayList\<\>();
this..add();
}
public get() {
return ;
return == null ? : ;
return ;
}
public set( ) {
this. = ;
}
>>
builder_pattern_return_type(field, options, type) ::= <<
void
>>
builder_pattern_return(field, options) ::= <<
return this;
>>
message_impl_serializable(message, options) ::= <<
public void readExternal(ObjectInput in) throws IOException {
GraphIOUtil.mergeDelimitedFrom(in, this, cachedSchema());
}
public void writeExternal(ObjectOutput out) throws IOException {
GraphIOUtil.writeDelimitedTo(out, this, cachedSchema());
}
>>
message_impl_message(message, options) ::= <<
public Schema\<\> cachedSchema() {
return ..getSchema();
}
>>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy