Tabnine Logo
BloatedAssignmentScope$UserObject.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope$UserObject
constructor

Best Java code snippets using com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope$UserObject.<init> (Showing top 8 results out of 315)

origin: com.mebigfatguy.fb-contrib/fb-contrib

/**
 * processes a static call or initializer by checking to see if the call is risky, and returning a OpcodeStack item user value saying so.
 *
 * @return the user object to place on the OpcodeStack
 */
@Nullable
private UserObject sawStaticCall() {
  if (getSigConstantOperand().endsWith(Values.SIG_VOID)) {
    return null;
  }
  return new UserObject(isRiskyMethodCall());
}
origin: mebigfatguy/fb-contrib

/**
 * processes a static call or initializer by checking to see if the call is risky, and returning a OpcodeStack item user value saying so.
 *
 * @return the user object to place on the OpcodeStack
 */
@Nullable
private UserObject sawStaticCall() {
  if (getSigConstantOperand().endsWith(Values.SIG_VOID)) {
    return null;
  }
  return new UserObject(isRiskyMethodCall());
}
origin: com.mebigfatguy.fb-contrib/fb-contrib

@Nullable
private UserObject sawGetField() {
  if (stack.getStackDepth() > 0) {
    OpcodeStack.Item itm = stack.getStackItem(0);
    int reg = itm.getRegisterNumber();
    if (reg >= 0) {
      return new UserObject(reg);
    }
  }
  return null;
}
origin: com.mebigfatguy.fb-contrib/fb-contrib

if (assoc == null) {
  if (srcItm.getRegisterNumber() >= 0) {
    assoc = new UserObject(srcItm.getRegisterNumber());
origin: mebigfatguy/fb-contrib

if (assoc == null) {
  if (srcItm.getRegisterNumber() >= 0) {
    assoc = new UserObject(srcItm.getRegisterNumber());
origin: com.mebigfatguy.fb-contrib/fb-contrib

/**
 * processes a instance method call to see if that call is modifies state or is otherwise'risky', if so mark the variable(s) associated with the caller as
 * not reportable
 *
 * @param pc
 *            the current program counter
 *
 * @return a user object to place on the return value's OpcodeStack item
 */
@Nullable
private UserObject sawInstanceCall(int pc) {
  String signature = getSigConstantOperand();
  String name = getNameConstantOperand();
  // this is kind of a wart. there should be a more seamless way to check this
  if ("wasNull".equals(getNameConstantOperand()) && SignatureBuilder.SIG_VOID_TO_BOOLEAN.equals(signature)) {
    dontReport = true;
  }
  if (signature.endsWith(Values.SIG_VOID)) {
    return null;
  }
  MethodInfo mi = Statistics.getStatistics().getMethodStatistics(getClassConstantOperand(), name, signature);
  UserObject uo = new UserObject(getCallingObject(), mi.getModifiesState() || isRiskyMethodCall());
  if (uo.caller != null) {
    ScopeBlock sb = findScopeBlock(rootScopeBlock, pc);
    if (sb != null) {
      sb.removeByAssoc(uo.caller);
    }
  }
  return uo;
}
origin: mebigfatguy/fb-contrib

/**
 * processes a instance method call to see if that call is modifies state or is otherwise'risky', if so mark the variable(s) associated with the caller as
 * not reportable
 *
 * @param pc
 *            the current program counter
 *
 * @return a user object to place on the return value's OpcodeStack item
 */
@Nullable
private UserObject sawInstanceCall(int pc) {
  String signature = getSigConstantOperand();
  String name = getNameConstantOperand();
  // this is kind of a wart. there should be a more seamless way to check this
  if ("wasNull".equals(getNameConstantOperand()) && SignatureBuilder.SIG_VOID_TO_BOOLEAN.equals(signature)) {
    dontReport = true;
  }
  if (signature.endsWith(Values.SIG_VOID)) {
    return null;
  }
  MethodInfo mi = Statistics.getStatistics().getMethodStatistics(getClassConstantOperand(), name, signature);
  UserObject uo = new UserObject(getCallingObject(), mi.getModifiesState() || isRiskyMethodCall());
  if (uo.caller != null) {
    ScopeBlock sb = findScopeBlock(rootScopeBlock, pc);
    if (sb != null) {
      sb.removeByAssoc(uo.caller);
    }
  }
  return uo;
}
origin: mebigfatguy/fb-contrib

@Nullable
private UserObject sawGetField() {
  if (stack.getStackDepth() > 0) {
    OpcodeStack.Item itm = stack.getStackItem(0);
    int reg = itm.getRegisterNumber();
    if (reg >= 0) {
      return new UserObject(reg);
    }
  }
  return null;
}
com.mebigfatguy.fbcontrib.detectBloatedAssignmentScope$UserObject<init>

Popular methods of BloatedAssignmentScope$UserObject

    Popular in Java

    • Making http post requests using okhttp
    • setRequestProperty (URLConnection)
    • addToBackStack (FragmentTransaction)
    • requestLocationUpdates (LocationManager)
    • String (java.lang)
    • Thread (java.lang)
      A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
    • ServerSocket (java.net)
      This class represents a server-side socket that waits for incoming client connections. A ServerSocke
    • Socket (java.net)
      Provides a client-side TCP socket.
    • Cipher (javax.crypto)
      This class provides access to implementations of cryptographic ciphers for encryption and decryption
    • Base64 (org.apache.commons.codec.binary)
      Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
    • Best plugins for Eclipse
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now