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

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

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

Node.getExistingIntProp介绍

暂无

代码示例

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

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: 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: 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: 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: 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: rhino/js

private boolean getterSetterProperty(ObjArray elems, Object property,
                     boolean isGetter) throws IOException {
    Node f = function(FunctionNode.FUNCTION_EXPRESSION);
    if (f.getType() != Token.FUNCTION) {
      reportError("msg.bad.prop");
      return false;
    }
    int fnIndex = f.getExistingIntProp(Node.FUNCTION_PROP);
    FunctionNode fn = currentScriptOrFn.getFunctionNode(fnIndex);
    if (fn.getFunctionName().length() != 0) {
      reportError("msg.bad.prop");
      return false;
    }
    elems.add(property);
    if (isGetter) {
      elems.add(nf.createUnary(Token.GET, f));
    } else {
      elems.add(nf.createUnary(Token.SET, f));
    }
    return true;
  }
}

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

private boolean getterSetterProperty(ObjArray elems, Object property,
                     boolean isGetter) throws IOException {
    Node f = function(FunctionNode.FUNCTION_EXPRESSION);
    if (f.getType() != Token.FUNCTION) {
      reportError("msg.bad.prop");
      return false;
    }
    int fnIndex = f.getExistingIntProp(Node.FUNCTION_PROP);
    FunctionNode fn = currentScriptOrFn.getFunctionNode(fnIndex);
    if (fn.getFunctionName().length() != 0) {
      reportError("msg.bad.prop");
      return false;
    }
    elems.add(property);
    if (isGetter) {
      elems.add(nf.createUnary(Token.GET, f));
    } else {
      elems.add(nf.createUnary(Token.SET, f));
    }
    return true;
  }
}

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

private boolean getterSetterProperty(ObjArray elems, Object property,
                     boolean isGetter) throws IOException {
    Node f = function(FunctionNode.FUNCTION_EXPRESSION);
    if (f.getType() != Token.FUNCTION) {
      reportError("msg.bad.prop");
      return false;
    }
    int fnIndex = f.getExistingIntProp(Node.FUNCTION_PROP);
    FunctionNode fn = currentScriptOrFn.getFunctionNode(fnIndex);
    if (fn.getFunctionName().length() != 0) {
      reportError("msg.bad.prop");
      return false;
    }
    elems.add(property);
    if (isGetter) {
      elems.add(nf.createUnary(Token.GET, f));
    } else {
      elems.add(nf.createUnary(Token.SET, f));
    }
    return true;
  }
}

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

private boolean getterSetterProperty(final ObjArray elems, final Object property,
      final boolean isGetter) throws IOException
  {
    final Node f = function(FunctionNode.FUNCTION_EXPRESSION);
    if (f.getType() != Token1.FUNCTION)
    {
      reportError("msg.bad.prop");
      return false;
    }
    final int fnIndex = f.getExistingIntProp(Node.FUNCTION_PROP);
    final FunctionNode fn = currentScriptOrFn.getFunctionNode(fnIndex);
    if (fn.getFunctionName().length() != 0)
    {
      reportError("msg.bad.prop");
      return false;
    }
    elems.add(property);
    if (isGetter)
    {
      elems.add(nf.createUnary(Token1.GET, f));
    }
    else
    {
      elems.add(nf.createUnary(Token1.SET, f));
    }
    return true;
  }
}

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

private void visitIncDec(Node node, Node child)
  int incrDecrMask = node.getExistingIntProp(Node.INCRDECR_PROP);
  int childType = child.getType();
  switch (childType) {

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

private void visitIncDec(Node node, Node child)
  int incrDecrMask = node.getExistingIntProp(Node.INCRDECR_PROP);
  int childType = child.getType();
  switch (childType) {

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

private void visitIncDec(Node node, Node child)
  int incrDecrMask = node.getExistingIntProp(Node.INCRDECR_PROP);
  int childType = child.getType();
  switch (childType) {

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

private void visitIncDec(Node node, Node child)
  int incrDecrMask = node.getExistingIntProp(Node.INCRDECR_PROP);
  int childType = child.getType();
  switch (childType) {

相关文章

微信公众号