Codota Logo
AsmMethod.setAccessFlags
Code IndexAdd Codota to your IDE (free)

How to use
setAccessFlags
method
in
org.sonar.java.bytecode.asm.AsmMethod

Best Java code snippets using org.sonar.java.bytecode.asm.AsmMethod.setAccessFlags (Showing top 2 results out of 315)

  • Common ways to obtain AsmMethod
private void myMethod () {
AsmMethod a =
  • Codota IconAsmEdge asmEdge;(AsmMethod) asmEdge.getTo()
  • Smart code suggestions by Codota
}
origin: org.codehaus.sonar-plugins.java/java-squid

@Override
public MethodVisitor visitMethod(int access, String methodName, String description, String signature, String[] exceptions) {
 AsmMethod method = asmClass.getMethodOrCreateIt(methodName + description);
 if (isInheritedMethodSignature(method.getParent(), method.getKey())) {
  method.setInherited(true);
 }
 method.setSignature(signature);
 method.setBodyLoaded(true);
 method.setAccessFlags(access);
 method.clearOutogingEdges();
 String[] internalNames = AsmSignature.extractInternalNames(description, signature);
 AsmClass[] asmClasses = internalNamesToAsmClasses(internalNames, DETAIL_LEVEL.NOTHING);
 method.addUsesOfClasses(asmClasses);
 AsmClass[] asmExceptionClasses = internalNamesToAsmClasses(exceptions, DETAIL_LEVEL.STRUCTURE);
 method.addUsesOfClasses(asmExceptionClasses);
 method.addThrowsOfClasses(asmExceptionClasses);
 if (level == DETAIL_LEVEL.STRUCTURE_AND_CALLS) {
  return new AsmMethodVisitor(method, asmClassProvider);
 }
 return null;
}
origin: org.sonarsource.java/java-squid

@Override
public MethodVisitor visitMethod(int access, String methodName, String description, String signature, String[] exceptions) {
 AsmMethod method = asmClass.getMethodOrCreateIt(methodName + description);
 if (isInheritedMethodSignature(method.getParent(), method.getKey())) {
  method.setInherited(true);
 }
 method.setSignature(signature);
 method.setBodyLoaded(true);
 method.setAccessFlags(access);
 method.clearOutogingEdges();
 String[] internalNames = AsmSignature.extractInternalNames(description, signature);
 AsmClass[] asmClasses = internalNamesToAsmClasses(internalNames, DETAIL_LEVEL.NOTHING);
 method.addUsesOfClasses(asmClasses);
 AsmClass[] asmExceptionClasses = internalNamesToAsmClasses(exceptions, DETAIL_LEVEL.STRUCTURE);
 method.addUsesOfClasses(asmExceptionClasses);
 method.addThrowsOfClasses(asmExceptionClasses);
 if (level == DETAIL_LEVEL.STRUCTURE_AND_CALLS) {
  return new AsmMethodVisitor(method, asmClassProvider);
 }
 return null;
}
org.sonar.java.bytecode.asmAsmMethodsetAccessFlags

Popular methods of AsmMethod

  • getGenericKey
  • getKey
  • getParent
  • isConstructor
  • isUsed
  • <init>
  • addEdge
  • addThrowsOfClasses
  • addUsesOfClasses
  • clearOutogingEdges
  • computeAccessedField
  • getAccessedField
  • computeAccessedField,
  • getAccessedField,
  • getOutgoingEdges,
  • isAccessor,
  • isBodyLoaded,
  • isCallToNonStaticInternalField,
  • isCallToNonStaticInternalMethod,
  • isFieldAccesingDifferentField,
  • isMethodNotAccessorOrAccessingDifferentField,
  • isStatic

Popular in Java

  • Updating database using SQL prepared statement
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
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