templates.tablesAttributes.stg Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fulib Show documentation
Show all versions of fulib Show documentation
Fulib is a Java-code generating library.
expandMethod(roleName,typeName,className) ::=
<<
public Table expand(String... rowName)
{
Table result = new Table();
result.setColumnMap(this.columnMap);
result.setTable(this.table);
int newColumnNumber = this.table.size() > 0 ? this.table.get(0).size() : 0;
String newColumnName = rowName != null && rowName.length > 0 ? rowName[0] : "" + ((char)('A' + newColumnNumber));
result.setColumnName(newColumnName);
columnMap.put(newColumnName, newColumnNumber);
ArrayList\ > oldTable = (ArrayList\ >) this.table.clone();
this.table.clear();
for (ArrayList\
© 2015 - 2025 Weber Informatics LLC | Privacy Policy