kr.motd.maven.sphinx.dist.docutils.parsers.rst.roles$py.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sphinx-maven-plugin Show documentation
Show all versions of sphinx-maven-plugin Show documentation
Maven plugin that creates the site with Sphinx
???? 1? f$0 R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; __doc__
This module defines standard interpreted text role functions, a registry for
interpreted text roles, and an API for adding to and retrieving from the
registry.
The interface for interpreted role functions is as follows::
def role_fn(name, rawtext, text, lineno, inliner,
options={}, content=[]):
code...
# Set function attributes for customization:
role_fn.options = ...
role_fn.content = ...
Parameters:
- ``name`` is the local name of the interpreted text role, the role name
actually used in the document.
- ``rawtext`` is a string containing the entire interpreted text construct.
Return it as a ``problematic`` node linked to a system message if there is a
problem.
- ``text`` is the interpreted text content, with backslash escapes converted
to nulls (``??``).
- ``lineno`` is the line number where the interpreted text beings.
- ``inliner`` is the Inliner object that called the role function.
It defines the following useful attributes: ``reporter``,
``problematic``, ``memo``, ``parent``, ``document``.
- ``options``: A dictionary of directive options for customization, to be
interpreted by the role function. Used for additional attributes for the
generated elements and other functionality.
- ``content``: A list of strings, the directive content for customization
("role" directive). To be interpreted by the role function.
Function attributes for customization, interpreted by the "role" directive:
- ``options``: A dictionary, mapping known option names to conversion
functions such as `int` or `float`. ``None`` or an empty dict implies no
options to parse. Several directive option conversion functions are defined
in the `directives` module.
All role functions implicitly support the "class" option, unless disabled
with an explicit ``{'class': None}``.
- ``content``: A boolean; true if content is allowed. Client code must handle
the case where content is required but not supplied (an empty content list
will be supplied).
Note that unlike directives, the "arguments" function attribute is not
supported for role customization. Directive arguments are handled by the
"role" directive itself.
Interpreted role functions return a tuple of two values:
- A list of nodes which will be inserted into the document tree at the
point where the interpreted role was encountered (can be an empty
list).
- A list of system messages, which will be inserted into the document tree
immediately after the end of the current inline block (can also be empty).
org/python/core/PyString fromInterned .(Ljava/lang/String;)Lorg/python/core/PyString;
org/python/core/PyFrame
setglobal /(Ljava/lang/String;Lorg/python/core/PyObject;)V
setline (I)V
reStructuredText
__docformat__ setlocal
docutils java/lang/String nodes " utils $ org/python/core/imp &
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject; ( )
' * docutils.parsers.rst ,
directives . docutils.parsers.rst.languages 0 en 2 _fallback_language_module 4 docutils.utils.code_analyzer 6 Lexer 8
LexerError : title-reference < DEFAULT_INTERPRETED_ROLE > ?
The canonical name of the default interpreted role. This role is used
when no role is specified for a piece of interpreted text.
@ org/python/core/PyDictionary B org/python/core/Py D EmptyObjects [Lorg/python/core/PyObject; F G E H ([Lorg/python/core/PyObject;)V J K
C L _role_registry N }Mapping of canonical role names to role functions. Language-dependent role
names are defined in the ``language`` subpackage. P _roles R UMapping of local or language-dependent interpreted text role names to role
functions. T org/python/core/PyFunction V f_globals Lorg/python/core/PyObject; X Y Z role$1.
Locate and return a role function from its language-dependent name, along
with a list of system messages. If the role is not found in the current
language, check English. Return a 2-tuple: role function (``None`` if the
named role cannot be found) and a list of system messages.
] getlocal (I)Lorg/python/core/PyObject; _ `
a lower c org/python/core/PyObject e __getattr__ .(Ljava/lang/String;)Lorg/python/core/PyObject; g h
f i __call__ 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; k l
f m (ILorg/python/core/PyObject;)V o
p org/python/core/PyList r
s L getglobal u h
v _in 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; x y
f z __nonzero__ ()Z | }
f ~ org/python/core/PyTuple ? __getitem__ ? y
f ?
? L f_lasti I ? ? ? None ? roles ? setException M(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException; ? ?
E ? AttributeError ? org/python/core/PyException ? match (Lorg/python/core/PyObject;)Z ? ?
? ? value ? Y ? ? append ? :Problem retrieving role entry from language module %r: %s. ? _mod ? y
f ? S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; k ?
f ? KeyError ? &No role entry for "%s" in module "%s". ? __name__ ? java/lang/Throwable ? __not__ ()Lorg/python/core/PyObject; ? ?
f ? %Using English fallback for role "%s". ? #Trying "%s" as canonical role name. ? info ?
? join ? line ? g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; k ?
f ? register_local_role ? m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; k ?
f ? docutils/parsers/rst/roles$py ? Lorg/python/core/PyCode; \ ? ? ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V J ?
W ? role ? register_canonical_role$2 ?
Register an interpreted text role by its canonical name.
:Parameters:
- `name`: The canonical name of the interpreted role.
- `role_fn`: The role function. See the module docstring.
? set_implicit_options ? __setitem__ 7(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)V ? ?
f ? ? Y E ? ? ? ? ? register_canonical_role ? register_local_role$3 ?
Register an interpreted text role by its local or language-dependent name.
:Parameters:
- `name`: The local or language-dependent name of the interpreted role.
- `role_fn`: The role function. See the module docstring.
? ? ? ? ? set_implicit_options$4 ]
Add customization options to role functions, unless explicitly set or
disabled.
? hasattr ? options ? _is ? y
f ? class ? class_option ? __setattr__ ?
f ? _notin ? y
f ? ? ? ? ? register_generic_role$5 AFor roles which simply wrap a given `node_class` around the text. ? GenericRole ? ? ? ? register_generic_role
GenericRole$6
__module__ getname h
w
Generic interpreted text role, where the interpreted text is simply
wrapped with the provided node class.
__init__$7 name
node_class ? ? __init__
__call__$8 set_classes unescape
_callextra ~([Lorg/python/core/PyObject;[Ljava/lang/String;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;
f ? ? k getf_locals! ?
" ? ?$ makeClass a(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject;&'
E( java/util/Arrays* fill (([Ljava/lang/Object;Ljava/lang/Object;)V,-
+.
CustomRole0 CustomRole$9 4
Wrapper for custom interpreted text roles.
3 __init__$10 base_role6 content8 supplied_options: supplied_content<5 ? ?> __call__$11 copyA updateC listE _iaddG y
fH extendJ@ ? ?L2 ? ?N generic_custom_role$12 Q inlineSP ? ?U generic_custom_roleW abbreviationY acronym[ emphasis] literal_ stronga subscriptc superscripte title_referenceg pep_reference_role$13 intj
newInteger (I)Lorg/python/core/PyInteger;lm
En _ltp y
fq _gts y
ft
ValueErrorv
makeException 9(Lorg/python/core/PyObject;)Lorg/python/core/PyException;xy
Ez reporter| error~