Codota Logo
NodeField
Code IndexAdd Codota to your IDE (free)

How to use
NodeField
in
com.oracle.truffle.api.dsl

Best Java code snippets using com.oracle.truffle.api.dsl.NodeField (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: cesquivias/mumbler

@NodeField(name = "slot", type = FrameSlot.class)
public abstract class SymbolNode extends MumblerNode {

  public abstract FrameSlot getSlot();

  @Override
  public String toString() {
    return "'" + this.getSlot().getIdentifier();
  }
}

origin: sh286/LuaTruffle

/**
 * Created by Lucas Allan Amorim on 2014-09-14.
 */
@NodeField(name = "slot", type = FrameSlot.class)
public class LuaReadArgumentNode extends LuaExpressionNode {

  private final int index;

  public LuaReadArgumentNode(int index) {
    this.index = index;
  }

  @Override
  public Object execute(VirtualFrame frame) {
    Object[] args = frame.getArguments();
    if (index < args.length) {
      return args[index];
    } else {
      return LuaNull.SINGLETON;
    }
  }

}

origin: cesquivias/mumbler

@NodeField(name = "globalFrame", type = MaterializedFrame.class)
public abstract class GlobalSymbolNode extends SymbolNode {

  public abstract MaterializedFrame getGlobalFrame();

  @Specialization(rewriteOn = FrameSlotTypeException.class)
  protected long readLong(VirtualFrame virtualFrame)
      throws FrameSlotTypeException {
    return this.getGlobalFrame().getLong(this.getSlot());
  }

  @Specialization(rewriteOn = FrameSlotTypeException.class)
  protected boolean readBoolean(VirtualFrame virtualFrame)
      throws FrameSlotTypeException {
    return this.getGlobalFrame().getBoolean(this.getSlot());
  }

  @Specialization(rewriteOn = FrameSlotTypeException.class)
  protected Object readObject(VirtualFrame virtualFrame)
      throws FrameSlotTypeException {
    return this.getGlobalFrame().getObject(this.getSlot());
  }

  @Specialization(contains = { "readLong", "readBoolean", "readObject", })
  protected Object read(VirtualFrame virtualFrame) {
    return this.getGlobalFrame().getValue(this.getSlot());
  }
}

origin: sh286/LuaTruffle

/**
 * Created by Lucas Allan Amorim on 2014-09-15.
 */
@NodeField(name = "slot", type = FrameSlot.class)
public abstract class LuaReadLocalVariableNode extends LuaExpressionNode {

  protected abstract FrameSlot getSlot();

  @Specialization(rewriteOn = FrameSlotTypeException.class)
  protected long readLong(VirtualFrame frame) throws FrameSlotTypeException {
    return frame.getLong(getSlot());
  }

  @Specialization(rewriteOn = FrameSlotTypeException.class)
  protected boolean readBoolean(VirtualFrame frame) throws FrameSlotTypeException {
    return frame.getBoolean(getSlot());
  }

  @Specialization(rewriteOn = FrameSlotTypeException.class)
  protected Object readObject(VirtualFrame frame) throws FrameSlotTypeException {
    return frame.getObject(getSlot());
  }

  @Specialization(contains = {"readLong", "readBoolean", "readObject"})
  protected Object read(VirtualFrame frame) {
    return frame.getValue(getSlot());
  }
}

origin: cesquivias/mumbler

@NodeField(name = "function", type = MumblerFunction.class)
public abstract class LambdaNode extends MumblerNode {
  public abstract MumblerFunction getFunction();
origin: cesquivias/mumbler

@NodeField(name = "depth", type = int.class)
public abstract class ClosureSymbolNode extends SymbolNode {
origin: cesquivias/mumbler

@NodeChild("literalNode")
@NodeField(name = "kind", type = QuoteKind.class)
public abstract class QuoteNode extends MumblerNode {
  public static enum QuoteKind {
origin: sh286/LuaTruffle

@NodeField(name = "slot", type = FrameSlot.class)
public abstract class LuaWriteLocalVariableNode extends LuaExpressionNode {
origin: cesquivias/mumbler

@NodeChild("valueNode")
@NodeField(name = "slot", type = FrameSlot.class)
public abstract class DefineNode extends MumblerNode {
  protected abstract FrameSlot getSlot();
com.oracle.truffle.api.dslNodeField

Most used methods

  • <init>

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • JPanel (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