congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Clazz.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
aQute.bnd.osgi.Clazz
constructor

Best Java code snippets using aQute.bnd.osgi.Clazz.<init> (Showing top 20 results out of 315)

origin: stackoverflow.com

 function Clazz() {};
Clazz.staticMethod = function() {
  alert('STATIC!!!');
};

Clazz.prototype.func = function() {
  this.constructor.staticMethod();
}

var obj = new Clazz();
obj.func(); // <- Alert's "STATIC!!!"
origin: stackoverflow.com

 foo (new Clazz( )
  {
    // Do stuff.
  });

Clazz bar = (
  new Clazz( )
  {
    // Do stuff.
  });
origin: stackoverflow.com

 // Pass as parameter.
foo(new Clazz( )
  {
    // Do stuff.
  }
);

void func () {
  foo(new Clazz( )
    {
      // Do stuff.
    }
  );
}

// Assign to variable.
Clazz bar = new Clazz( )
  {
    // Do stuff.
  };
origin: stackoverflow.com

 Map <MyKeys, Clazz> zzz = new HashMap<MyKeys, String>();
// this means it won't return null, the value is initialized
zzz.put(MyKeys.BKEY, new Clazz()); 
// this is confusing part ... somevalues might be null
zzz.get(MyKeys.BKEY).setValues(someValues);
Clazz xxx = zzz.get(MyKeys.BKEY); //definitely won't return null
origin: stackoverflow.com

 x.setFoo("new foo");
x = new Clazz();
x.setFoo("yet another foo");
System.out.println(y.getFoo()); // Would print "new foo"
origin: stackoverflow.com

 Clazz instanceOfClazz = new Clazz();
System.out.println(instanceOfClazz.variable);
origin: stackoverflow.com

 public static void main(String[] args) {
 Integer i = Integer.valueOf(300);
 new Clazz() {
  void foo() {
   System.out.println(this.val$i);
  }
 }
 .foo();
}
origin: biz.aQute.bnd/bndlib

/**
 * Find a clazz on the class path. This class has been parsed.
 * 
 * @param path
 * @return
 */
public Clazz findClass(TypeRef typeRef) throws Exception {
  Clazz c = classspace.get(typeRef);
  if (c != null)
    return c;
  c = importedClassesCache.get(typeRef);
  if (c != null)
    return c;
  Resource r = findResource(typeRef.getPath());
  if (r == null) {
    getClass().getClassLoader();
    URL url = ClassLoader.getSystemResource(typeRef.getPath());
    if (url != null)
      r = new URLResource(url);
  }
  if (r != null) {
    c = new Clazz(this, typeRef.getPath(), r);
    c.parseClassFile();
    importedClassesCache.put(typeRef, c);
  }
  return c;
}
origin: biz.aQute/bndlib

/**
 * Find a clazz on the class path. This class has been parsed.
 * 
 * @param path
 * @return
 */
public Clazz findClass(TypeRef typeRef) throws Exception {
  Clazz c = classspace.get(typeRef);
  if (c != null)
    return c;
  c = importedClassesCache.get(typeRef);
  if (c != null)
    return c;
  Resource r = findResource(typeRef.getPath());
  if (r == null) {
    getClass().getClassLoader();
    URL url = ClassLoader.getSystemResource(typeRef.getPath());
    if (url != null)
      r = new URLResource(url);
  }
  if (r != null) {
    c = new Clazz(this, typeRef.getPath(), r);
    c.parseClassFile();
    importedClassesCache.put(typeRef, c);
  }
  return c;
}
origin: com.atlassian.plugins/atlassian-plugins-osgi

