MCPcopy Create free account
hub / github.com/LFYSec/MScan / setIndex

Method setIndex

src/main/java/pascal/taie/language/classes/JClass.java:366–375  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

364 }
365
366 void setIndex(int index) {
367 if (this.index != -1) {
368 throw new IllegalStateException("index already set");
369 }
370 if (index < 0) {
371 throw new IllegalArgumentException(
372 "index must be 0 or positive number, given: " + index);
373 }
374 this.index = index;
375 }
376
377 @Override
378 public int getIndex() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected