Documentation of 'com.ziclix.python.sql.util.PyArgParser' Java class
PyArgParser
com.ziclix.python.sql.util

Class PyArgParser



  • public class PyArgParser
    extends java.lang.Object
    Parse the args and kws for a method call.
    • Constructor Summary

      Constructors 
      Constructor and Description
      PyArgParser(PyObject[] args, java.lang.String[] kws)
      Construct a parser with the arguments and keywords.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      PyObject arg(int index)
      Return the argument at the given index, raise an IndexError if out of range.
      PyObject arg(int index, PyObject def)
      Return the argument at the given index, or the default if the index is out of range.
      boolean hasKw(java.lang.String kw)
      Does the keyword exist?
      PyObject kw(java.lang.String kw)
      Return the value for the keyword, raise a KeyError if the keyword does not exist.
      PyObject kw(java.lang.String kw, PyObject def)
      Return the value for the keyword, return the default if the keyword does not exist.
      java.lang.String[] kws()
      Get the array of keywords.
      int numArg()
      Get the number of arguments.
      int numKw()
      How many keywords?
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PyArgParser

        public PyArgParser(PyObject[] args,
                           java.lang.String[] kws)
        Construct a parser with the arguments and keywords.
    • Method Detail

      • numKw

        public int numKw()
        How many keywords?
      • hasKw

        public boolean hasKw(java.lang.String kw)
        Does the keyword exist?
      • kw

        public PyObject kw(java.lang.String kw)
        Return the value for the keyword, raise a KeyError if the keyword does not exist.
      • kw

        public PyObject kw(java.lang.String kw,
                           PyObject def)
        Return the value for the keyword, return the default if the keyword does not exist.
      • kws

        public java.lang.String[] kws()
        Get the array of keywords.
      • numArg

        public int numArg()
        Get the number of arguments.
      • arg

        public PyObject arg(int index)
        Return the argument at the given index, raise an IndexError if out of range.
      • arg

        public PyObject arg(int index,
                            PyObject def)
        Return the argument at the given index, or the default if the index is out of range.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.