Gets the.

@param _printStmt the print stmt
@param _flags the flags
@return the prints the stmt
508933
public static PrintStmt get(final IPrintStatement<?> _printStmt,
                                final StmtFlag... _flags)
    {
        final PrintStmt ret = new PrintStmt(_flags);
        ret.setEQLStmt(_printStmt);
        return ret;
    }
28475
def _chk_flds_fmt(nt_fields, prtfmt):
    """"""
    fmtflds = get_fmtflds(prtfmt)
    missing_data = set(fmtflds).difference(set(nt_fields))
    # All data needed for print is present, return.
    if not missing_data:
        return
    #raise Exception('MISSING DATA({M}).'.format(M=" ".join(missing_data)))
    msg = ['CANNOT PRINT USING: "{PF}"'.format(PF=prtfmt.rstrip())]
    for fld in fmtflds:
        errmrk = "" if fld in nt_fields else "ERROR-->"
        msg.append("  {ERR:8} {FLD}".format(ERR=errmrk, FLD=fld))
    raise Exception('\n'.join(msg))
725348
public static Print print(final Instance... _instances)
    {
        return print(Arrays.stream(_instances)
                        .map(instance -> instance.getOid())
                        .toArray(String[]::new));
    }
1278477
PrintStream getPrintStream() {
    PrintStream result = (PrintStream) streams.get();
    return ((result == null) ? defaultPrintStream : result);
  }
411645
private int getFlags() {

        int flags = 0;
        if (m_hideLogin.getValue().booleanValue()) {
            flags += CmsOrganizationalUnit.FLAG_HIDE_LOGIN;
        }
        if (m_webuser.getValue().booleanValue()) {
            flags += CmsOrganizationalUnit.FLAG_WEBUSERS;
        }
        return flags;
    }
601572
public String getTagData(String strData, String strTag)
    {
        int iStartData = strData.indexOf('<' + strTag + '>');
        if (iStartData == -1)
            return null;
        iStartData = iStartData + strTag.length() + 2;
        int iEndData = strData.indexOf("</" + strTag + '>');
        if (iStartData == -1)
            return null;
        return strData.substring(iStartData, iEndData);
    }
913174
def get_pltpat(self, plt_ext="svg"):
        """"""
        if self.ntplt.desc == "":
            return ".".join(["{BASE}", plt_ext])
        return "".join(["{BASE}_", self.ntplt.desc, ".", plt_ext])
191325
public static String getXAResourceEndFlagString(int flag) {
        switch (flag) {
            case XAResource.TMFAIL:
                return "TMFAIL (" + flag + ')'; 

            case XAResource.TMSUCCESS:
                return "TMSUCCESS (" + flag + ')'; 

            case XAResource.TMSUSPEND:
                return "TMSUSPEND (" + flag + ')'; 
        }

        return "UNKNOWN XA RESOURCE END FLAG (" + flag + ')'; 
    }
993162
public static String print(final Literal literal) {
        return literal.match(new Literal.MatchBlock<String>() {
            @Override
            public String _case(StringLiteral x) {
                return x.content;
            }

            @Override
            public String _case(FloatingPointLiteral x) {
                return x.content;
            }

            @Override
            public String _case(IntegerLiteral x) {
                return x.content;
            }

            @Override
            public String _case(CharLiteral x) {
                return x.content;
            }

            @Override
            public String _case(BooleanLiteral x) {
                return x.content;
            }

            @Override
            public String _case(NullLiteral x) {
                return "null";
            }
        });
    }
508838
public static String fmtMsg(final String fmt, final int arg) {
    Object[] o = new Object[1];
    o[0] = new Integer(arg);

    return MessageFormat.format(fmt, o);
  }
678234
public static InsertStmt get(final IInsertStatement _insertStmt)
    {
        final InsertStmt ret = new InsertStmt();
        ret.setEQLStmt(_insertStmt);
        return ret;
    }
1029771
public static Statement of(Iterable<Statement> stmts) {
    ImmutableList<Statement> copy = ImmutableList.copyOf(stmts);
    return copy.size() == 1 ? copy.get(0) : StatementList.create(copy);
  }
313643
def p_for_stmt(p):
    
    if len(p) == 8:
        if not isinstance(p[2], node.ident):
            raise_exception(SyntaxError, "Not implemented: for loop", new_lexer)
        p[2].props = "I"  # I= for-loop iteration variable
        p[0] = node.for_stmt(ident=p[2], expr=p[4], stmt_list=p[6])
89322
def print_tree(sent, token_attr):
    
    def __print_sent__(token, attr):
        print("{", end=" ")
        [__print_sent__(t, attr) for t in token.lefts]
        print(u"%s->%s(%s)" % (token,token.dep_,token.tag_ if not attr else getattr(token, attr)), end="")
        [__print_sent__(t, attr) for t in token.rights]
        print("}", end=" ")
    return __print_sent__(sent.root, token_attr)
1139980
public static String parse(String _html, boolean _flag) {
        flag = _flag;
        html = _html;
        preProcess();
//		System.out.println(html);
        return getText();
    }
954800
public boolean printData(PrintWriter out, int iPrintOptions)
    {
        this.addHiddenParam(out, TrxMessageHeader.LOG_TRX_ID, this.getProperty(TrxMessageHeader.LOG_TRX_ID));
        return super.printData(out, iPrintOptions);   // Don't print
    }
920956
def get_statements(self):
        
        stmt_lists = [v for k, v in self.stmts.items()]
        stmts = []
        for s in stmt_lists:
            stmts += s
        return stmts