use of org.openmuc.jasn1.compiler.model.AsnClassNumber in project jasn1 by openmuc.
the class BerClassWriter method addAutomaticTagsIfNeeded.
private void addAutomaticTagsIfNeeded(List<AsnElementType> componentTypes) throws IOException {
if (tagDefault != TagDefault.AUTOMATIC) {
return;
}
for (AsnElementType element : componentTypes) {
if (getTag(element) != null) {
return;
}
}
int i = 0;
for (AsnElementType element : componentTypes) {
element.tag = new AsnTag();
element.tag.classNumber = new AsnClassNumber();
element.tag.classNumber.num = i;
i++;
}
}
Aggregations