Initial commit from SVN.
This commit is contained in:
19
Foundation Test/src/com/de22/javabytecode/ChildOfA.java
Normal file
19
Foundation Test/src/com/de22/javabytecode/ChildOfA.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package com.de22.javabytecode;
|
||||
|
||||
/**
|
||||
* Copyright Declarative Engineering LLC 2008<p>
|
||||
* Sample code used by the byte code system to test reverse engineering.
|
||||
*/
|
||||
public class ChildOfA extends SampleA {
|
||||
public interface IInnerChildOfA {
|
||||
public String test();
|
||||
}
|
||||
public class InnerChildOfA implements IInnerChildOfA {
|
||||
public String test() {
|
||||
return "Test";
|
||||
}
|
||||
}
|
||||
public String peform() {
|
||||
return "Child's: " + text + " " + new InnerChildOfA().test();
|
||||
}
|
||||
}
|
||||
9
Foundation Test/src/com/de22/javabytecode/ISampleA.java
Normal file
9
Foundation Test/src/com/de22/javabytecode/ISampleA.java
Normal file
@@ -0,0 +1,9 @@
|
||||
package com.de22.javabytecode;
|
||||
|
||||
/**
|
||||
* Copyright Declarative Engineering LLC 2008<p>
|
||||
* Sample code used by the byte code system to test reverse engineering.
|
||||
*/
|
||||
public interface ISampleA {
|
||||
public String perform();
|
||||
}
|
||||
13
Foundation Test/src/com/de22/javabytecode/SampleA.java
Normal file
13
Foundation Test/src/com/de22/javabytecode/SampleA.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package com.de22.javabytecode;
|
||||
|
||||
/**
|
||||
* Copyright Declarative Engineering LLC 2008<p>
|
||||
* Sample code used by the byte code system to test reverse engineering.
|
||||
*/
|
||||
public class SampleA implements ISampleA {
|
||||
public String text = "SAMPLEA";
|
||||
|
||||
public String perform() {
|
||||
return text;
|
||||
}
|
||||
}
|
||||
12
Foundation Test/src/com/de22/javabytecode/SampleB.java
Normal file
12
Foundation Test/src/com/de22/javabytecode/SampleB.java
Normal file
@@ -0,0 +1,12 @@
|
||||
package com.de22.javabytecode;
|
||||
|
||||
/**
|
||||
* Copyright Declarative Engineering LLC 2008<p>
|
||||
* Sample code used by the byte code system to test reverse engineering.
|
||||
*/
|
||||
public class SampleB {
|
||||
public static void main(String[] args) {
|
||||
ISampleA sample = new ChildOfA();
|
||||
System.out.println(sample.perform());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user