Java PrimerMethod Properties in Java

Listing 15. Two example methods documented using @methodtype and @methodproperties tags.


/**
 * Set a name component to a new value.
 * @methodtype set
 * @methodproperties primitive hook
*/
protected abstract void basicComponent(int index, String component);

/**
 * Return context name of Name object.
 * @methodtype get
 * @methodproperties template
 */
public Name contextName() throws InvalidIndexException { ... }