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

Method get

src/main/java/pascal/taie/ir/exp/MethodHandle.java:148–161  ·  view source on GitHub ↗
(int kind)

Source from the content-addressed store, hash-verified

146 }
147
148 public static Kind get(int kind) {
149 return switch (kind) {
150 case MethodHandleInfo.REF_getField -> REF_getField;
151 case MethodHandleInfo.REF_getStatic -> REF_getStatic;
152 case MethodHandleInfo.REF_putField -> REF_putField;
153 case MethodHandleInfo.REF_putStatic -> REF_putStatic;
154 case MethodHandleInfo.REF_invokeVirtual -> REF_invokeVirtual;
155 case MethodHandleInfo.REF_invokeStatic -> REF_invokeStatic;
156 case MethodHandleInfo.REF_invokeSpecial -> REF_invokeSpecial;
157 case MethodHandleInfo.REF_newInvokeSpecial -> REF_newInvokeSpecial;
158 case MethodHandleInfo.REF_invokeInterface -> REF_invokeInterface;
159 default -> throw new AnalysisException("No MethodHandle kind for " + kind);
160 };
161 }
162 }
163}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected