public class

LinkReference

extends Object
java.lang.Object
   ↳ com.google.doclava.LinkReference

Class Overview

Class that represents what you see in an link or see tag. This is factored out of SeeTagInfo so it can be used elsewhere (like AttrTagInfo).

Summary

Fields
public ClassInfo classInfo The ClassInfo if any.
public boolean good Set to true if everything is a-ok
public String href The link.
public boolean isLocal True if the link is for a page in this documentation.
public String kind The kind of this tag, if we have a new suggestion after parsing.
public String label The user visible text.
public MemberInfo memberInfo The MemberInfo if any.
public PackageInfo packageInfo The PackageInfo if any.
public String referencedMemberName The name of the referenced member PackageInfo} if any.
public String text The original text.
Public Methods
boolean checkLevel()
static LinkReference parse(String text, ContainerInfo base, SourcePositionInfo pos, boolean printOnErrors)
Parse and resolve a link string.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public ClassInfo classInfo

The ClassInfo if any.

public boolean good

Set to true if everything is a-ok

public String href

The link.

public boolean isLocal

True if the link is for a page in this documentation.

public String kind

The kind of this tag, if we have a new suggestion after parsing.

public String label

The user visible text.

public MemberInfo memberInfo

The MemberInfo if any.

public PackageInfo packageInfo

The PackageInfo if any.

public String referencedMemberName

The name of the referenced member PackageInfo} if any.

public String text

The original text.

Public Methods

public boolean checkLevel ()

public static LinkReference parse (String text, ContainerInfo base, SourcePositionInfo pos, boolean printOnErrors)

Parse and resolve a link string.

Parameters
text the original text
base the class or whatever that this link is on
pos the original position in the source document
Returns
  • a new link reference. It always returns something. If there was an error, it logs it and fills in href and label with error text.