summaryrefslogtreecommitdiff
path: root/src/cuchaz/enigma/ClassFile.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/cuchaz/enigma/ClassFile.java')
-rw-r--r--src/cuchaz/enigma/ClassFile.java41
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 ******************************************************************************/
11package cuchaz.enigma;
12
13
14public 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}