kr.motd.maven.sphinx.dist.jinja2.compiler$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__ ?
jinja2.compiler
~~~~~~~~~~~~~~~
Compiles nodes into python code.
:copyright: (c) 2017 by the Jinja Team.
: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
itertools java/lang/String chain org/python/core/imp
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject;
! setlocal #
$ copy & deepcopy ( keyword * iskeyword , is_python_keyword . functools 0 update_wrapper 2 jinja2 4 nodes 6 jinja2.nodes 8 EvalContext : jinja2.visitor < NodeVisitor > jinja2.optimizer @ Optimizer B jinja2.exceptions D TemplateAssertionError F jinja2.utils H Markup J concat L escape N jinja2._compat P
range_type R text_type T string_types V iteritems X NativeStringIO Z imap \ izip ^ jinja2.idtracking ` Symbols b VAR_LOAD_PARAMETER d VAR_LOAD_RESOLVE f VAR_LOAD_ALIAS h VAR_LOAD_UNDEFINED j org/python/core/PyDictionary l org/python/core/PyObject n eq p == r ne t != v gt x > z gteq | >= ~ lt ? < ? lteq ? <= ? in ? notin ? not in ? ([Lorg/python/core/PyObject;)V ? ?
m ? operators ? hasattr ? getname .(Ljava/lang/String;)Lorg/python/core/PyObject; ? ?
? dict ? __call__ m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
o ? __nonzero__ ()Z ? ?
o ? dict_item_iter ? items ? org/python/core/PyList ? division ?
? ?
code_features ? %from __future__ import generator_stop ? org/python/core/Py ? exec Q(Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)V ? ?
? ? append ? __getattr__ ? ?
o ? generator_stop ? S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
o ? setException M(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException; ? ?
? ? SyntaxError ? org/python/core/PyException ? match (Lorg/python/core/PyObject;)Z ? ?
? ? java/lang/Throwable ? def f(): yield from x() ? False ? supports_yield_from ? True ? EmptyObjects [Lorg/python/core/PyObject; ? ? ? ? org/python/core/PyFunction ? f_globals Lorg/python/core/PyObject; ? ? ? optimizeconst$1 to_cell (II)V ? ?
?
new_func$2 getlocal (I)Lorg/python/core/PyObject; ? ?
? optimized ? eval_ctx ? volatile ? __not__ ()Lorg/python/core/PyObject; ? ?
o ? optimizer ? visit ? (ILorg/python/core/PyObject;)V # ?
? _ne 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
o ? f_lasti I getderef ?
_callextra ~([Lorg/python/core/PyObject;[Ljava/lang/String;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;
o jinja2/compiler$py Lorg/python/core/PyCode; ?
getclosure ?
?(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;[Lorg/python/core/PyObject;)V ?
? getglobal ?
?
j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V ?
?
optimizeconst None
generate$3 +Generate the python source for a node tree.#
isinstance% Template' TypeError) Can't compile non template nodes+
makeException 9(Lorg/python/core/PyObject;)Lorg/python/core/PyException;-.
?/ code_generator_class1 T(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ?3
o4 _is6 ?
o7 stream9 getvalue; 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; ?=
o> ? ?@"
B generateD has_safe_repr$4 )Does the node have a safe representation?G NotImplementedI EllipsisK typeM org/python/core/PyTupleO boolQ intS floatU complexW
P ? _addZ ?
o[ _in] ?
o^ tuple` listb setd frozensetf __iter__h ?
oi
has_safe_reprk __iternext__m ?
on unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject;pq
?rF
t find_undeclared$5 ?Check if the names passed are accessed undeclared. The return value
is a set of all the undeclared names from the sequence of names found.
w UndeclaredNameVisitory VisitorExit{
undeclared}v
find_undeclared? object? MacroRef?
MacroRef$6
__module__? __name__?
__init__$7 node? __setattr__?
o? accesses_caller? accesses_kwargs? accesses_varargs??
? __init__? getf_locals? ?
??
? 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??
?? Frame? Frame$8 &Holds compile time information for us.?
__init__$9 symbols? level? g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; ??
o? toplevel? rootlevel? require_output_check? buffer? block? parent? _isnot? ?
o??
? copy$10 !Create a copy of the current one.? __new__? __class__? __dict__? update??
? inner$11 Return an inner frame.?
newInteger (I)Lorg/python/core/PyInteger;??
???
? inner? soft$12Return a soft frame. A soft frame may not be modified as
standalone thing as it shares the resources with the frame it
was created of, but it's not a rootlevel frame any longer.
This is only used to implement if-statements.
??
? soft? __copy__??
? RuntimeError? VisitorExit$13 ?Exception used by the `UndeclaredNameVisitor` to signal a stop.??
? DependencyFinderVisitor? DependencyFinderVisitor$14 .A visitor that collects filter and test calls.? __init__$15 filters? tests??
? visit_Filter$16
generic_visit add name?
visit_Filter
visit_Test$17
visit_Test
visit_Block$18 Stop visiting at blocks.
visit_Block?
UndeclaredNameVisitor$19 ?A visitor that checks if a name is accessed without being
declared. This is different from the frame visitor as it will
not stop at closure frames.
__init__$20 names
visit_Name$21 ctx! load# _eq% ?
o& discard(
*
visit_Name, visit_Block$22 Stop visiting a blocks./.
1
3 Exception5 CompilerExit7 CompilerExit$23 ?Raised if the compiler encountered a situation where it just
doesn't make sense to further process the code. Any block that
raises such an exception is not further processed.
:9
<
CodeGenerator> CodeGenerator$24 __init__$25 environmentB filenameD created_block_contextF
defer_initH import_aliasesJ blocksL extends_so_farN has_known_extendsP code_linenoR
debug_infoT _write_debug_infoV
_new_linesX
_last_lineZ _first_write\ _last_identifier^ _indentation`
_assign_stackb _param_def_blockd contextf _context_reference_stackhA
j fail$26 *Fail with a :exc:`TemplateAssertionError`.m ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ?o
opl
r failt temporary_identifier$27 Get a new unique identifier.w _iaddy ?
oz t_%d| _mod~ ?
ov
? temporary_identifier? buffer$28 7Enable buffering for the frame from that point onwards.? writeline? %s = []??
? return_buffer_contents$29 (Return the buffer contents of the frame.? if context.eval_ctx.autoescape:? indent? return Markup(concat(%s))? outdent? else:? return concat(%s)?
autoescape??
? return_buffer_contents? indent$30 Indent by one.??
?
outdent$31 Outdent by step.? _isub? ?
o??
? start_write$32 %Yield or write into the frame buffer.? yield ?
%s.append(??
? start_write? end_write$33 1End the writing process started by `start_write`.? write? )??
? end_write? simple_write$34 4Simple shortcut for start_write + write + end_write.??
? simple_write?
blockvisit$35 ?Visit a list of nodes as block in a frame. If the current frame
is no buffer a dummy ``if 0: yield None`` is written automatically.
? pass??
?
blockvisit? write$36 &Write a string into the output stream.?
? _mul? ?
o? ??
? writeline$37 !Combination of newline and write.? newline??
?
newline$38 /Add one or more newlines before the next write.? max? lineno??
? signature$39,Writes a function call to the stream for the current node.
A leading comma is added automatically. The extra keyword
arguments may not include python keywords otherwise a syntax
error could occour. The extra keyword arguments should be given
as python dict.
? f$40 key? java/lang/Object?
f_savedlocals [Ljava/lang/Object;?? ? getGeneratorInput ()Ljava/lang/Object;??
?
kwargs args , , %s=%s
dyn_args , *
dyn_kwargs
, **dict({ , **{ %r: value %r: %s, }, ** } , ** ?
" signature$ pull_dependencies$41 Pull all the dependencies.' getattr) _notin+ ?
o, __setitem__ 7(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)V./
o0 %s = environment.%s[%r]2 __getitem__4 ?
o5&
7 pull_dependencies9 enter_frame$42 loads< %s = %s(%r)> get_resolve_func@ %s = %sB NotImplementedErrorD unknown load instructionF %s = missingH = J joinL;
N enter_frameP leave_frame$43R
S leave_frameU func$44 is_asyncX async def %sZ def %s\W
^ func`
macro_body$45 /Dump the function def of a macro or call block.c analyze_nodee enumerateg calleri varargsk refm bodyo defaultsq lens _subu ?
ov
IndexErrorx hWhen defining macros or call blocks the special "caller" argument must be omitted or be given a default.z declare_parameter| %s(%s):~ macro? push_parameter_definitions? if %s is missing:? %s = undefined(%r, name=%r)? parameter %r was not provided? %s = ? mark_parameter_stored? pop_parameter_definitions? force_unescaped? with_python_scope?b
?
macro_body? macro_def$46