kr.motd.maven.sphinx.dist.docutils.utils.code_analyzer$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__ @Lexical analysis of formal languages (i.e. code) using Pygments. 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
docutils java/lang/String ApplicationError org/python/core/imp
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject;
! setlocal #
$ pygments & importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject; ( )
* pygments.lexers , get_lexer_by_name . pygments.formatters.html 0 _get_ttype_class 2 True 4 getname .(Ljava/lang/String;)Lorg/python/core/PyObject; 6 7
8
with_pygments : org/python/core/Py < setException M(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException; > ?
= @ org/python/core/PyTuple B org/python/core/PyObject D ImportError F SyntaxError H ([Lorg/python/core/PyObject;)V J K
C L org/python/core/PyException N match (Lorg/python/core/PyObject;)Z P Q
O R False T java/lang/Throwable V org/python/core/PyList X token Z text \ ^
Y L unstyled_tokens a
LexerError c LexerError$1
__module__ f __name__ h getf_locals ()Lorg/python/core/PyObject; j k
l docutils/utils/code_analyzer$py n Lorg/python/core/PyCode; e p o q makeClass a(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject; s t
= u java/util/Arrays w fill (([Ljava/lang/Object;Ljava/lang/Object;)V y z
x { object } Lexer Lexer$2?Parse `code` lines and yield "classified" tokens.
Arguments
code -- string of source code to parse,
language -- formal language the code is written in,
tokennames -- either 'long', 'short', or '' (see below).
Merge subsequent tokens of the same token-type.
Iterating over an instance yields the tokens as ``(tokentype, value)``
tuples. The value of `tokennames` configures the naming of the tokentype:
'long': downcased full token type name,
'short': short name defined by pygments.token.STANDARD_TYPES
(= class argument used in pygments html output),
'none': skip lexical analysis.
? short ? org/python/core/PyFunction ? f_globals Lorg/python/core/PyObject; ? ? ?
__init__$3 E
Set up a lexical analyzer for `code` in `language`.
? getlocal (I)Lorg/python/core/PyObject; ? ?
? code ? __setattr__ ?
E ? language ?
tokennames ? None ? getglobal ? 7
? lexer ? _in 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
E ? __nonzero__ ()Z ? ?
E ? none ? _eq ? ?
E ? f_lasti I ? ? ? ? ? = ? __not__ ? k
E ? 0Cannot analyze code. Pygments package not found. ? __call__ S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
E ?
makeException 9(Lorg/python/core/PyObject;)Lorg/python/core/PyException; ? ?
= ? __getattr__ ? 7
E ? util ?
ClassNotFound ? 6Cannot analyze code. No Pygments lexer found for "%s". ? _mod ? ?
E ? ? p o ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V J ?
? ? __init__ ? EmptyObjects [Lorg/python/core/PyObject; ? ? = ? merge$4 rMerge subsequent tokens of same token-type.
Also strip the final newline (added by pygments).
? iter ? (ILorg/python/core/PyObject;)V # ?
? next ? 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; ? ?
E ? unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject; ? ?
= ? __iter__ ? k
E ? _is ? ?
E ? _iadd ? ?
E ? java/lang/Object ?
f_savedlocals [Ljava/lang/Object; ? ? ? getGeneratorInput ()Ljava/lang/Object; ? ?
? __iternext__ ? k
E ? endswith
newInteger (I)Lorg/python/core/PyInteger;
= __getslice__ j(Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;
E ? p o
merge
__iter__$5 7Parse self.code and yield "classified" tokens.
lex m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ?
E long str lower split .! ()V J#
Y$ append& _notin( ?
E) dellocal+
, p o. ? ? p o1 NumberLines3
NumberLines$6tInsert linenumber-tokens at the start of every code line.
Arguments
tokens -- iterable of ``(classes, value)`` tuples
startline -- first line number
endline -- last line number
Iterating over an instance yields the tokens with a
``(['ln'], '')`` token added for every code line.
Multi-line tokens are splitted.6
__init__$7 tokens9 startline; %%%dd = len? fmt_strA8 p oC
__iter__$8 lnF _addH ?
EI __getitem__K ?
ELE p oN5 p oP (Ljava/lang/String;)V org/python/core/PyFunctionTableS
T$ self !Ldocutils/utils/code_analyzer$py;VW oX Z 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;\]
=^ p o`V lasttypec lastvale ttypeg valuei tokentypek classesm _[102_23]o clsq endlines linenou linesw liney getMain ()Lorg/python/core/PyCode; main ([Ljava/lang/String;)V n JR
o?{|
o? org/python/core/CodeLoader? createSimpleBootstrap 9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;??
?? runMain 5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)V??
=? 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;
o? e
o? ?
o? ?
o? ?
o?
o?5
o?8
o?E
o? org/python/core/PyRunnable? Lorg/python/compiler/APIVersion; % Lorg/python/compiler/MTime; `9p? Lorg/python/compiler/Filename; f/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/docutils/utils/code_analyzer.py org/python/core/ThreadState? ? ? Code LineNumberTable StackMap
SourceFile RuntimeVisibleAnnotations ! oT ?
VW p e p ? p ? p ? p p 5 p 8 p E p ? e ?+? ? +? ? W+
? ? N-S-+? "N-2:+? %:+? '+? +N+'-? %N+
? -? N-/S-+? "N-2:+/? %:+? 1? N-3S-+? "N-2:+3? %:+? +5? 9N+;-? %N? J+? AN-? CY? EY+G? 9SY+I? 9S? M? S? +? +U? 9:+;? %:? -?+? ? YY? EY[? SY]? SY_? S? `N+b-? %N+? ? EN+? 9-__Sd-? r? v:+d? %:-? |+? ? EN+~? 9-__S?-?2? v:+?? %:-? |+j? ? EN+~? 9-__S4-?Q? v:+4? %:-? |+? ?? ?? ? ? ? W ? .
j? > ? o ?? W o ? O o ? O e ? / +g+i? 9? %+? +? m? ? ? ? ? ?+g+i? 9? %+?? ? %+.? ?? W+0? ? EN?? -__S? ?Y+? ?-? ??? ? ?N+?-? %N+H? ? ?N? ?Y+? ?-?ܸ ? ?N+-? %N+Z? ? ?N? ?Y+? ?-?/? ? ?N+0-? %N+? m? ? . 0 H Z ? ? 3 r+3? ?? W+4? +? ?N+? ??-? ?N+5? +? ?N+? ??-? ?N+6? +? ?N+? ??-? ?N+7? +?? ?N+? ??-? ?N+9? +? ?N? CY? EY_? SY]? S? M-_? ?NY? ?? W+? ?N?? -_? ?N? ?? +:? +? ?? ??+;? +;? ?? ?? ?? +