org.mozilla.javascript.Node.getProp()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 JavaScript  
字(6.0k)|赞(0)|评价(0)|浏览(196)

本文整理了Java中org.mozilla.javascript.Node.getProp()方法的一些代码示例,展示了Node.getProp()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getProp()方法的具体详情如下:
包路径:org.mozilla.javascript.Node
类名称:Node
方法名:getProp

Node.getProp介绍

暂无

代码示例

代码示例来源:origin: geogebra/geogebra

/**
 * Gets the JsDoc Comment object attached to this node.
 * @return the Comment or {@code null} if no JsDoc is attached to
 *     this node
 */
public Comment getJsDocNode() {
  return (Comment) getProp(JSDOC_PROP);
}

代码示例来源:origin: io.apigee/rhino

/**
 * Gets the JsDoc Comment object attached to this node.
 * @return the Comment or {@code null} if no JsDoc is attached to
 *     this node
 */
public Comment getJsDocNode() {
  return (Comment) getProp(JSDOC_PROP);
}

代码示例来源:origin: ro.isdc.wro4j/rhino

/**
 * Gets the JsDoc Comment object attached to this node.
 * @return the Comment or {@code null} if no JsDoc is attached to
 *     this node
 */
public Comment getJsDocNode() {
  return (Comment) getProp(JSDOC_PROP);
}

代码示例来源:origin: com.github.tntim96/rhino

/**
 * Gets the JsDoc Comment object attached to this node.
 * @return the Comment or {@code null} if no JsDoc is attached to
 *     this node
 */
public Comment getJsDocNode() {
  return (Comment) getProp(JSDOC_PROP);
}

代码示例来源:origin: rhino/js

private int getLocalBlockRef(Node node)
{
  Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  return localBlock.getExistingIntProp(Node.LOCAL_PROP);
}

代码示例来源:origin: rhino/js

private int getLocalBlockRegister(Node node)
{
  Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  int localSlot = localBlock.getExistingIntProp(Node.LOCAL_PROP);
  return localSlot;
}

代码示例来源:origin: geogebra/geogebra

private int getLocalBlockRegister(Node node)
{
  Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  int localSlot = localBlock.getExistingIntProp(Node.LOCAL_PROP);
  return localSlot;
}

代码示例来源:origin: geogebra/geogebra

private int getLocalBlockRef(Node node)
{
  Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  return localBlock.getExistingIntProp(Node.LOCAL_PROP);
}

代码示例来源:origin: io.apigee/rhino

private int getLocalBlockRef(Node node)
{
  Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  return localBlock.getExistingIntProp(Node.LOCAL_PROP);
}

代码示例来源:origin: com.github.tntim96/rhino

private int getLocalBlockRef(Node node)
{
  Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  return localBlock.getExistingIntProp(Node.LOCAL_PROP);
}

代码示例来源:origin: ro.isdc.wro4j/rhino

private int getLocalBlockRegister(Node node)
{
  Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  int localSlot = localBlock.getExistingIntProp(Node.LOCAL_PROP);
  return localSlot;
}

代码示例来源:origin: com.sun.phobos/phobos-rhino

private int getLocalBlockRef(Node node)
{
  Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  return localBlock.getExistingIntProp(Node.LOCAL_PROP);
}

代码示例来源:origin: com.sun.phobos/phobos-rhino

private int getLocalBlockRegister(Node node)
{
  Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  int localSlot = localBlock.getExistingIntProp(Node.LOCAL_PROP);
  return localSlot;
}

代码示例来源:origin: io.apigee/rhino

private int getLocalBlockRegister(Node node)
{
  Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  int localSlot = localBlock.getExistingIntProp(Node.LOCAL_PROP);
  return localSlot;
}

代码示例来源:origin: ro.isdc.wro4j/rhino

private int getLocalBlockRef(Node node)
{
  Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  return localBlock.getExistingIntProp(Node.LOCAL_PROP);
}

代码示例来源:origin: com.github.tntim96/rhino

private int getLocalBlockRegister(Node node)
{
  Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  int localSlot = localBlock.getExistingIntProp(Node.LOCAL_PROP);
  return localSlot;
}

代码示例来源:origin: org.odlabs.wiquery/wiquery-compressor

private Node condition() throws IOException, ParserException
{
  mustMatchToken(Token1.LP, "msg.no.paren.cond");
  decompiler.addToken(Token1.LP);
  final Node pn = expr(false);
  mustMatchToken(Token1.RP, "msg.no.paren.after.cond");
  decompiler.addToken(Token1.RP);
  // Report strict warning on code like "if (a = 7) ...". Suppress the
  // warning if the condition is parenthesized, like "if ((a = 7)) ...".
  if (pn.getProp(Node.PARENTHESIZED_PROP) == null
    && (pn.getType() == Token1.SETNAME || pn.getType() == Token1.SETPROP || pn.getType() == Token1.SETELEM))
  {
    addStrictWarning("msg.equal.as.assign", "");
  }
  return pn;
}

代码示例来源:origin: rhino/js

private Node condition()
  throws IOException, ParserException
{
  mustMatchToken(Token.LP, "msg.no.paren.cond");
  decompiler.addToken(Token.LP);
  Node pn = expr(false);
  mustMatchToken(Token.RP, "msg.no.paren.after.cond");
  decompiler.addToken(Token.RP);
  // Report strict warning on code like "if (a = 7) ...". Suppress the
  // warning if the condition is parenthesized, like "if ((a = 7)) ...".
  if (pn.getProp(Node.PARENTHESIZED_PROP) == null &&
    (pn.getType() == Token.SETNAME || pn.getType() == Token.SETPROP ||
     pn.getType() == Token.SETELEM))
  {
    addStrictWarning("msg.equal.as.assign", "");
  }
  return pn;
}

代码示例来源:origin: com.sun.phobos/phobos-rhino

private Node condition()
  throws IOException, ParserException
{
  mustMatchToken(Token.LP, "msg.no.paren.cond");
  decompiler.addToken(Token.LP);
  Node pn = expr(false);
  mustMatchToken(Token.RP, "msg.no.paren.after.cond");
  decompiler.addToken(Token.RP);
  // Report strict warning on code like "if (a = 7) ...". Suppress the
  // warning if the condition is parenthesized, like "if ((a = 7)) ...".
  if (pn.getProp(Node.PARENTHESIZED_PROP) == null &&
    (pn.getType() == Token.SETNAME || pn.getType() == Token.SETPROP ||
     pn.getType() == Token.SETELEM))
  {
    addStrictWarning("msg.equal.as.assign", "");
  }
  return pn;
}

代码示例来源:origin: com.yahoo/yuicompressor

private Node condition()
  throws IOException, ParserException
{
  mustMatchToken(Token.LP, "msg.no.paren.cond");
  decompiler.addToken(Token.LP);
  Node pn = expr(false);
  mustMatchToken(Token.RP, "msg.no.paren.after.cond");
  decompiler.addToken(Token.RP);
  // Report strict warning on code like "if (a = 7) ...". Suppress the
  // warning if the condition is parenthesized, like "if ((a = 7)) ...".
  if (pn.getProp(Node.PARENTHESIZED_PROP) == null &&
    (pn.getType() == Token.SETNAME || pn.getType() == Token.SETPROP ||
     pn.getType() == Token.SETELEM))
  {
    addStrictWarning("msg.equal.as.assign", "");
  }
  return pn;
}

相关文章

微信公众号