/* Function: IsOn * Returns whether the iterator is on the passed <JavadocElementType> and tag type. The tag type is only relevant * for <JavadocElementType.HTMLTag> or <JavadocElementType.JavadocTag>. */ public bool IsOn(JavadocElementType elementType, string tagType) { #if DEBUG if (elementType != JavadocElementType.HTMLTag && elementType != JavadocElementType.JavadocTag) { throw new Exception("Can't call IsOn() with a tag type unless the element type is a HTML or Javadoc tag."); } #endif return(type == elementType && this.tagType == tagType); }
/* Function: IsOn * Returns whether the iterator is on the passed <JavadocElementType>, tag type, and <TagForm>. This function must be * used with <JavadocElementType.HTMLTag> since that's the only type where it's relevant. <JavadocElementType> is * passed anyway for consistency with other IsOn() functions. */ public bool IsOn(JavadocElementType elementType, string tagType, TagForm tagForm) { #if DEBUG if (elementType != JavadocElementType.HTMLTag) { throw new Exception("Can't call IsOn() with a tag form unless the element type is a HTML tag."); } #endif return(IsOnHTMLTag(tagType, tagForm)); }
/* Function: IsOn * Returns whether the iterator is on the passed <JavadocElementType> */ public bool IsOn(JavadocElementType elementType) { return(type == elementType); }