[#5] Added @ref's to member inheritence section of manual
parent
fea1960ab5
commit
771d8d981d
|
@ -102,6 +102,7 @@ omitted, @var{C} will be declared anonymous.
|
||||||
@code{Class} must be imported (@pxref{Including}) from @code{easejs.Class}; it
|
@code{Class} must be imported (@pxref{Including}) from @code{easejs.Class}; it
|
||||||
is not available in the global scope.
|
is not available in the global scope.
|
||||||
|
|
||||||
|
@anchor{dfnobj}
|
||||||
@subsection Definition Object
|
@subsection Definition Object
|
||||||
@table @code
|
@table @code
|
||||||
@item dfn = @{ '[@var{keywords}] @var{name}': @var{value}[, ...] @}
|
@item dfn = @{ '[@var{keywords}] @var{name}': @var{value}[, ...] @}
|
||||||
|
@ -148,6 +149,7 @@ determines what type of member will be declared.
|
||||||
@var{name} must be unique across all members of @var{dfn}.
|
@var{name} must be unique across all members of @var{dfn}.
|
||||||
@end enumerate
|
@end enumerate
|
||||||
|
|
||||||
|
@anchor{mkeywords}
|
||||||
@subsection Member Keywords
|
@subsection Member Keywords
|
||||||
@float Table, t:keywords
|
@float Table, t:keywords
|
||||||
@multitable @columnfractions .10 .9
|
@multitable @columnfractions .10 .9
|
||||||
|
@ -485,7 +487,7 @@ object.
|
||||||
|
|
||||||
@var{C} is a class as defined in @ref{Defining Classes}. @var{base} may be any
|
@var{C} is a class as defined in @ref{Defining Classes}. @var{base} may be any
|
||||||
class or object containing enumerable members. @var{dfn} is to be a definition
|
class or object containing enumerable members. @var{dfn} is to be a definition
|
||||||
object as defined in @ref{Defining Classes}.
|
object as defined in @ref{dfnobj,,Definition Object}.
|
||||||
|
|
||||||
Provided @var{C} or @var{base} to satisfy requirements of @var{C}, class
|
Provided @var{C} or @var{base} to satisfy requirements of @var{C}, class
|
||||||
@var{C'} will be defined as a @dfn{subtype} (child) of @dfn{supertype} (parent)
|
@var{C'} will be defined as a @dfn{subtype} (child) of @dfn{supertype} (parent)
|
||||||
|
@ -517,16 +519,18 @@ For any positive condition @var{o\_n} where member @var{n} is defined as a
|
||||||
One of the following conditions must always be true:
|
One of the following conditions must always be true:
|
||||||
@itemize
|
@itemize
|
||||||
@item
|
@item
|
||||||
@var{dfn\_n\^C} is declared with the @code{virtual} keyword and
|
@var{dfn\_n\^C} is declared with the @ref{mkeywords,,@code{virtual}} keyword
|
||||||
@var{dfn\_n\^C'} is declared with the @code{override} keyword.
|
and @var{dfn\_n\^C'} is declared with the @ref{mkeywords,,@code{override}}
|
||||||
|
keyword.
|
||||||
@itemize
|
@itemize
|
||||||
@item
|
@item
|
||||||
Note that @var{dfn\_n\^C'} will not become @code{virtual} by default (unlike
|
Note that @var{dfn\_n\^C'} will not become @ref{mkeywords,,@code{virtual}}
|
||||||
languages such as C++); they must be explicitly declared as such.
|
by default (unlike languages such as C++); they must be explicitly declared
|
||||||
|
as such.
|
||||||
@end itemize
|
@end itemize
|
||||||
@item
|
@item
|
||||||
@var{dfn\_n\^C} is declared with the @code{abstract} keyword and
|
@var{dfn\_n\^C} is declared with the @ref{mkeywords,,@code{abstract}} keyword and
|
||||||
@var{dfn\_n\^C'} omits the @code{override} keywords.
|
@var{dfn\_n\^C'} omits the @ref{mkeywords,,@code{override}} keywords.
|
||||||
@end itemize
|
@end itemize
|
||||||
@item
|
@item
|
||||||
The argument count of method @var{dfn\_n\^C'} must be >= the argument count of
|
The argument count of method @var{dfn\_n\^C'} must be >= the argument count of
|
||||||
|
@ -536,14 +540,15 @@ A reference to super method @var{dfn\_n\^C} will be preserved and assigned to
|
||||||
@samp{this.__super} within context of method @var{dfn\_n\^C'}.
|
@samp{this.__super} within context of method @var{dfn\_n\^C'}.
|
||||||
@item
|
@item
|
||||||
A method is said to be @dfn{concrete} when it provides a definition and
|
A method is said to be @dfn{concrete} when it provides a definition and
|
||||||
@dfn{abstract} when it provides only a declaration.
|
@dfn{abstract} when it provides only a declaration
|
||||||
|
(@pxref{dfnobj,,Definition Object}).
|
||||||
@itemize
|
@itemize
|
||||||
@item
|
@item
|
||||||
Any method @var{n} such that @var{dfn\_n\^C} is declared @code{abstract} may
|
Any method @var{n} such that @var{dfn\_n\^C} is declared @code{abstract} may
|
||||||
be overridden by a concrete or abstract method @var{dfn\_n\^C'}.
|
be overridden by a concrete or abstract method @var{dfn\_n\^C'}.
|
||||||
@item
|
@item
|
||||||
A method @var{n} may @emph{not} be declared @code{abstract} if @var{dfn\_n\^C}
|
A method @var{n} may @emph{not} be declared @ref{mkeywords,,@code{abstract}}
|
||||||
is concrete.
|
if @var{dfn\_n\^C} is concrete.
|
||||||
@end itemize
|
@end itemize
|
||||||
@item
|
@item
|
||||||
Member @var{dfn\_n\^C} must be a method.
|
Member @var{dfn\_n\^C} must be a method.
|
||||||
|
|
Loading…
Reference in New Issue