(Type parameter)
| 50 | private TypeEncoder() {} |
| 51 | |
| 52 | static boolean isDynamic(Type parameter) { |
| 53 | if (parameter instanceof DynamicBytes |
| 54 | || parameter instanceof Utf8String |
| 55 | || parameter instanceof DynamicArray) { |
| 56 | return true; |
| 57 | } |
| 58 | |
| 59 | if (parameter instanceof StaticArray) { |
| 60 | StaticArray staticArray = (StaticArray) parameter; |
| 61 | Class componentType = staticArray.getComponentType(); |
| 62 | return isDynamic(componentType); |
| 63 | } |
| 64 | |
| 65 | return false; |
| 66 | } |
| 67 | |
| 68 | private static boolean isDynamic(Class componentType) { |
| 69 | return DynamicStruct.class.isAssignableFrom(componentType) |
no test coverage detected