Codota Logo
AsmEdge.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.sonar.java.bytecode.asm.AsmEdge
constructor

Best Java code snippets using org.sonar.java.bytecode.asm.AsmEdge.<init> (Showing top 18 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.sonarsource.java/java-squid

void addUsesOfClasses(AsmClass[] asmClasses) {
 for (AsmClass asmClass : asmClasses) {
  addEdge(new AsmEdge(this, asmClass, SourceCodeEdgeUsage.USES));
 }
}
origin: org.codehaus.sonar-plugins.java/java-squid

void addThrowsOfClasses(AsmClass[] asmClasses) {
 for (AsmClass asmClass : asmClasses) {
  addEdge(new AsmEdge(this, asmClass, SourceCodeEdgeUsage.THROWS));
 }
}
origin: org.sonarsource.java/java-squid

void addThrowsOfClasses(AsmClass[] asmClasses) {
 for (AsmClass asmClass : asmClasses) {
  addEdge(new AsmEdge(this, asmClass, SourceCodeEdgeUsage.THROWS));
 }
}
origin: org.codehaus.sonar-plugins.java/java-squid

void addUsesOfClasses(AsmClass[] asmClasses) {
 for (AsmClass asmClass : asmClasses) {
  addEdge(new AsmEdge(this, asmClass, SourceCodeEdgeUsage.USES));
 }
}
origin: org.codehaus.sonar-plugins.java/java-squid

void addInterface(AsmClass implementedInterface) {
 addEdge(new AsmEdge(this, implementedInterface, SourceCodeEdgeUsage.IMPLEMENTS));
}
origin: org.codehaus.sonar-plugins.java/java-squid

void setSuperClass(AsmClass superClass) {
 this.superClass = superClass;
 addEdge(new AsmEdge(this, superClass, SourceCodeEdgeUsage.EXTENDS));
}
origin: org.sonarsource.java/java-squid

void setSuperClass(AsmClass superClass) {
 this.superClass = superClass;
 addEdge(new AsmEdge(this, superClass, SourceCodeEdgeUsage.EXTENDS));
}
origin: org.sonarsource.java/java-squid

void addInterface(AsmClass implementedInterface) {
 addEdge(new AsmEdge(this, implementedInterface, SourceCodeEdgeUsage.IMPLEMENTS));
}
origin: org.sonarsource.java/java-squid

@Override
public void visitLdcInsn(Object cst) {
 if (cst instanceof Type) {
  Type type = (Type) cst;
  AsmClass usedClass = asmClassProvider.getClass(type.getInternalName(), DETAIL_LEVEL.NOTHING);
  method.addEdge(new AsmEdge(method, usedClass, SourceCodeEdgeUsage.USES, lineNumber));
 }
 emptyMethod = false;
}
origin: org.codehaus.sonar-plugins.java/java-squid

@Override
public void visitLdcInsn(Object cst) {
 if (cst instanceof Type) {
  Type type = (Type) cst;
  AsmClass usedClass = asmClassProvider.getClass(type.getInternalName(), DETAIL_LEVEL.NOTHING);
  method.addEdge(new AsmEdge(method, usedClass, SourceCodeEdgeUsage.USES, lineNumber));
 }
 emptyMethod = false;
}
origin: org.codehaus.sonar-plugins.java/java-squid

@Override
public void visitTypeInsn(int opcode, String internalName) {
 AsmClass usedClass = asmClassProvider.getClass(internalName, DETAIL_LEVEL.NOTHING);
 method.addEdge(new AsmEdge(method, usedClass, SourceCodeEdgeUsage.USES, lineNumber));
 emptyMethod = false;
}
origin: org.sonarsource.java/java-squid

@Override
public void visitTypeInsn(int opcode, String internalName) {
 AsmClass usedClass = asmClassProvider.getClass(internalName, DETAIL_LEVEL.NOTHING);
 method.addEdge(new AsmEdge(method, usedClass, SourceCodeEdgeUsage.USES, lineNumber));
 emptyMethod = false;
}
origin: org.sonarsource.java/java-squid

@Override
public void visitTryCatchBlock(Label start, Label end, Label handler, String exception) {
 if (exception != null) {
  AsmClass exceptionClass = asmClassProvider.getClass(exception, DETAIL_LEVEL.NOTHING);
  method.addEdge(new AsmEdge(method, exceptionClass, SourceCodeEdgeUsage.USES, lineNumber));
 }
 emptyMethod = false;
}
origin: org.codehaus.sonar-plugins.java/java-squid

@Override
public void visitTryCatchBlock(Label start, Label end, Label handler, String exception) {
 if (exception != null) {
  AsmClass exceptionClass = asmClassProvider.getClass(exception, DETAIL_LEVEL.NOTHING);
  method.addEdge(new AsmEdge(method, exceptionClass, SourceCodeEdgeUsage.USES, lineNumber));
 }
 emptyMethod = false;
}
origin: org.codehaus.sonar-plugins.java/java-squid

@Override
public void visitFieldInsn(int opcode, String owner, String fieldName, String fieldDescription) {
 AsmClass targetClass = asmClassProvider.getClass(owner, DETAIL_LEVEL.NOTHING);
 AsmField targetField = targetClass.getFieldOrCreateIt(fieldName);
 method.addEdge(new AsmEdge(method, targetField, SourceCodeEdgeUsage.CALLS_FIELD, lineNumber));
 emptyMethod = false;
}
origin: org.sonarsource.java/java-squid

@Override
public void visitFieldInsn(int opcode, String owner, String fieldName, String fieldDescription) {
 AsmClass targetClass = asmClassProvider.getClass(owner, DETAIL_LEVEL.NOTHING);
 AsmField targetField = targetClass.getFieldOrCreateIt(fieldName);
 method.addEdge(new AsmEdge(method, targetField, SourceCodeEdgeUsage.CALLS_FIELD, lineNumber));
 emptyMethod = false;
}
origin: org.codehaus.sonar-plugins.java/java-squid

@Override
public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) {
 if (isNotCallToJavaArrayMethod(owner)) {
  AsmClass targetClass = asmClassProvider.getClass(owner, DETAIL_LEVEL.STRUCTURE);
  AsmMethod targetMethod = targetClass.getMethodOrCreateIt(name + desc);
  method.addEdge(new AsmEdge(method, targetMethod, SourceCodeEdgeUsage.CALLS_METHOD, lineNumber));
 }
 emptyMethod = false;
}
origin: org.sonarsource.java/java-squid

@Override
public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) {
 if (isNotCallToJavaArrayMethod(owner)) {
  AsmClass targetClass = asmClassProvider.getClass(owner, DETAIL_LEVEL.STRUCTURE);
  AsmMethod targetMethod = targetClass.getMethodOrCreateIt(name + desc);
  method.addEdge(new AsmEdge(method, targetMethod, SourceCodeEdgeUsage.CALLS_METHOD, lineNumber));
 }
 emptyMethod = false;
}
org.sonar.java.bytecode.asmAsmEdge<init>

Popular methods of AsmEdge

  • getTargetAsmClass
  • getTo
  • getUsage
  • getFrom
  • getSourceLineNumber

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Collectors (java.util.stream)
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • JButton (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now