private static void generateParserOnXmlEndElement ( BindTypeContext context , MethodSpec . Builder methodBuilder , String instanceName , String parserName , BindEntity entity ) { methodBuilder . beginControlFlow ( "if (elementName.equals($L.getName()))" , parserName ) ; methodBuilder . addStatement ( "currentTag = elementName" ) ; methodBuilder . addStatement ( "elementName = null" ) ; methodBuilder . endControlFlow ( ) ; }
Generate parser on xml end element .