kr.motd.maven.sphinx.dist.jinja2.meta$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__ 5
jinja2.meta
~~~~~~~~~~~
This module implements various functions that exposes information about
templates that might be interesting for various kinds of applications.
:copyright: (c) 2017 by the Jinja Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
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 java/lang/String nodes org/python/core/imp
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject;
! setlocal #
$ jinja2.compiler &
CodeGenerator ( jinja2._compat * string_types , iteritems . org/python/core/PyObject 0 getname .(Ljava/lang/String;)Lorg/python/core/PyObject; 2 3
4 TrackingCodeGenerator 6 TrackingCodeGenerator$1
__module__ 9 __name__ ; .We abuse the code generator for introspection. = org/python/core/Py ? EmptyObjects [Lorg/python/core/PyObject; A B @ C org/python/core/PyFunction E f_globals Lorg/python/core/PyObject; G H I
__init__$2 getglobal L 3
M __init__ O __getattr__ Q 3
1 R getlocal (I)Lorg/python/core/PyObject; T U
V X __call__ ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; Z [
1 \ set ^ 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; Z `
1 a undeclared_identifiers c __setattr__ e
1 f f_lasti I h i j None l H @ m jinja2/meta$py o Lorg/python/core/PyCode; K q p r j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V t u
F v write$3 Don't write. y x q p { write }
enter_frame$4 $Remember all undeclared identifiers. ? enter_frame ? m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; Z ?
1 ? symbols ? loads ? S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; Z ?
1 ? __iter__ ()Lorg/python/core/PyObject; ? ?
1 ? unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject; ? ?
@ ? (ILorg/python/core/PyObject;)V # ?
? resolve ? _eq 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
1 ? __nonzero__ ()Z ? ?
1 ? add ? __iternext__ ? ?
1 ? q p ? getf_locals ? ?
? 8 q p ? makeClass a(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject; ? ?
@ ? java/util/Arrays ? fill (([Ljava/lang/Object;Ljava/lang/Object;)V ? ?
? ? find_undeclared_variables$5Returns a set of all variables in the AST that will be looked up from
the context at runtime. Because at compile time it's not known which
variables will be used depending on the path the execution takes at
runtime, all variables are returned.
>>> from jinja2 import Environment, meta
>>> env = Environment()
>>> ast = env.parse('{% set foo = 42 %}{{ bar + foo }}')
>>> meta.find_undeclared_variables(ast) == set(['bar'])
True
.. admonition:: Implementation
Internally the code generator is used for finding undeclared variables.
This is good to know because the code generator might raise a
:exc:`TemplateAssertionError` during compilation and as a matter of
fact this function can currently raise that exception as well.
? environment ? visit ? ? q p ? find_undeclared_variables ? find_referenced_templates$6bFinds all the referenced templates from the AST. This will return an
iterator over all the hardcoded template extensions, inclusions and
imports. If dynamic inheritance or inclusion is used, `None` will be
yielded.
>>> from jinja2 import Environment, meta
>>> env = Environment()
>>> ast = env.parse('{% extends "layout.html" %}{% include helper %}')
>>> list(meta.find_referenced_templates(ast))
['layout.html', None]
This function is useful for dependency tracking. For example if you want
to rebuild parts of the website after a layout template has changed.
? find_all ? Extends ?
FromImport ? Import ? Include ? org/python/core/PyTuple ? ([Lorg/python/core/PyObject;)V t ?
? ?
isinstance ? template ? Const ? __not__ ? ?
1 ? Tuple ? List ? items ? value ? java/lang/Object ?
f_savedlocals [Ljava/lang/Object; ? ? ? getGeneratorInput ()Ljava/lang/Object; ? ?
? org/python/core/PyException ? java/lang/Throwable ? l tuple ? list ? ? q p ? find_referenced_templates ? (Ljava/lang/String;)V org/python/core/PyFunctionTable ? ()V t
self Ljinja2/meta$py; p 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;
@ q p x frame _ action param ast codegen node
template_name! getMain ()Lorg/python/core/PyCode; main ([Ljava/lang/String;)V o t ?
p(#$
p* org/python/core/CodeLoader, createSimpleBootstrap 9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;./
-0 runMain 5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)V23
@4 getCodeBootstrap !()Lorg/python/core/CodeBootstrap; #org/python/core/PyRunnableBootstrap8 )getFilenameConstructorReflectionBootstrap 2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap;:;
9<
call_function S(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
p@ 8
pB K
pD x
pF
pH ?
pJ ?
pL org/python/core/PyRunnableN Lorg/python/compiler/APIVersion; % Lorg/python/compiler/MTime; `9?h Lorg/python/compiler/Filename; U/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/jinja2/meta.py org/python/core/ThreadStateW ? B Code LineNumberTable StackMap
SourceFile RuntimeVisibleAnnotations ! p O q 8 q K q x q q ? q ? q [ a 1+? ? +? ? W+? ? N-S-+? "N-2:+? %:+
? '? N-)S-+? "N-2:+)? %:+? +? N--S-/S-+? "N-2:+-? %:-2:+/? %:+? ? 1N+)? 5-__S7-? ?? ?:+7? %:-? ?+$? ? DN? FY+? J-? ??? ? wN+?-? %N+