private static void loadRestrictionsToAttribute ( XsdAttribute attribute , MethodVisitor mVisitor , String javaType , boolean hasEnum ) { getAttributeRestrictions ( attribute ) . forEach ( restriction -> loadRestrictionToAttribute ( mVisitor , restriction , javaType , hasEnum ? 1 : 0 ) ) ; mVisitor . visitInsn ( RETURN ) ; mVisitor . visitMaxs ( 4 , hasEnum ? 2 : 1 ) ; mVisitor . visitEnd ( ) ; }
Loads all the existing restrictions to the attribute class .