public TagKind getTagKind ( ) { if ( htmlTagNode instanceof HtmlOpenTagNode ) { HtmlOpenTagNode openTagNode = ( HtmlOpenTagNode ) htmlTagNode ; if ( openTagNode . isSelfClosing ( ) || openTagNode . getTagName ( ) . isDefinitelyVoid ( ) ) { return TagKind . VOID_TAG ; } return TagKind . OPEN_TAG ; } else { return TagKind . CLOSE_TAG ; } }
Returns the tag kind .