Add source documentation for the Toknizer classes

This commit is contained in:
iska
2015-12-19 23:59:39 +01:00
parent 8893f28e4d
commit 0a620d74b6
12 changed files with 391 additions and 3 deletions
+37
View File
@@ -6,27 +6,64 @@
// Copyright (c) 2014 BrainCookie. All rights reserved.
//
///------------------------------------------------------
/// HTMLKit private header
///------------------------------------------------------
#import <Foundation/Foundation.h>
#import "HTMLToken.h"
#import "HTMLOrderedDictionary.h"
/**
HTML Tag Token
*/
@interface HTMLTagToken : HTMLToken
/** @brief The tag name. */
@property (nonatomic, copy) NSString *tagName;
/** @brief The tag's attributes. */
@property (nonatomic, strong) HTMLOrderedDictionary *attributes;
/** @brief Flag whether this tag is self-closing. */
@property (nonatomic, assign, getter = isSelfClosing) BOOL selfClosing;
/**
Initializes a new tag token.
@param tagName The tag's name.
@returns A new instance of a tag token.
*/
- (instancetype)initWithTagName:(NSString *)tagName;
/**
Initializes a new tag token.
@param tagName The tag's name.
@param attributes The tag's attributes.
@returns A new instance of a tag token.
*/
- (instancetype)initWithTagName:(NSString *)tagName attributes:(NSMutableDictionary *)attributes;
/**
Appends the given string to this token's name.
@param string The string to append.
*/
- (void)appendStringToTagName:(NSString *)string;
@end
/**
HTML Start Tag Token
*/
@interface HTMLStartTagToken : HTMLTagToken
@end
/**
HTML End Tag Token
*/
@interface HTMLEndTagToken : HTMLTagToken
@end