public static String descriptorMethodSource ( Class cls ) { String descriptorClsName = ClassHelper . getInternalName ( Descriptor . class . getCanonicalName ( ) ) ; String code = "if (this.descriptor != null) {" + ClassCode . LINE_BREAK + "return this.descriptor;" + ClassCode . LINE_BREAK + "}" + ClassCode . LINE_BREAK + "%s descriptor = CodedConstant.getDescriptor(%s);" + ClassCode . LINE_BREAK + "return (this.descriptor = descriptor);" ; return String . format ( code , descriptorClsName , ClassHelper . getInternalName ( cls . getCanonicalName ( ) ) + CodeGenerator . JAVA_CLASS_FILE_SUFFIX ) ; }
Get getDescriptor method source by template .