diff options
| author | 2014-08-10 22:13:01 -0400 | |
|---|---|---|
| committer | 2014-08-10 22:13:01 -0400 | |
| commit | 22b6c861df68557352fb5a87948f3e065f395ef3 (patch) | |
| tree | 98fc3de07b8a64a9466c42fc75adad25945bd482 /src/cuchaz/enigma/ClassFile.java | |
| parent | added go to entry feature (diff) | |
| download | enigma-fork-22b6c861df68557352fb5a87948f3e065f395ef3.tar.gz enigma-fork-22b6c861df68557352fb5a87948f3e065f395ef3.tar.xz enigma-fork-22b6c861df68557352fb5a87948f3e065f395ef3.zip | |
refactored to remove ClassFile class to prep for upcoming stack navigation. It wasn't really necessary anymore.
Diffstat (limited to 'src/cuchaz/enigma/ClassFile.java')
| -rw-r--r-- | src/cuchaz/enigma/ClassFile.java | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/cuchaz/enigma/ClassFile.java b/src/cuchaz/enigma/ClassFile.java deleted file mode 100644 index 043558d..0000000 --- a/src/cuchaz/enigma/ClassFile.java +++ /dev/null | |||
| @@ -1,41 +0,0 @@ | |||
| 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; | ||
| 12 | |||
| 13 | |||
| 14 | public class ClassFile | ||
| 15 | { | ||
| 16 | private String m_name; | ||
| 17 | |||
| 18 | public ClassFile( String name ) | ||
| 19 | { | ||
| 20 | if( name.indexOf( '.' ) >= 0 ) | ||
| 21 | { | ||
| 22 | throw new IllegalArgumentException( "Class name should be in JVM format!" ); | ||
| 23 | } | ||
| 24 | m_name = name; | ||
| 25 | } | ||
| 26 | |||
| 27 | public String getName( ) | ||
| 28 | { | ||
| 29 | return m_name; | ||
| 30 | } | ||
| 31 | |||
| 32 | public String getPath( ) | ||
| 33 | { | ||
| 34 | return m_name.replace( ".", "/" ) + ".class"; | ||
| 35 | } | ||
| 36 | |||
| 37 | public boolean isInPackage( ) | ||
| 38 | { | ||
| 39 | return m_name.indexOf( '/' ) >= 0; | ||
| 40 | } | ||
| 41 | } | ||