|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openquark.cal.compiler.CALDocComment.Segment
org.openquark.cal.compiler.CALDocComment.InlineTagSegment
org.openquark.cal.compiler.CALDocComment.LinkSegment
org.openquark.cal.compiler.CALDocComment.ScopedEntityLinkSegment
org.openquark.cal.compiler.CALDocComment.FunctionOrClassMethodLinkSegment
public static final class CALDocComment.FunctionOrClassMethodLinkSegment
Represents an inline, hyperlinkable cross-reference to a function or class method in a CALDoc comment.
| Method Summary | ||
|---|---|---|
|
accept(CALDocCommentTextBlockVisitor<T,R> visitor,
T arg)
Accepts the visitation of a visitor, which implements the CALDocCommentTextBlockVisitor interface. |
|
void |
toStringBuilder(StringBuilder result,
int indentLevel)
Fills the given StringBuilder with a string representation of this instance. |
|
| Methods inherited from class org.openquark.cal.compiler.CALDocComment.ScopedEntityLinkSegment |
|---|
getReference |
| Methods inherited from class org.openquark.cal.compiler.CALDocComment.Segment |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public <T,R> R accept(CALDocCommentTextBlockVisitor<T,R> visitor,
T arg)
As the CALDocCommentTextBlockVisitor follows a more general visitor pattern where arguments can be passed into the visit methods and return values obtained from them, this method passes through the argument into the visit method, and returns as its return value the return value of the visit method.
Nonetheless, for a significant portion of the common cases, the state of the
visitation can simply be kept as member variables within the visitor itself,
thereby eliminating the need to use the argument and return value of the
visit methods. In these scenarios, the recommended approach is to use
Void as the type argument for both T and R, and
pass in null as the argument, and return null as the return value.
accept in class CALDocComment.SegmentT - the argument type. If the visitation argument is not used, specify Void.R - the return type. If the return value is not used, specify Void.visitor - the visitor.arg - the argument to be passed to the visitor's visitXXX method.
public void toStringBuilder(StringBuilder result,
int indentLevel)
toStringBuilder in class CALDocComment.Segmentresult - the StringBuilder to fill.indentLevel - the indent level to use in indenting the generated text.
|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||