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

Method addPhantomField

src/main/java/pascal/taie/language/classes/JClass.java:359–364  ·  view source on GitHub ↗
(String fieldName, Type fieldType, JField field)

Source from the content-addressed store, hash-verified

357 }
358
359 public void addPhantomField(String fieldName, Type fieldType, JField field) {
360 assert isPhantom();
361 assert getPhantomField(fieldName, fieldType) == null :
362 String.format("'%s' already has phantom field '%s'", this, field);
363 phantomFields.put(fieldName, field);
364 }
365
366 void setIndex(int index) {
367 if (this.index != -1) {

Callers 1

resolveFieldMethod · 0.80

Calls 4

isPhantomMethod · 0.95
getPhantomFieldMethod · 0.95
formatMethod · 0.80
putMethod · 0.65

Tested by

no test coverage detected