public void caseStaticFieldRef(StaticFieldRef arg0) {
   SootField field = arg0.getField();
   OpenCLField ocl_field = new OpenCLField(arg0.getField(), field.getDeclaringClass());
   if (isLhs()) {
     m_output.append(ocl_field.getStaticSetterInvoke());
   } else {
     m_output.append(ocl_field.getStaticGetterInvoke());
   }
 }
Example #2
0
 public boolean staticFieldRefRedefined(StaticFieldRef lSFieldRef, List<ValueBox> rUseBoxes) {
   for (ValueBox rUseBox : rUseBoxes) {
     Value rBoxValue = rUseBox.getValue();
     if (rBoxValue instanceof StaticFieldRef) {
       StaticFieldRef rSFieldRef = (StaticFieldRef) rBoxValue;
       if (lSFieldRef.getField().equals(rSFieldRef.getField())) {
         return true;
       }
     }
   }
   return false;
 }