Tabnine Logo
NewSiteReference.getProgramCounter
Code IndexAdd Tabnine to your IDE (free)

How to use
getProgramCounter
method
in
com.ibm.wala.classLoader.NewSiteReference

Best Java code snippets using com.ibm.wala.classLoader.NewSiteReference.getProgramCounter (Showing top 10 results out of 315)

origin: wala/WALA

 @Override
 public String toString() {
  return "NEW " + declaredType + '@' + getProgramCounter();
 }
}
origin: com.ibm.wala/com.ibm.wala.core

 @Override
 public String toString() {
  return "NEW " + declaredType + '@' + getProgramCounter();
 }
}
origin: wala/WALA

/**
 * @param n a call graph node
 * @param allocPC a bytecode index corresponding to an allocation
 * @return the NewSiteReference for the allocation
 */
static NewSiteReference findAlloc(CGNode n, int allocPC) throws WalaException {
 if (n == null) {
  throw new IllegalArgumentException("null n");
 }
 for (NewSiteReference site : Iterator2Iterable.make(n.iterateNewSites())) {
  if (site.getProgramCounter() == allocPC) {
   return site;
  }
 }
 throw new WalaException("Failed to find an allocation at pc " + allocPC + " in node " + n);
}
origin: com.ibm.wala/com.ibm.wala.core

/**
 * @param n a call graph node
 * @param allocPC a bytecode index corresponding to an allocation
 * @return the NewSiteReference for the allocation
 */
static NewSiteReference findAlloc(CGNode n, int allocPC) throws WalaException {
 if (n == null) {
  throw new IllegalArgumentException("null n");
 }
 for (NewSiteReference site : Iterator2Iterable.make(n.iterateNewSites())) {
  if (site.getProgramCounter() == allocPC) {
   return site;
  }
 }
 throw new WalaException("Failed to find an allocation at pc " + allocPC + " in node " + n);
}
origin: com.ibm.wala/com.ibm.wala.core

@Override
public String toString(SymbolTable symbolTable) {
 return getValueString(symbolTable, result) + " = new " + site.getDeclaredType() + '@' + site.getProgramCounter()
   + (params == null ? "" : array2String(params, symbolTable));
}
origin: wala/WALA

@Override
public String toString(SymbolTable symbolTable) {
 return getValueString(symbolTable, result) + " = new " + site.getDeclaredType() + '@' + site.getProgramCounter()
   + (params == null ? "" : array2String(params, symbolTable));
}
origin: wala/WALA

@Override
public void visitNew(SSANewInstruction instruction) {
  try {
    int defNum = instruction.getDef();
    String localName = newLocalDef(defNum);
    TypeReference type = instruction.getConcreteType();
    String className = type.getName().toUnicodeString();
    Element elt = doc.createElement(XMLSummaryWriter.E_NEW);
    elt.setAttribute(XMLSummaryWriter.A_DEF, localName);
    elt.setAttribute(XMLSummaryWriter.A_CLASS, className);
    
    if (type.isArrayType()) {
      // array allocations need a size value
      Element sizeElt = doc.createElement(XMLSummaryWriter.E_CONSTANT);
      final String sizeName = "sizeOf$allocAt" + instruction.getNewSite().getProgramCounter();
      sizeElt.setAttribute(XMLSummaryWriter.A_NAME, sizeName);
      sizeElt.setAttribute(XMLSummaryWriter.A_TYPE, "int");
      sizeElt.setAttribute(XMLSummaryWriter.A_VALUE, "1");
      summary.add(sizeElt);
      
      elt.setAttribute(XMLSummaryWriter.A_SIZE, sizeName);
    }
    
    summary.add(elt);
  } catch (Exception e) {
    throw new SSASerializationException(e);
  }
}
origin: wala/WALA

private Set<Pair<String,Integer>> map(Set<Pair<CGNode, NewSiteReference>> sites) {
 Set<Pair<String,Integer>> result = HashSetFactory.make();
 for(Pair<CGNode,NewSiteReference> s : sites) {
  result.add(Pair.make(s.fst.getMethod().toString(), s.snd.getProgramCounter()));
 }
 return result;
}
origin: wala/WALA

  NormalAllocationInNode normalIk1 = (NormalAllocationInNode) ik;
  IR ir2 = normalIk1.getNode().getIR();
  int pc2 = normalIk1.getSite().getProgramCounter();
  irViewer.setIRAndPc(ir2, pc2);
 NormalAllocationInNode normalIk2 = (NormalAllocationInNode) userObject;
 IR ir3 = normalIk2.getNode().getIR();
 int pc3 = normalIk2.getSite().getProgramCounter();
 irViewer.setIRAndPc(ir3, pc3);
} else if (userObject instanceof CGNode){
origin: com.ibm.wala/com.ibm.wala.core

  NormalAllocationInNode normalIk1 = (NormalAllocationInNode) ik;
  IR ir2 = normalIk1.getNode().getIR();
  int pc2 = normalIk1.getSite().getProgramCounter();
  irViewer.setIRAndPc(ir2, pc2);
 NormalAllocationInNode normalIk2 = (NormalAllocationInNode) userObject;
 IR ir3 = normalIk2.getNode().getIR();
 int pc3 = normalIk2.getSite().getProgramCounter();
 irViewer.setIRAndPc(ir3, pc3);
} else if (userObject instanceof CGNode){
com.ibm.wala.classLoaderNewSiteReferencegetProgramCounter

Popular methods of NewSiteReference

  • make
  • getDeclaredType
  • <init>
  • equals
  • hashCode

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • compareTo (BigDecimal)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 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