diff options
Diffstat (limited to 'src/test/java/cuchaz/enigma/inputs/inheritanceTree')
4 files changed, 0 insertions, 130 deletions
diff --git a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/BaseClass.java b/src/test/java/cuchaz/enigma/inputs/inheritanceTree/BaseClass.java deleted file mode 100644 index b9c4929..0000000 --- a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/BaseClass.java +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | /******************************************************************************* | ||
| 2 | * Copyright (c) 2015 Jeff Martin. | ||
| 3 | * All rights reserved. This program and the accompanying materials | ||
| 4 | * are made available under the terms of the GNU Lesser General Public | ||
| 5 | * License v3.0 which accompanies this distribution, and is available at | ||
| 6 | * http://www.gnu.org/licenses/lgpl.html | ||
| 7 | * | ||
| 8 | * Contributors: | ||
| 9 | * Jeff Martin - initial API and implementation | ||
| 10 | ******************************************************************************/ | ||
| 11 | |||
| 12 | package cuchaz.enigma.inputs.inheritanceTree; | ||
| 13 | |||
| 14 | // a | ||
| 15 | public abstract class BaseClass { | ||
| 16 | |||
| 17 | // a | ||
| 18 | private String name; | ||
| 19 | |||
| 20 | // <init>(Ljava/lang/String;)V | ||
| 21 | protected BaseClass(String name) { | ||
| 22 | this.name = name; | ||
| 23 | } | ||
| 24 | |||
| 25 | // a()Ljava/lang/String; | ||
| 26 | public String getName() { | ||
| 27 | return name; | ||
| 28 | } | ||
| 29 | |||
| 30 | // a()V | ||
| 31 | public abstract void doBaseThings(); | ||
| 32 | } | ||
diff --git a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassA.java b/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassA.java deleted file mode 100644 index 50e963c..0000000 --- a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassA.java +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | /******************************************************************************* | ||
| 2 | * Copyright (c) 2015 Jeff Martin. | ||
| 3 | * All rights reserved. This program and the accompanying materials | ||
| 4 | * are made available under the terms of the GNU Lesser General Public | ||
| 5 | * License v3.0 which accompanies this distribution, and is available at | ||
| 6 | * http://www.gnu.org/licenses/lgpl.html | ||
| 7 | * | ||
| 8 | * Contributors: | ||
| 9 | * Jeff Martin - initial API and implementation | ||
| 10 | ******************************************************************************/ | ||
| 11 | |||
| 12 | package cuchaz.enigma.inputs.inheritanceTree; | ||
| 13 | |||
| 14 | // b extends a | ||
| 15 | public abstract class SubclassA extends BaseClass { | ||
| 16 | |||
| 17 | // <init>(Ljava/lang/String;)V | ||
| 18 | protected SubclassA(String name) { | ||
| 19 | // call to a.<init>(Ljava/lang/String)V | ||
| 20 | super(name); | ||
| 21 | } | ||
| 22 | } | ||
diff --git a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassB.java b/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassB.java deleted file mode 100644 index d0dd664..0000000 --- a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassB.java +++ /dev/null | |||
| @@ -1,41 +0,0 @@ | |||
| 1 | /******************************************************************************* | ||
| 2 | * Copyright (c) 2015 Jeff Martin. | ||
| 3 | * All rights reserved. This program and the accompanying materials | ||
| 4 | * are made available under the terms of the GNU Lesser General Public | ||
| 5 | * License v3.0 which accompanies this distribution, and is available at | ||
| 6 | * http://www.gnu.org/licenses/lgpl.html | ||
| 7 | * | ||
| 8 | * Contributors: | ||
| 9 | * Jeff Martin - initial API and implementation | ||
| 10 | ******************************************************************************/ | ||
| 11 | |||
| 12 | package cuchaz.enigma.inputs.inheritanceTree; | ||
| 13 | |||
| 14 | // c extends a | ||
| 15 | public class SubclassB extends BaseClass { | ||
| 16 | |||
| 17 | // a | ||
| 18 | private int numThings; | ||
| 19 | |||
| 20 | // <init>()V | ||
| 21 | protected SubclassB() { | ||
| 22 | // a.<init>(Ljava/lang/String;)V | ||
| 23 | super("B"); | ||
| 24 | |||
| 25 | // access to a | ||
| 26 | numThings = 4; | ||
| 27 | } | ||
| 28 | |||
| 29 | @Override | ||
| 30 | // a()V | ||
| 31 | public void doBaseThings() { | ||
| 32 | // call to a.a()Ljava/lang/String; | ||
| 33 | System.out.println("Base things by B! " + getName()); | ||
| 34 | } | ||
| 35 | |||
| 36 | // b()V | ||
| 37 | public void doBThings() { | ||
| 38 | // access to a | ||
| 39 | System.out.println("" + numThings + " B things!"); | ||
| 40 | } | ||
| 41 | } | ||
diff --git a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubsubclassAA.java b/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubsubclassAA.java deleted file mode 100644 index c584570..0000000 --- a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubsubclassAA.java +++ /dev/null | |||
| @@ -1,35 +0,0 @@ | |||
| 1 | /******************************************************************************* | ||
| 2 | * Copyright (c) 2015 Jeff Martin. | ||
| 3 | * All rights reserved. This program and the accompanying materials | ||
| 4 | * are made available under the terms of the GNU Lesser General Public | ||
| 5 | * License v3.0 which accompanies this distribution, and is available at | ||
| 6 | * http://www.gnu.org/licenses/lgpl.html | ||
| 7 | * | ||
| 8 | * Contributors: | ||
| 9 | * Jeff Martin - initial API and implementation | ||
| 10 | ******************************************************************************/ | ||
| 11 | |||
| 12 | package cuchaz.enigma.inputs.inheritanceTree; | ||
| 13 | |||
| 14 | // d extends b | ||
| 15 | public class SubsubclassAA extends SubclassA { | ||
| 16 | |||
| 17 | protected SubsubclassAA() { | ||
| 18 | // call to b.<init>(Ljava/lang/String;)V | ||
| 19 | super("AA"); | ||
| 20 | } | ||
| 21 | |||
| 22 | @Override | ||
| 23 | // a()Ljava/lang/String; | ||
| 24 | public String getName() { | ||
| 25 | // call to b.a()Ljava/lang/String; | ||
| 26 | return "subsub" + super.getName(); | ||
| 27 | } | ||
| 28 | |||
| 29 | @Override | ||
| 30 | // a()V | ||
| 31 | public void doBaseThings() { | ||
| 32 | // call to d.a()Ljava/lang/String; | ||
| 33 | System.out.println("Base things by " + getName()); | ||
| 34 | } | ||
| 35 | } | ||