org.sweble.wikitext.lazy.preprocessor.TemplateParameter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swc-parser-lazy Show documentation
Show all versions of swc-parser-lazy Show documentation
A parser for MediaWiki's Wikitext.
/*
* This file is auto-generated.
* DO NOT MODIFY MANUALLY!
*
* Generated by AstNodeGenerator.
* Last generated: 2014-09-12 00:37:37.
*/
package org.sweble.wikitext.lazy.preprocessor;
import de.fau.cs.osr.ptk.common.ast.*;
/**
* TemplateParameter
* Grammar
*/
public class TemplateParameter
extends InnerNode.InnerNode3
{
private static final long serialVersionUID = 1L;
// =========================================================================
public TemplateParameter()
{
super(new NodeList(), new TemplateArgument(), new NodeList());
}
public TemplateParameter(NodeList name, TemplateArgument defaultValue, NodeList garbage)
{
super(name, defaultValue, garbage);
}
@Override
public int getNodeType()
{
return org.sweble.wikitext.lazy.AstNodeTypes.NT_TEMPLATE_PARAMETER;
}
// =========================================================================
// Properties
// =========================================================================
// Children
public final void setName(NodeList name)
{
set(0, name);
}
public final NodeList getName()
{
return (NodeList) get(0);
}
public final void setDefaultValue(TemplateArgument defaultValue)
{
set(1, defaultValue);
}
public final TemplateArgument getDefaultValue()
{
return (TemplateArgument) get(1);
}
public final void setGarbage(NodeList garbage)
{
set(2, garbage);
}
public final NodeList getGarbage()
{
return (NodeList) get(2);
}
private static final String[] CHILD_NAMES = new String[] {"name", "defaultValue", "garbage"};
public final String[] getChildNames()
{
return CHILD_NAMES;
}
// =========================================================================
}