public int instanceOf(String otherType, Clazz otherReferencedClass) { return referenceValue.instanceOf(otherType, otherReferencedClass); }
public int instanceOf(String otherType, Clazz otherReferencedClass) { return referenceValue.instanceOf(otherType, otherReferencedClass); }
public int instanceOf(String otherType, Clazz otherReferencedClass) { return referenceValue.instanceOf(otherType, otherReferencedClass); }
/** * Returns whether the given method may return the given type of reference * value */ private boolean mayReturnType(Clazz clazz, Method method, ReferenceValue referenceValue) { String returnType = ClassUtil.internalMethodReturnType(method.getDescriptor(clazz)); Clazz[] referencedClasses = method instanceof ProgramMethod ? ((ProgramMethod)method).referencedClasses : ((LibraryMethod)method).referencedClasses; Clazz referencedClass = referencedClasses == null || !ClassUtil.isInternalClassType(returnType) ? null : referencedClasses[referencedClasses.length - 1]; return referenceValue.instanceOf(returnType, referencedClass) != Value.NEVER; }
/** * Returns whether the given method may return the given type of reference * value */ private boolean mayReturnType(Clazz clazz, Method method, ReferenceValue referenceValue) { String returnType = ClassUtil.internalMethodReturnType(method.getDescriptor(clazz)); Clazz[] referencedClasses = method instanceof ProgramMethod ? ((ProgramMethod)method).referencedClasses : ((LibraryMethod)method).referencedClasses; Clazz referencedClass = referencedClasses == null || !ClassUtil.isInternalClassType(returnType) ? null : referencedClasses[referencedClasses.length - 1]; return referenceValue.instanceOf(returnType, referencedClass) != Value.NEVER; }
/** * Returns whether the given method may return the given type of reference * value */ private boolean mayReturnType(Clazz clazz, Method method, ReferenceValue referenceValue) { String returnType = ClassUtil.internalMethodReturnType(method.getDescriptor(clazz)); Clazz[] referencedClasses = method instanceof ProgramMethod ? ((ProgramMethod)method).referencedClasses : ((LibraryMethod)method).referencedClasses; Clazz referencedClass = referencedClasses == null || !ClassUtil.isInternalClassType(returnType) ? null : referencedClasses[referencedClasses.length - 1]; return referenceValue.instanceOf(returnType, referencedClass) != Value.NEVER; } }
/** * Returns whether the given method may return the given type of reference * value */ private boolean mayReturnType(Clazz clazz, Method method, ReferenceValue referenceValue) { String returnType = ClassUtil.internalMethodReturnType(method.getDescriptor(clazz)); Clazz[] referencedClasses = method instanceof ProgramMethod ? ((ProgramMethod)method).referencedClasses : ((LibraryMethod)method).referencedClasses; Clazz referencedClass = referencedClasses == null || !ClassUtil.isInternalClassType(returnType) ? null : referencedClasses[referencedClasses.length - 1]; return referenceValue.instanceOf(returnType, referencedClass) != Value.NEVER; } }
/** * Returns whether the given method may return the given type of reference * value */ private boolean mayReturnType(Clazz clazz, Method method, ReferenceValue referenceValue) { String returnType = ClassUtil.internalMethodReturnType(method.getDescriptor(clazz)); Clazz[] referencedClasses = method instanceof ProgramMethod ? ((ProgramMethod)method).referencedClasses : ((LibraryMethod)method).referencedClasses; Clazz referencedClass = referencedClasses == null || !ClassUtil.isInternalClassType(returnType) ? null : referencedClasses[referencedClasses.length - 1]; return referenceValue.instanceOf(returnType, referencedClass) != Value.NEVER; } }
/** * Returns whether the given method may return the given type of reference * value */ private boolean mayReturnType(Clazz clazz, Method method, ReferenceValue referenceValue) { String returnType = ClassUtil.internalMethodReturnType(method.getDescriptor(clazz)); Clazz[] referencedClasses = method instanceof ProgramMethod ? ((ProgramMethod)method).referencedClasses : ((LibraryMethod)method).referencedClasses; Clazz referencedClass = referencedClasses == null || !ClassUtil.isInternalClassType(returnType) ? null : referencedClasses[referencedClasses.length - 1]; return referenceValue.instanceOf(returnType, referencedClass) != Value.NEVER; }
value.instanceOf(type.getType(), type.getReferencedClass());
value.instanceOf(type.getType(), type.getReferencedClass());
value.instanceOf(type.getType(), type.getReferencedClass());
int instanceOf = stack.apop().instanceOf(referenceValue.getType(), referenceValue.getReferencedClass());