Tabnine Logo
AstWriteNotifyNode
Code IndexAdd Tabnine to your IDE (free)

How to use
AstWriteNotifyNode
in
org.kaazing.k3po.lang.internal.ast

Best Java code snippets using org.kaazing.k3po.lang.internal.ast.AstWriteNotifyNode (Showing top 8 results out of 315)

origin: k3po/k3po

public StreamNested(R builder) {
  super(new AstWriteNotifyNode(), builder);
}
origin: k3po/k3po

public AstWriteNotifyNodeBuilder setBarrierName(String barrierName) {
  node.setBarrierName(barrierName);
  return this;
}
origin: k3po/k3po

@Override
public Configuration visit(AstWriteNotifyNode node, State state) {
  RegionInfo regionInfo = node.getRegionInfo();
  String barrierName = node.getBarrierName();
  Barrier barrier = state.lookupBarrier(barrierName);
  NotifyBarrierHandler handler = new NotifyBarrierHandler(barrier);
  handler.setRegionInfo(regionInfo);
  Map<String, ChannelHandler> pipelineAsMap = state.pipelineAsMap;
  String handlerName = String.format("write.notify#%d", pipelineAsMap.size() + 1);
  pipelineAsMap.put(handlerName, handler);
  state.configuration.getBarriers().add(barrier);
  return state.configuration;
}
origin: k3po/k3po

@Override
public AstWriteNotifyNode visitWriteNotifyNode(WriteNotifyNodeContext ctx) {
  node = new AstWriteNotifyNode();
  node.setRegionInfo(asSequentialRegion(childInfos, ctx));
  node.setBarrierName(ctx.Name().getText());
  return node;
}
origin: k3po/k3po

  @Override
  protected void describe(StringBuilder buf) {
    super.describe(buf);
    buf.append(format("write notify %s\n", getBarrierName()));
  }
}
origin: k3po/k3po

@Override
public AstWriteNotifyNode visitWriteNotifyNode(WriteNotifyNodeContext ctx) {
  AstWriteNotifyNodeVisitor visitor = new AstWriteNotifyNodeVisitor(factory, environment);
  AstWriteNotifyNode writeNotifyNode = visitor.visitWriteNotifyNode(ctx);
  if (writeNotifyNode != null) {
    childInfos().add(writeNotifyNode.getRegionInfo());
  }
  return writeNotifyNode;
}
origin: k3po/k3po

public StreamNested<R> setBarrierName(String barrierName) {
  node.setBarrierName(barrierName);
  return this;
}
origin: k3po/k3po

public AstWriteNotifyNodeBuilder() {
  this(new AstWriteNotifyNode());
}
org.kaazing.k3po.lang.internal.astAstWriteNotifyNode

Most used methods

  • getBarrierName
  • getRegionInfo
  • <init>
  • setBarrierName
  • setRegionInfo

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • compareTo (BigDecimal)
  • String (java.lang)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JTable (javax.swing)
  • Join (org.hibernate.mapping)
  • 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