Lines Matching refs:loc
93 Location loc;
103 loc = getLocation("AbstractLocationTarg", "foo");
104 if (loc != null) {
106 "been null, but was: " + loc);
109 loc = getLocation("java.util.List", "clear");
110 if (loc != null) {
112 "should have been null, but was: " + loc);
115 loc = getLocation("java.lang.Object", "getClass");
116 if (loc == null) {
118 "should have been non-null, but was: " + loc);
120 if (!loc.declaringType().name().equals("java.lang.Object")) {
123 loc.declaringType());
125 if (!loc.method().name().equals("getClass")) {
128 loc.method());
130 if (loc.codeIndex() != -1) {
133 loc.codeIndex());
135 if (loc.lineNumber() != -1) {
138 loc.lineNumber());
142 loc = getLocation("LocationTarg", "foo");
143 if (loc == null) {
145 "should have been non-null, but was: " + loc);
147 if (!loc.declaringType().name().equals("LocationTarg")) {
150 loc.declaringType());
152 if (!loc.method().name().equals("foo")) {
155 loc.method());
157 if (loc.codeIndex() != 0) { // implementation dependent!!!
160 loc.codeIndex());
162 if (loc.lineNumber() != (mainLoc.lineNumber() + 3)) {
165 ", but was: " + loc.lineNumber());