![JAR search and dependency download from the Maven repository](/logo.png)
org.sweble.wikitext.lazy.preprocessor.OnlyInclude 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.*;
/**
* OnlyInclude
* Grammar
*/
public class OnlyInclude
extends ContentNode
{
private static final long serialVersionUID = 1L;
// =========================================================================
public OnlyInclude()
{
super();
}
public OnlyInclude(NodeList content, XmlElementType elementType)
{
super(content);
setElementType(elementType);
}
@Override
public int getNodeType()
{
return org.sweble.wikitext.lazy.AstNodeTypes.NT_ONLY_INCLUDE;
}
// =========================================================================
// Properties
private XmlElementType elementType;
public final XmlElementType getElementType()
{
return this.elementType;
}
public final XmlElementType setElementType(XmlElementType elementType)
{
XmlElementType old = this.elementType;
this.elementType = elementType;
return old;
}
@Override
public final int getPropertyCount()
{
return 1;
}
@Override
public final AstNodePropertyIterator propertyIterator()
{
return new AstNodePropertyIterator()
{
@Override
protected int getPropertyCount()
{
return 1;
}
@Override
protected String getName(int index)
{
switch (index)
{
case 0:
return "elementType";
default:
throw new IndexOutOfBoundsException();
}
}
@Override
protected Object getValue(int index)
{
switch (index)
{
case 0:
return OnlyInclude.this.getElementType();
default:
throw new IndexOutOfBoundsException();
}
}
@Override
protected Object setValue(int index, Object value)
{
switch (index)
{
case 0:
return OnlyInclude.this.setElementType((XmlElementType) value);
default:
throw new IndexOutOfBoundsException();
}
}
};
}
// =========================================================================
// Children
// =========================================================================
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy