|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| Atom.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 | /* $Id: Atom.java,v 1.2 2006/10/20 20:23:05 m31 Exp $ | |
| 2 | * | |
| 3 | * This file is part of the project "Hilbert II" - http://www.qedeq.org | |
| 4 | * | |
| 5 | * Copyright 2000-2006, Michael Meyling <mime@qedeq.org>. | |
| 6 | * | |
| 7 | * "Hilbert II" is free software; you can redistribute | |
| 8 | * it and/or modify it under the terms of the GNU General Public | |
| 9 | * License as published by the Free Software Foundation; either | |
| 10 | * version 2 of the License, or (at your option) any later version. | |
| 11 | * | |
| 12 | * This program is distributed in the hope that it will be useful, | |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | * GNU General Public License for more details. | |
| 16 | */ | |
| 17 | ||
| 18 | package org.qedeq.kernel.parser; | |
| 19 | ||
| 20 | ||
| 21 | /** | |
| 22 | * Parsed atom, this is a term constant, or an formula constant. | |
| 23 | * | |
| 24 | * @version $Revision: 1.2 $ | |
| 25 | * @author Michael Meyling | |
| 26 | */ | |
| 27 | public final class Atom { | |
| 28 | ||
| 29 | /** Atom value. */ | |
| 30 | private final String value; | |
| 31 | ||
| 32 | /** | |
| 33 | * Constructor. | |
| 34 | * | |
| 35 | * @param value Term atom | |
| 36 | */ | |
| 37 | 898 | public Atom(final String value) { |
| 38 | 898 | this.value = value; |
| 39 | } | |
| 40 | ||
| 41 | /** | |
| 42 | * Get atom value. | |
| 43 | * | |
| 44 | * @return Value. | |
| 45 | */ | |
| 46 | 10962 | final String getValue() { |
| 47 | 10962 | return this.value; |
| 48 | } | |
| 49 | ||
| 50 | } |
|
||||||||||