/******************************************************************************* * Copyright (c) 2009-2013 CWI * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * * Arnold Lankamp - Arnold.Lankamp@cwi.nl *******************************************************************************/ package org.rascalmpl.parser.gtd.result; /** * All nodes in the resulting tree are a subtype of this class. */ public abstract class AbstractNode{ public AbstractNode(){ super(); } /** * Returns a unique identifier, indicating the type of result node. */ public abstract int getTypeIdentifier(); /** * Checks whether or not this node is an epsilon node. */ public boolean isEpsilon(){ return false; } /** * Check whether or not this node is empty (where empty means, that it is * associated with a zero length location in the input string). */ public abstract boolean isEmpty(); /** * Checks whether or not this node represents a non-terminal separator. */ public abstract boolean isNonterminalSeparator(); }