-
I looked over the source code and found that many Node extend the ElementNode, but do not have all the ElementNode methods. for example: and class ParagraphNode extends ElementNode, but ParagraphNode not have getStyle method. I read all that I think is relative code, but nothing founded. could someone tell me how did lexical did that work? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
ElementNode is a class, not an abstract interface. These subclasses are inheriting the implementation from the base class. |
Beta Was this translation helpful? Give feedback.
It does inherit those methods. Maybe you are confused because the API documentation is generated with settings that don't repeat inherited methods that are not overridden?