org.python.antlr.adapter
Class AstAdapters
- java.lang.Object
-
- org.python.antlr.adapter.AstAdapters
-
public class AstAdapters extends java.lang.ObjectAstAdapter turns Python and Java objects into ast nodes.
-
-
Field Summary
Fields Modifier and Type Field and Description static AliasAdapteraliasAdapterstatic CmpopAdaptercmpopAdapterstatic ComprehensionAdaptercomprehensionAdapterstatic ExcepthandlerAdapterexcepthandlerAdapterstatic ExprAdapterexprAdapterstatic IdentifierAdapteridentifierAdapterstatic KeywordAdapterkeywordAdapterstatic SliceAdaptersliceAdapterstatic StmtAdapterstmtAdapter
-
Constructor Summary
Constructors Constructor and Description AstAdapters()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static PyObjectboolop2py(boolopType o)static PyObjectcmpop2py(cmpopType o)static PyObjectexpr_context2py(expr_contextType o)static PyObjectoperator2py(operatorType o)static java.util.List<alias>py2aliasList(PyObject o)static argumentspy2arguments(java.lang.Object o)static java.lang.Booleanpy2bool(java.lang.Object o)static boolopTypepy2boolop(java.lang.Object o)static java.util.List<cmpopType>py2cmpopList(PyObject o)static java.util.List<comprehension>py2comprehensionList(PyObject o)static java.util.List<excepthandler>py2excepthandlerList(PyObject o)static expr_contextTypepy2expr_context(java.lang.Object o)static exprpy2expr(PyObject o)static java.util.List<expr>py2exprList(PyObject o)static java.lang.Stringpy2identifier(PyObject o)static java.util.List<java.lang.String>py2identifierList(PyObject o)static java.lang.Integerpy2int(java.lang.Object o)static java.util.List<keyword>py2keywordList(PyObject o)static java.lang.Objectpy2object(java.lang.Object o)static operatorTypepy2operator(java.lang.Object o)static slicepy2slice(PyObject o)static java.util.List<slice>py2sliceList(PyObject o)static stmtpy2stmt(PyObject o)static java.util.List<stmt>py2stmtList(PyObject o)static java.lang.Objectpy2string(java.lang.Object o)static unaryopTypepy2unaryop(java.lang.Object o)static PyObjectunaryop2py(unaryopType o)
-
-
-
Field Detail
-
aliasAdapter
public static final AliasAdapter aliasAdapter
-
cmpopAdapter
public static final CmpopAdapter cmpopAdapter
-
comprehensionAdapter
public static final ComprehensionAdapter comprehensionAdapter
-
excepthandlerAdapter
public static final ExcepthandlerAdapter excepthandlerAdapter
-
exprAdapter
public static final ExprAdapter exprAdapter
-
identifierAdapter
public static final IdentifierAdapter identifierAdapter
-
keywordAdapter
public static final KeywordAdapter keywordAdapter
-
sliceAdapter
public static final SliceAdapter sliceAdapter
-
stmtAdapter
public static final StmtAdapter stmtAdapter
-
-
Method Detail
-
py2comprehensionList
public static java.util.List<comprehension> py2comprehensionList(PyObject o)
-
py2excepthandlerList
public static java.util.List<excepthandler> py2excepthandlerList(PyObject o)
-
py2identifierList
public static java.util.List<java.lang.String> py2identifierList(PyObject o)
-
py2int
public static java.lang.Integer py2int(java.lang.Object o)
-
py2identifier
public static java.lang.String py2identifier(PyObject o)
-
py2expr_context
public static expr_contextType py2expr_context(java.lang.Object o)
-
py2string
public static java.lang.Object py2string(java.lang.Object o)
-
py2operator
public static operatorType py2operator(java.lang.Object o)
-
operator2py
public static PyObject operator2py(operatorType o)
-
boolop2py
public static PyObject boolop2py(boolopType o)
-
unaryop2py
public static PyObject unaryop2py(unaryopType o)
-
expr_context2py
public static PyObject expr_context2py(expr_contextType o)
-
py2boolop
public static boolopType py2boolop(java.lang.Object o)
-
py2arguments
public static arguments py2arguments(java.lang.Object o)
-
py2object
public static java.lang.Object py2object(java.lang.Object o)
-
py2bool
public static java.lang.Boolean py2bool(java.lang.Object o)
-
py2unaryop
public static unaryopType py2unaryop(java.lang.Object o)
-
-
DMelt 3.0 © DataMelt by jWork.ORG