kr.motd.maven.sphinx.dist.jinja2.visitor$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
???? 1I f$0 R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; __doc__ ?
jinja2.visitor
~~~~~~~~~~~~~~
This module implements a visitor for the nodes.
:copyright: (c) 2017 by the Jinja Team.
:license: BSD.
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
jinja2.nodes java/lang/String Node org/python/core/imp
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject;
! setlocal #
$ org/python/core/PyObject & object ( getname .(Ljava/lang/String;)Lorg/python/core/PyObject; * +
, NodeVisitor .
NodeVisitor$1
__module__ 1 __name__ 3Walks the abstract syntax tree and call visitor functions for every
node found. The visitor functions may return values which will be
forwarded by the `visit` method.
Per default the visitor functions for the nodes are ``'visit_'`` +
class name of the node. So a `TryFinally` node visit function would
be `visit_TryFinally`. This behavior can be changed by overriding
the `get_visitor` function. If no visitor function exists for a node
(return value `None`) the `generic_visit` visitor is used instead.
5 org/python/core/Py 7 EmptyObjects [Lorg/python/core/PyObject; 9 : 8 ; org/python/core/PyFunction = f_globals Lorg/python/core/PyObject; ? @ A
get_visitor$2 ?Return the visitor function for this node or `None` if no visitor
exists for this node. In that case the generic visit function is
used instead.
D visit_ F getlocal (I)Lorg/python/core/PyObject; H I
J __class__ L __getattr__ N +
' O _add 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; Q R
' S (ILorg/python/core/PyObject;)V # U
V getattr X getglobal Z +
[ None ] __call__ ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; _ `
' a f_lasti I c d e jinja2/visitor$py g Lorg/python/core/PyCode; C i h j j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V l m
> n get_visitor p visit$3
Visit a node. s S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; _ u
' v _isnot x R
' y __nonzero__ ()Z { |
' }
_callextra ~([Lorg/python/core/PyObject;[Ljava/lang/String;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ?
' ?
generic_visit ? r i h ? visit ? generic_visit$4 9Called if no explicit visitor function exists for a node. ? iter_child_nodes ? 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; _ ?
' ? __iter__ ()Lorg/python/core/PyObject; ? ?
' ? __iternext__ ? ?
' ? ] @ 8 ? ? i h ? getf_locals ? ?
? 0 i h ? makeClass a(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject; ? ?
8 ? java/util/Arrays ? fill (([Ljava/lang/Object;Ljava/lang/Object;)V ? ?
? ? NodeTransformer ? NodeTransformer$5?Walks the abstract syntax tree and allows modifications of nodes.
The `NodeTransformer` will walk the AST and use the return value of the
visitor functions to replace or remove the old node. If the return
value of the visitor function is `None` the node will be removed
from the previous location otherwise it's replaced with the return
value. The return value may be the original node in which case no
replacement takes place.
? generic_visit$6 iter_fields ? unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject; ? ?
8 ?
isinstance ? list ? m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; _ ?
' ? org/python/core/PyList ? ([Lorg/python/core/PyObject;)V l ?
? ? _is ? R
' ? __not__ ? ?
' ? extend ? append ? __setslice__ k(Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)V ? ?
' ? delattr ? setattr ? ? i h ? visit_list$7 {As transformers may return lists in some places this method
can be used to enforce a list as return value.
? ? i h ?
visit_list ? ? i h ? (Ljava/lang/String;)V org/python/core/PyFunctionTable ? ()V l ?
? ? self Ljinja2/visitor$py; ? ? h ? ? newCode ?(I[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZLorg/python/core/PyFunctionTable;I[Ljava/lang/String;[Ljava/lang/String;II)Lorg/python/core/PyCode; ? ?
8 ? i h ? ? node ? method ? args ? kwargs ? f ? field ? old_value ?
new_values value new_node rv getMain ()Lorg/python/core/PyCode; main ([Ljava/lang/String;)V g l ?
h
h org/python/core/CodeLoader createSimpleBootstrap 9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;
runMain 5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)V
8 getCodeBootstrap !()Lorg/python/core/CodeBootstrap; #org/python/core/PyRunnableBootstrap )getFilenameConstructorReflectionBootstrap 2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap; !
"
call_function S(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
h& 0
h( C
h* r
h, ?
h. ?
h0 ?
h2 ?
h4 org/python/core/PyRunnable6 Lorg/python/compiler/APIVersion; % Lorg/python/compiler/MTime; `9?h Lorg/python/compiler/Filename; X/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/jinja2/visitor.py org/python/core/ThreadState? [Ljava/lang/String;A : Code LineNumberTable StackMap
SourceFile RuntimeVisibleAnnotations ! h ? 7 ? ? i 0 i C i r i ? i ? i ? i ? i
D ? ?+? ? +
? ? W+? ? N-S-+? "N-2:+? %:+? ? 'N+)? --__S/-? ?? ?:+/? %:-? ?+/? ? 'N+/? --__S?-? ߸ ?:+?? %:-? ?+? f? ?? E
/ 0 D ? ?+2+4? -? %+6? ? %+? 6? W+? ?