diff options
Diffstat (limited to 'src/cuchaz/enigma/mapping/ArgumentMapping.java')
| -rw-r--r-- | src/cuchaz/enigma/mapping/ArgumentMapping.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/cuchaz/enigma/mapping/ArgumentMapping.java b/src/cuchaz/enigma/mapping/ArgumentMapping.java new file mode 100644 index 0000000..d5e020a --- /dev/null +++ b/src/cuchaz/enigma/mapping/ArgumentMapping.java | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | /******************************************************************************* | ||
| 2 | * Copyright (c) 2014 Jeff Martin. | ||
| 3 | * All rights reserved. This program and the accompanying materials | ||
| 4 | * are made available under the terms of the GNU Public License v3.0 | ||
| 5 | * which accompanies this distribution, and is available at | ||
| 6 | * http://www.gnu.org/licenses/gpl.html | ||
| 7 | * | ||
| 8 | * Contributors: | ||
| 9 | * Jeff Martin - initial API and implementation | ||
| 10 | ******************************************************************************/ | ||
| 11 | package cuchaz.enigma.mapping; | ||
| 12 | |||
| 13 | import java.io.Serializable; | ||
| 14 | |||
| 15 | public class ArgumentMapping implements Serializable | ||
| 16 | { | ||
| 17 | private static final long serialVersionUID = 8610742471440861315L; | ||
| 18 | |||
| 19 | private int m_index; | ||
| 20 | private String m_name; | ||
| 21 | |||
| 22 | // NOTE: this argument order is important for the MethodReader/MethodWriter | ||
| 23 | public ArgumentMapping( int index, String name ) | ||
| 24 | { | ||
| 25 | m_index = index; | ||
| 26 | m_name = name; | ||
| 27 | } | ||
| 28 | |||
| 29 | public int getIndex( ) | ||
| 30 | { | ||
| 31 | return m_index; | ||
| 32 | } | ||
| 33 | |||
| 34 | public String getName( ) | ||
| 35 | { | ||
| 36 | return m_name; | ||
| 37 | } | ||
| 38 | public void setName( String val ) | ||
| 39 | { | ||
| 40 | m_name = val; | ||
| 41 | } | ||
| 42 | } | ||