All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jamon.parser.OverrideParser Maven / Gradle / Ivy

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

package org.jamon.parser;

import java.io.IOException;

import org.jamon.api.Location;
import org.jamon.compiler.ParserErrorsImpl;
import org.jamon.node.OverrideNode;

public class OverrideParser extends SubcomponentParser {
  /**
   * @param reader
   * @param errors
   */
  public OverrideParser(
    String name, Location tagLocation, PositionalPushbackReader reader, ParserErrorsImpl errors) {
    super(new OverrideNode(tagLocation, name), reader, errors);
  }

  @Override
  protected String tagName() {
    return "override";
  }

  @Override
  protected void handleParentArgsNode(Location tagLocation) throws IOException {
    root.addSubNode(new ParentArgsParser(reader, errors, tagLocation).getParentArgsNode());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy