Package hydra.ext.python.serde
Interface Serde
public interface Serde
Python serializer: converts Python AST to concrete syntax
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic Exprstatic Exprstatic Exprstatic ExprencodeArgs(Args args) static Exprstatic Exprstatic ExprencodeAtom(Atom atom) static ExprencodeAttribute(Attribute attr) static Exprstatic ExprencodeBitwiseAnd(BitwiseAnd band) static ExprencodeBitwiseOr(BitwiseOr bor) static ExprencodeBitwiseXor(BitwiseXor bxor) static ExprencodeBlock(Block b) static Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic ExprencodeDecorators(Decorators decs) static ExprencodeDict(Dict d) static Exprstatic Exprstatic Exprstatic Exprstatic ExprencodeExpression(Expression expr) static Exprstatic Exprstatic Exprstatic ExprencodeGroup(Group g) static ExprencodeGuard(Guard g) static Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic ExprencodeKvpair(Kvpair kv) static ExprencodeKwarg(Kwarg k) static Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic ExprencodeList(List l) static Exprstatic ExprencodeModule(Module mod) static ExprencodeName(Name n) static Exprstatic Exprstatic ExprencodeNumber(Number_ num) static Exprstatic ExprencodeParam(Param p) static Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic ExprencodePosArg(PosArg pa) static Exprstatic ExprencodePower(Power p) static Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic ExprencodeSlice(Slice s) static Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic ExprencodeStatement(Statement stmt) static Exprstatic Exprstatic Exprstatic Exprstatic ExprencodeTerm(Term t) static Exprstatic Exprstatic ExprencodeTuple(Tuple t) static Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic Exprstatic StringescapePythonString(Boolean doubleQuoted, String s) static StringtoPythonComments(String doc_)
-
Method Details
-
encodeAnnotatedRhs
-
encodeAnnotatedStatement
-
encodeAnnotation
-
encodeArgs
-
encodeAssignment
-
encodeAssignmentExpression
-
encodeAtom
-
encodeAttribute
-
encodeAwaitPrimary
-
encodeBitwiseAnd
-
encodeBitwiseOr
-
encodeBitwiseXor
-
encodeBlock
-
encodeCapturePattern
-
encodeCaseBlock
-
encodeClassDefinition
-
encodeClassPattern
-
encodeClosedPattern
-
encodeComparison
-
encodeConditional
-
encodeCompoundStatement
-
encodeConjunction
-
encodeDecorators
-
encodeDict
-
encodeDisjunction
-
encodeDottedAsName
-
encodeDottedName
-
encodeDoubleStarredKvpair
-
encodeExpression
-
encodeFactor
-
encodeFunctionDefRaw
-
encodeFunctionDefinition
-
encodeGroup
-
encodeGuard
-
encodeImportFrom
-
encodeImportFromAsName
-
encodeImportFromTargets
-
encodeImportName
-
encodeImportStatement
-
encodeInversion
-
encodeKeywordPattern
-
encodeKeywordPatterns
-
encodeKvpair
-
encodeKwarg
-
encodeKwargOrDoubleStarred
-
encodeKwargOrStarred
-
encodeLambda
-
encodeLambdaParamNoDefault
-
encodeLambdaParameters
-
encodeLambdaStarEtc
-
encodeList
-
encodeMatchStatement
-
encodeModule
-
encodeName
-
encodeNamedExpression
-
encodeNameOrAttribute
-
encodeNumber
-
encodeOrPattern
-
encodeParam
-
encodeParamNoDefault
-
encodeParamNoDefaultParameters
-
encodeParameters
-
encodePattern
-
encodePatternCaptureTarget
-
encodePatterns
-
encodePosArg
-
encodePositionalPatterns
-
encodePower
-
encodePrimary
-
encodePrimaryRhs
-
encodePrimaryWithRhs
-
encodeRaiseExpression
-
encodeRaiseStatement
-
encodeRelativeImportPrefix
-
encodeReturnStatement
-
encodeSet
-
encodeShiftExpression
-
encodeSimpleStatement
-
encodeSimpleTypeParameter
-
encodeSingleTarget
-
encodeSlice
-
encodeSliceOrStarredExpression
-
encodeSlices
-
encodeStarAtom
-
encodeStarExpression
-
encodeStarNamedExpression
-
encodeStarTarget
-
encodeStarredExpression
-
encodeStatement
-
encodeString
-
encodeSubjectExpression
-
encodeSum
-
encodeTerm
-
encodeTargetWithStarAtom
-
encodeTPrimaryAndName
-
encodeTPrimary
-
encodeTuple
-
encodeTypeAlias
-
encodeTypeParameter
-
encodeTypedAssignment
-
encodeUntypedAssignment
-
encodeValuePattern
-
encodeWhileStatement
-
escapePythonString
-
toPythonComments
-