INNER CODE UNIT · Python

link

gurkenlabs/litiengine · config/javadoc/generate_js.py:591

      const link = Array.from(current.children).find(el => el.tagName === 'A');
      if (link) {
        const fullText = link.textContent.trim();
        const isObject = link.href.includes('Object.html') || fullText === 'java.lang.Object' || fullText === 'Object';
        const lastDot = fullText.lastIndexOf('.');
        const pkg = lastDot !== -1 ? fullText.substring(0, lastDot) : '';
        const name = lastDot !== -1 ? fullText.substring(lastDot + 1) : fullText;

        items.push({
          isObject,
          isLink: true,
          pkg,
          name,
          href: link.getAttribute('href'),
          title: link.getAttribute('title') || ''
        });
      } else {
        let raw = '';

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…