Codota Logo
BlockSourceCodeVisitor.visitIf
Code IndexAdd Codota to your IDE (free)

How to use
visitIf
method
in
org.objectweb.fractal.juliac.api.visit.BlockSourceCodeVisitor

Best Java code snippets using org.objectweb.fractal.juliac.api.visit.BlockSourceCodeVisitor.visitIf (Showing top 1 results out of 315)

  • Common ways to obtain BlockSourceCodeVisitor
private void myMethod () {
BlockSourceCodeVisitor b =
  • Codota IconBlockSourceCodeVisitor blockSourceCodeVisitor;Object[] object;blockSourceCodeVisitor.visitln(object)
  • Smart code suggestions by Codota
}
origin: org.ow2.frascati.tinfi/frascati-tinfi-oo

@Override
protected void generateContentChecks( BlockSourceCodeVisitor mv ) {
  
  String ctrlDesc = membraneDesc.getDescriptor();
  String contentClassName =
    JuliacHelper.getContentClassName(ctrlDesc,contentDesc);
  if( contentClassName != null ) {
    InterfaceType[] its = ct.getFcInterfaceTypes();
    for (int i = 0; i < its.length; i++) {
      if( ! its[i].isFcClientItf() ) {
        String signature = its[i].getFcItfSignature();
        BlockSourceCodeVisitor then =
          mv.visitIf(
            "!",signature,".class.isAssignableFrom(",
            contentClassName,".class)");
        then.visitVar(
          "String","msg","\""+contentClassName,"should implement",
          signature+"\"");
        then.visitIns(
          "throw","new",
          InstantiationException.class.getName()+"(msg)");
        then.visitEnd();
      }
    }
  }        
}
org.objectweb.fractal.juliac.api.visitBlockSourceCodeVisitorvisitIf

Popular methods of BlockSourceCodeVisitor

  • visit
  • visitEnd
  • visitIns
  • visitVar
  • visitln
  • visitSet
  • visitTry

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • JLabel (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
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