From 22b6c861df68557352fb5a87948f3e065f395ef3 Mon Sep 17 00:00:00 2001 From: jeff Date: Sun, 10 Aug 2014 22:13:01 -0400 Subject: refactored to remove ClassFile class to prep for upcoming stack navigation. It wasn't really necessary anymore. --- src/cuchaz/enigma/ClassFile.java | 41 ---------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 src/cuchaz/enigma/ClassFile.java (limited to 'src/cuchaz/enigma/ClassFile.java') 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 @@ -/******************************************************************************* - * Copyright (c) 2014 Jeff Martin. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the GNU Public License v3.0 - * which accompanies this distribution, and is available at - * http://www.gnu.org/licenses/gpl.html - * - * Contributors: - * Jeff Martin - initial API and implementation - ******************************************************************************/ -package cuchaz.enigma; - - -public class ClassFile -{ - private String m_name; - - public ClassFile( String name ) - { - if( name.indexOf( '.' ) >= 0 ) - { - throw new IllegalArgumentException( "Class name should be in JVM format!" ); - } - m_name = name; - } - - public String getName( ) - { - return m_name; - } - - public String getPath( ) - { - return m_name.replace( ".", "/" ) + ".class"; - } - - public boolean isInPackage( ) - { - return m_name.indexOf( '/' ) >= 0; - } -} -- cgit v1.2.3