Class ASTParser
- java.lang.Object
-
- io.github.danielnaczo.python3parser.utilities.ASTParser
-
public class ASTParser extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ASTParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExpressionModcloneExpressionMod(ExpressionMod ast)static InteractivecloneInteractive(Interactive ast)static ModulecloneModule(Module ast)static ExpressionModparseExpressionModWithCode(java.lang.String python3Code)static ExpressionModparseExpressionModWithFile(java.lang.String pathToPython3File)static InteractiveparseInteractiveWithCode(java.lang.String python3Code)static InteractiveparseInteractiveWithFile(java.lang.String pathToPython3File)static ModuleparseModuleWithCode(java.lang.String python3Code)static ModuleparseModuleWithFile(java.lang.String pathToPython3File)
-
-
-
Method Detail
-
parseModuleWithCode
public static Module parseModuleWithCode(java.lang.String python3Code)
-
parseExpressionModWithCode
public static ExpressionMod parseExpressionModWithCode(java.lang.String python3Code)
-
parseInteractiveWithCode
public static Interactive parseInteractiveWithCode(java.lang.String python3Code)
-
parseModuleWithFile
public static Module parseModuleWithFile(java.lang.String pathToPython3File) throws java.lang.Exception
- Throws:
java.lang.Exception
-
parseExpressionModWithFile
public static ExpressionMod parseExpressionModWithFile(java.lang.String pathToPython3File) throws java.lang.Exception
- Throws:
java.lang.Exception
-
parseInteractiveWithFile
public static Interactive parseInteractiveWithFile(java.lang.String pathToPython3File) throws java.lang.Exception
- Throws:
java.lang.Exception
-
cloneExpressionMod
public static ExpressionMod cloneExpressionMod(ExpressionMod ast)
-
cloneInteractive
public static Interactive cloneInteractive(Interactive ast)
-
-