Code example for Collection

Methods: contains

0
 
  /** 
   * This object may understand a dispatch to Class.getContructor when the receiver is a type constant. 
   */ 
  private boolean mayUnderstand(CGNode caller, CallSiteReference site, IMethod targetMethod, InstanceKey instance) {
    return UNDERSTOOD_METHOD_REFS.contains(targetMethod.getReference()) && getTypeConstant(instance) != null;
  } 
 
  private static final IntSet thisParameter = IntSetUtil.make(new int[]{0});
 
  @Override 
  public IntSet getRelevantParameters(CGNode caller, CallSiteReference site) {
    if (site.isDispatch() || site.getDeclaredTarget().getNumberOfParameters() > 0) {
      return thisParameter;
    } else { 
      return EmptyIntSet.instance; 
    } 
  } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE