Examples of Parser


Examples of org.h2.command.Parser

     * @param sql the SQL statement
     * @param rightsChecked true if the rights have already been checked
     * @return the prepared statement
     */
    public Prepared prepare(String sql, boolean rightsChecked) {
        Parser parser = new Parser(this);
        parser.setRightsChecked(rightsChecked);
        return parser.prepare(sql);
    }
View Full Code Here

Examples of org.htmlparser.Parser

        try {
          // �����ʼ�
          String mail_content = MessageFormat.format(template,
              new String[]{loginUser.getNickname(),img.toString(), url.toString(),curTime});
          //System.out.println(mail_content);
          Parser html = new Parser();
          html.setEncoding(Globals.ENC_8859_1);
          html.setInputHTML(mail_content);
          Node[] nodes = html.extractAllNodesThatMatch(
              HtmlNodeFilters.titleFilter).toNodeArray();
          String title = nodes[0].toPlainTextString();
          MailSender sender = MailSender.getHtmlMailSender(null, 25,
              null, null);
          sender.setSubject(title);
View Full Code Here

Examples of org.infinispan.configuration.parsing.Parser

    private static ConfigurationBuilderHolder load(String resource) {
        URL url = find(resource, CacheAdd.class.getClassLoader());
        log.debugf("Loading Infinispan defaults from %s", url.toString());
        try {
            InputStream input = url.openStream();
            Parser parser = new Parser(Parser.class.getClassLoader());
            try {
                return parser.parse(input);
            } finally {
                try {
                    input.close();
                } catch (IOException e) {
                    log.warn(e.getMessage(), e);
View Full Code Here

Examples of org.jbehave.core.story.codegen.sablecc.parser.Parser

public class TextStoryParser implements StoryParser {
  public StoryDetails parseStory(Reader in) {
    try {
      Lexer lexer = new Lexer(new PushbackReader(in, 1024));
      Parser parser = new Parser(lexer);
      Start root = parser.parse();
      StoryDetailsBuilder builder = new StoryDetailsBuilder();
      root.apply(builder);
      return builder.getStoryDetails();
    } catch (IOException e) {
      throw new RuntimeException(e.getMessage());
View Full Code Here

Examples of org.jboss.developer.stacks.parser.Parser

        try {
            // Retrieve inputStream (local cache or remote)
            inputStream = getStacksInputStream();
            Stacks stacks = null;
            if (inputStream != null) {
                stacks = new Parser().parse(inputStream);
            }
            return stacks;
        } catch (FileNotFoundException e) {
            msg.showErrorMessageWithCause("FileNotFoundException", e);
            return null;
View Full Code Here

Examples of org.jboss.forge.furnace.proxy.javassist.bytecode.AnnotationsAttribute.Parser

     *     
     * @see #setAnnotations(Annotation[][])
     */
    public Annotation[][] getAnnotations() {
        try {
            return new Parser(info, constPool).parseParameters();
        }
        catch (Exception e) {
            throw new RuntimeException(e.toString());
        }
    }
View Full Code Here

Examples of org.jboss.seam.excel.css.Parser

    * @return The map of column number -> column width
    */
   private Map<Integer, Integer> parseColumnWidths(UIWorksheet worksheet)
   {
      Map<Integer, Integer> columnWidths = new HashMap<Integer, Integer>();
      Parser parser = new Parser();

      StyleMap styleMap = parser.getCascadedStyleMap(worksheet);
      for (Map.Entry<String, Object> entry : styleMap.entrySet())
      {
         String key = entry.getKey();
         if (key.startsWith(CSSNames.COLUMN_WIDTHS))
         {
View Full Code Here

Examples of org.jbpm.pvm.internal.xml.Parser

    // method & args
    String methodName = XmlUtil.attribute(element, "method");
    subscribeOperation.setMethodName(methodName);
    List<Element> argElements = XmlUtil.elements(element, "arg");
    Parser wireParser = (Parser) parser;
    List<ArgDescriptor> argDescriptors = wireParser.parseArgs(argElements, parse);
    subscribeOperation.setArgDescriptors(argDescriptors);

   return subscribeOperation;
  }
View Full Code Here

Examples of org.jnode.driver.system.acpi.aml.Parser

        super(driver, tableResource);
        root = parse();
    }

    private final ParseNode parse() throws ResourceNotFreeException {
        final Parser p = new Parser();
        // the AML starts at offsset 36 of DSDT
        final int amlLength = getSize() - 36;
        final byte[] table = new byte[amlLength];
        getBytes(36, table, 0, amlLength);
        ByteBuffer amlBuffer = ByteBuffer.wrap(table);
        amlBuffer.rewind();
        return p.parse(amlBuffer);
    }
View Full Code Here

Examples of org.jpox.store.query.Parser

        this.toExcl = query.getRangeToExcl();

        // try to determinate fromInclNo and to ExclNo by the range string
        if (query.getRange() != null)
        {
            Parser p = new Parser(query.getRange(), new Imports());

            BigInteger from = p.parseIntegerLiteral();
            if (from != null)
            {
                this.fromIncl = from.longValue();
            }
            p.skipWS();
            if (p.parseChar(','))
            {
                p.skipWS();
                BigInteger to = p.parseIntegerLiteral();
                if (to != null)
                {
                    this.toExcl = to.longValue();
                }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.