1 package org.djutils.reflection; 2 3 /** 4 * Test class to find in ClassUtil.classFileDescriptor. <br> 5 * <br> 6 * Copyright (c) 2003-2018 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See 7 * for project information <a href="https://www.simulation.tudelft.nl/" target="_blank">www.simulation.tudelft.nl</a>. The 8 * source code and binary code of this software is proprietary information of Delft University of Technology. 9 * @author <a href="https://www.tudelft.nl/averbraeck" target="_blank">Alexander Verbraeck</a> 10 */ 11 public class TestClass 12 { 13 /** state to communicate back to the test. */ 14 private String state = ""; 15 16 /** 17 * Test class to find in ClassUtil.classFileDescriptor. 18 */ 19 public TestClass() 20 { 21 // Test class to find in ClassUtil.classFileDescriptor 22 this.state = "<init>"; 23 } 24 25 /** 26 * @param string string 27 */ 28 public TestClass(final String string) 29 { 30 this.state = string; 31 } 32 33 /** 34 * @param bool boolean 35 */ 36 @SuppressWarnings("unused") 37 private TestClass(final boolean bool) 38 { 39 this.state = Boolean.toString(bool); 40 } 41 42 /** 43 * @return state 44 */ 45 public String getState() 46 { 47 return this.state; 48 } 49 50 /** */ 51 public static class InnerPublic 52 { 53 /** state to communicate back to the test. */ 54 private String innerState = ""; 55 56 /** */ 57 public InnerPublic() 58 { 59 this.innerState = "<initInnerPublic>"; 60 } 61 62 /** 63 * @param state state 64 */ 65 public InnerPublic(final String state) 66 { 67 this.innerState = state; 68 } 69 70 /** 71 * @return state 72 */ 73 public String getInnerState() 74 { 75 return this.innerState; 76 } 77 } 78 }