org.waxeye.parser.State Maven / Gradle / Ivy
The newest version!
/*
* Waxeye Parser Generator
* www.waxeye.org
* Copyright (C) 2008-2010 Orlando Hill
* Licensed under the MIT license. See 'LICENSE' for details.
*/
package org.waxeye.parser;
import java.util.List;
/**
* An automaton state.
*
* @param The node types for the AST.
*
* @author Orlando Hill
*/
public final class State >
{
/** The edges of the state. */
private final List> edges;
/** Whether the state is a matching state. */
private final boolean match;
/**
* Creates a new State.
*
* @param edges The edges of the state.
*
* @param match Whether the state is a matching state.
*/
public State(final List> edges, final boolean match)
{
this.edges = edges;
this.match = match;
}
/**
* Returns the edges.
*
* @return Returns the edges.
*/
public List> getEdges()
{
return edges;
}
/**
* Returns the match.
*
* @return Returns the match.
*/
public boolean isMatch()
{
return match;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy