added getLength

This commit is contained in:
Timo Westkämper 2012-11-14 21:50:57 +02:00
parent 2eed073bb0
commit 2b649d93d9

View File

@ -147,6 +147,11 @@ public abstract class SerializerBase<S extends SerializerBase<S>> implements Vis
}
return self;
}
public S insert(int position, String str) {
builder.insert(position, str);
return self;
}
public S append(String... str) {
if (!dry) {
@ -164,6 +169,10 @@ public abstract class SerializerBase<S extends SerializerBase<S>> implements Vis
public Map<Object,String> getConstantToLabel() {
return constantToLabel;
}
public int getLength() {
return builder.length();
}
protected Template getTemplate(Operator<?> op) {
return templates.getTemplate(op);