| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
package jpype.attr; |
| 17 |
|
| 18 |
public class Test1 |
| 19 |
{ |
| 20 |
|
| 21 |
private String mBigString; |
| 22 |
|
| 23 |
public Test1() |
| 24 |
{ |
| 25 |
StringBuffer sb = new StringBuffer(4001); |
| 26 |
for (int i = 0; i < 4000; i++) |
| 27 |
{ |
| 28 |
sb.append("A"); |
| 29 |
} |
| 30 |
mBigString = sb.toString(); |
| 31 |
} |
| 32 |
|
| 33 |
public String getBigString() |
| 34 |
{ |
| 35 |
return mBigString; |
| 36 |
} |
| 37 |
|
| 38 |
public String toString() |
| 39 |
{ |
| 40 |
return "aaa"; |
| 41 |
} |
| 42 |
|
| 43 |
public static String[] testStaticString(String s1, String s2) |
| 44 |
{ |
| 45 |
return new String[] |
| 46 |
{ |
| 47 |
s1, s2 |
| 48 |
}; |
| 49 |
} |
| 50 |
|
| 51 |
public static String testStaticHolder(Holder h) |
| 52 |
{ |
| 53 |
return h.f; |
| 54 |
} |
| 55 |
|
| 56 |
public String[] testString(String s1, String s2) |
| 57 |
{ |
| 58 |
return new String[] |
| 59 |
{ |
| 60 |
s1, s2 |
| 61 |
}; |
| 62 |
} |
| 63 |
|
| 64 |
public String[] testStringArray(String[] vals) |
| 65 |
{ |
| 66 |
return vals; |
| 67 |
} |
| 68 |
|
| 69 |
public String stringValue = "Foo"; |
| 70 |
public char charValue = 'a'; |
| 71 |
public static Object objectValue = (int) 234; |
| 72 |
|
| 73 |
public static void reset() |
| 74 |
{ |
| 75 |
objectValue = (int) 234; |
| 76 |
} |
| 77 |
|
| 78 |
public Object getSubClass() |
| 79 |
{ |
| 80 |
return new SubHolder(); |
| 81 |
} |
| 82 |
|
| 83 |
public void callWithClass(Class c) |
| 84 |
{ |
| 85 |
} |
| 86 |
|
| 87 |
public void test1Method() |
| 88 |
{ |
| 89 |
|
| 90 |
} |
| 91 |
|
| 92 |
public boolean mBooleanValue = false; |
| 93 |
|
| 94 |
public void setBoolean(boolean b) |
| 95 |
{ |
| 96 |
mBooleanValue = b; |
| 97 |
} |
| 98 |
|
| 99 |
public byte mByteValue; |
| 100 |
|
| 101 |
public void setByte(byte b) |
| 102 |
{ |
| 103 |
mByteValue = b; |
| 104 |
} |
| 105 |
|
| 106 |
public short mShortValue = 0; |
| 107 |
|
| 108 |
public void setShort(short s) |
| 109 |
{ |
| 110 |
mShortValue = s; |
| 111 |
} |
| 112 |
|
| 113 |
public int mIntValue = 0; |
| 114 |
|
| 115 |
public void setInt(int i) |
| 116 |
{ |
| 117 |
mIntValue = i; |
| 118 |
} |
| 119 |
|
| 120 |
public long mLongValue = 0; |
| 121 |
|
| 122 |
public void setLong(long l) |
| 123 |
{ |
| 124 |
mLongValue = l; |
| 125 |
} |
| 126 |
|
| 127 |
public String callWithSomething(Object obj) |
| 128 |
{ |
| 129 |
return "Object"; |
| 130 |
} |
| 131 |
|
| 132 |
public String callWithSomething(Class obj) |
| 133 |
{ |
| 134 |
return "Class"; |
| 135 |
} |
| 136 |
|
| 137 |
public Test1 delete(String arg1, String arg2) |
| 138 |
{ |
| 139 |
System.out.println("Overloaded test 1 called"); |
| 140 |
return null; |
| 141 |
} |
| 142 |
|
| 143 |
} |