/******************************************************************************* * Copyright (c) 2009 Elliott Baron * 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: * Elliott Baron - initial API and implementation *******************************************************************************/ package org.eclipse.cdt.codan.extension; import org.eclipse.cdt.core.dom.ast.IASTNode; public abstract class PropertyState { private String name; public PropertyState() { this(null); } public PropertyState(String name) { this.name = name; } public abstract PropertyState transition(IASTNode node); @Override public String toString() { String ret; if (name != null) { ret = name; } else { ret = super.toString(); } return ret; } }