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

Method holdsReference

src/main/java/pascal/taie/ir/exp/Exps.java:70–73  ·  view source on GitHub ↗

@return true if exp can hold reference values.

(Exp exp)

Source from the content-addressed store, hash-verified

68 * @return {@code true} if {@code exp} can hold reference values.
69 */
70 public static boolean holdsReference(Exp exp) {
71 // TODO: exclude null type?
72 return exp.getType() instanceof ReferenceType;
73 }
74}

Callers 1

validateMethod · 0.95

Calls 1

getTypeMethod · 0.65

Tested by

no test coverage detected