if (path.endsWith(".class")) {
  entries.add(path.substring(0, path.length() - ".class".length()));
  final Clazz cls = new Clazz(analyzer, path, new InputStreamResource(new BufferedInputStream(new UnclosableFilterInputStream(zin))));
  final ScanResult scanResult = ClassBinaryScanner.scanClassBinary(cls);
origin: biz.aQute.bnd/biz.aQute.bndlib

/**
 * Find a clazz on the class path. This class has been parsed.
 */
public Clazz findClass(TypeRef typeRef) throws Exception {
  Clazz c = classspace.get(typeRef);
  if (c != null)
    return c;
  c = importedClassesCache.get(typeRef);
  if (c != null)
    return c;
  Resource r = findResource(typeRef.getPath());
  if (r == null) {
    getClass().getClassLoader();
    URL url = ClassLoader.getSystemResource(typeRef.getPath());
    if (url != null)
      r = Resource.fromURL(url, getPlugin(HttpClient.class));
  }
  if (r != null) {
    c = new Clazz(this, typeRef.getPath(), r);
    c.parseClassFile();
    importedClassesCache.put(typeRef, c);
  }
  return c;
}
origin: biz.aQute.bnd/bnd

/**
 * Find a clazz on the class path. This class has been parsed.
 * 
 * @param path
 * @return
 */
public Clazz findClass(TypeRef typeRef) throws Exception {
  Clazz c = classspace.get(typeRef);
  if (c != null)
    return c;
  c = importedClassesCache.get(typeRef);
  if (c != null)
    return c;
  Resource r = findResource(typeRef.getPath());
  if (r == null) {
    getClass().getClassLoader();
    URL url = ClassLoader.getSystemResource(typeRef.getPath());
    if (url != null)
      r = new URLResource(url);
  }
  if (r != null) {
    c = new Clazz(this, typeRef.getPath(), r);
    c.parseClassFile();
    importedClassesCache.put(typeRef, c);
  }
  return c;
}
origin: biz.aQute.bnd/biz.aQute.bnd

/**
 * Find a clazz on the class path. This class has been parsed.
 */
public Clazz findClass(TypeRef typeRef) throws Exception {
  Clazz c = classspace.get(typeRef);
  if (c != null)
    return c;
  c = importedClassesCache.get(typeRef);
  if (c != null)
    return c;
  Resource r = findResource(typeRef.getPath());
  if (r == null) {
    getClass().getClassLoader();
    URL url = ClassLoader.getSystemResource(typeRef.getPath());
    if (url != null)
      r = Resource.fromURL(url, getPlugin(HttpClient.class));
  }
  if (r != null) {
    c = new Clazz(this, typeRef.getPath(), r);
    c.parseClassFile();
    importedClassesCache.put(typeRef, c);
  }
  return c;
}
origin: com.atlassian.plugins/atlassian-plugins-osgi

final ScanResult scanResult = ClassBinaryScanner.scanClassBinary(new Clazz(new Analyzer(), className, classBinaryResource));
origin: biz.aQute.bnd/biz.aQute.bndlib

/**
 * Visit each class on the class path.
 * 
 * @param visitor the visitor
 */
public void visit(ClassVisitor visitor) throws Exception {
  try (Analyzer analyzer = new Analyzer()) {
    for (File f : entries) {
      try (Jar jar = new Jar(f)) {
        for (String path : jar.getResources()
          .keySet()) {
          if (path.endsWith(".class")) {
            Resource r = jar.getResource(path);
            Clazz c = new Clazz(analyzer, path, r);
            c.parseClassFile();
            visitor.visit(c);
          }
        }
      }
    }
  }
}
origin: biz.aQute.bnd/biz.aQute.bndlib

/**
 * Visit each class on the class path.
 * 
 * @param visitor the visitor
 */
public void visit(ClassVisitor visitor) throws Exception {
  try (Analyzer analyzer = new Analyzer()) {
    for (File f : entries) {
      try (Jar jar = new Jar(f)) {
        for (String path : jar.getResources()
          .keySet()) {
          if (path.endsWith(".class")) {
            Resource r = jar.getResource(path);
            Clazz c = new Clazz(analyzer, path, r);
            c.parseClassFile();
            visitor.visit(c);
          }
        }
      }
    }
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

/**
 * Visit each class on the class path.
 * 
 * @param visitor the visitor
 */
public void visit(ClassVisitor visitor) throws Exception {
  try (Analyzer analyzer = new Analyzer()) {
    for (File f : entries) {
      try (Jar jar = new Jar(f)) {
        for (String path : jar.getResources()
          .keySet()) {
          if (path.endsWith(".class")) {
            Resource r = jar.getResource(path);
            Clazz c = new Clazz(analyzer, path, r);
            c.parseClassFile();
            visitor.visit(c);
          }
        }
      }
    }
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

/**
 * Visit each class on the class path.
 * 
 * @param visitor the visitor
 */
public void visit(ClassVisitor visitor) throws Exception {
  try (Analyzer analyzer = new Analyzer()) {
    for (File f : entries) {
      try (Jar jar = new Jar(f)) {
        for (String path : jar.getResources()
          .keySet()) {
          if (path.endsWith(".class")) {
            Resource r = jar.getResource(path);
            Clazz c = new Clazz(analyzer, path, r);
            c.parseClassFile();
            visitor.visit(c);
          }
        }
      }
    }
  }
}
origin: biz.aQute.bnd/bnd

/**
 * Visit each class on the class path.
 * 
 * @param visitor
 *            the visitor
 */
public void visit(ClassVisitor visitor) throws Exception {
  Analyzer analyzer = new Analyzer();
  try {
    for (File f : entries) {
      Jar jar = new Jar(f);
      try {
        for (String path : jar.getResources().keySet()) {
          if (path.endsWith(".class")) {
            Resource r = jar.getResource(path);
            Clazz c = new Clazz(analyzer, path, r);
            c.parseClassFile();
            visitor.visit(c);
          }
        }
      }
      finally {
        jar.close();
      }
    }
  }
  finally {
    analyzer.close();
  }
}
origin: biz.aQute.bnd/bndlib

/**
 * Visit each class on the class path.
 * 
 * @param visitor
 *            the visitor
 */
public void visit(ClassVisitor visitor) throws Exception {
  Analyzer analyzer = new Analyzer();
  try {
    for (File f : entries) {
      Jar jar = new Jar(f);
      try {
        for (String path : jar.getResources().keySet()) {
          if (path.endsWith(".class")) {
            Resource r = jar.getResource(path);
            Clazz c = new Clazz(analyzer, path, r);
            c.parseClassFile();
            visitor.visit(c);
          }
        }
      }
      finally {
        jar.close();
      }
    }
  }
  finally {
    analyzer.close();
  }
}
aQute.bnd.osgiClazz<init>

Popular methods of Clazz

  • parseClassFileWithCollector
  • getClassName
  • getFQN
  • getReferred
  • is
  • isAnnotation
  • isInterface
  • crawl
    We must find Class.forName references ...
  • doAnnotation
  • doAnnotations
  • doAttribute
    Process a single attribute, if not recognized, skip it.
  • doAttributes
    Called for each attribute in the class, field, or method.
  • doAttribute,
  • doAttributes,
  • doCode,
  • doConstantValue,
  • doElementValue,
  • doEnclosingMethod,
  • doExceptions,
  • doInnerClasses,
  • doParameterAnnotations

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • getResourceAsStream (ClassLoader)
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • CodeWhisperer alternatives
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