public class MinBytesLenCobolVisitor extends Object implements CobolVisitor
Variable size arrays are considered to have no occurrence.
Choices are assumed to have the smallest alternative selected.
Optionally calculation can stop on a field in the middle of the structure (calculates partial length).
| Constructor and Description |
|---|
MinBytesLenCobolVisitor() |
MinBytesLenCobolVisitor(String stopFieldInclusive) |
| Modifier and Type | Method and Description |
|---|---|
long |
getMinBytesLen() |
void |
visit(CobolArrayType type) |
void |
visit(CobolChoiceType type) |
void |
visit(CobolComplexType type) |
void |
visit(CobolPrimitiveType<?> type) |
public MinBytesLenCobolVisitor()
public MinBytesLenCobolVisitor(String stopFieldInclusive)
public void visit(CobolComplexType type)
visit in interface CobolVisitorpublic void visit(CobolChoiceType type)
visit in interface CobolVisitorpublic void visit(CobolArrayType type)
visit in interface CobolVisitorpublic void visit(CobolPrimitiveType<?> type)
visit in interface CobolVisitorpublic long getMinBytesLen()
Copyright © 2021 LegSem. All rights reserved.