MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / toString

Method toString

src/main/java/org/htmlunit/WebWindowEvent.java:144–171  ·  view source on GitHub ↗

Returns a string representation of this event. @return a string representation of this event

()

Source from the content-addressed store, hash-verified

142 * @return a string representation of this event
143 */
144 @Override
145 public String toString() {
146 final StringBuilder builder = new StringBuilder(80)
147 .append("WebWindowEvent(source=[")
148 .append(getSource())
149 .append("] type=[");
150 switch (type_) {
151 case OPEN:
152 builder.append("OPEN");
153 break;
154 case CLOSE:
155 builder.append("CLOSE");
156 break;
157 case CHANGE:
158 builder.append("CHANGE");
159 break;
160 default:
161 builder.append(type_);
162 break;
163 }
164 builder.append("] oldPage=[")
165 .append(getOldPage())
166 .append("] newPage=[")
167 .append(getNewPage())
168 .append("])");
169
170 return builder.toString();
171 }
172
173 /**
174 * @return the event type

Callers

nothing calls this directly

Calls 4

getOldPageMethod · 0.95
getNewPageMethod · 0.95
getSourceMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected