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

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

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

Node.getExistingIntProp介绍

暂无

代码示例

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

  1. private int getLocalBlockRef(Node node)
  2. {
  3. Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  4. return localBlock.getExistingIntProp(Node.LOCAL_PROP);
  5. }

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

  1. private int getLocalBlockRegister(Node node)
  2. {
  3. Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  4. int localSlot = localBlock.getExistingIntProp(Node.LOCAL_PROP);
  5. return localSlot;
  6. }

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

  1. private int getLocalBlockRef(Node node)
  2. {
  3. Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  4. return localBlock.getExistingIntProp(Node.LOCAL_PROP);
  5. }

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

  1. private int getLocalBlockRegister(Node node)
  2. {
  3. Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  4. int localSlot = localBlock.getExistingIntProp(Node.LOCAL_PROP);
  5. return localSlot;
  6. }

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

  1. private int getLocalBlockRegister(Node node)
  2. {
  3. Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  4. int localSlot = localBlock.getExistingIntProp(Node.LOCAL_PROP);
  5. return localSlot;
  6. }

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

  1. private int getLocalBlockRef(Node node)
  2. {
  3. Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  4. return localBlock.getExistingIntProp(Node.LOCAL_PROP);
  5. }

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

  1. private int getLocalBlockRegister(Node node)
  2. {
  3. Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  4. int localSlot = localBlock.getExistingIntProp(Node.LOCAL_PROP);
  5. return localSlot;
  6. }

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

  1. private int getLocalBlockRef(Node node)
  2. {
  3. Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  4. return localBlock.getExistingIntProp(Node.LOCAL_PROP);
  5. }

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

  1. private int getLocalBlockRef(Node node)
  2. {
  3. Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  4. return localBlock.getExistingIntProp(Node.LOCAL_PROP);
  5. }

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

  1. private int getLocalBlockRegister(Node node)
  2. {
  3. Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  4. int localSlot = localBlock.getExistingIntProp(Node.LOCAL_PROP);
  5. return localSlot;
  6. }

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

  1. private int getLocalBlockRef(Node node)
  2. {
  3. Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  4. return localBlock.getExistingIntProp(Node.LOCAL_PROP);
  5. }

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

  1. private int getLocalBlockRegister(Node node)
  2. {
  3. Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
  4. int localSlot = localBlock.getExistingIntProp(Node.LOCAL_PROP);
  5. return localSlot;
  6. }

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

  1. private boolean getterSetterProperty(ObjArray elems, Object property,
  2. boolean isGetter) throws IOException {
  3. Node f = function(FunctionNode.FUNCTION_EXPRESSION);
  4. if (f.getType() != Token.FUNCTION) {
  5. reportError("msg.bad.prop");
  6. return false;
  7. }
  8. int fnIndex = f.getExistingIntProp(Node.FUNCTION_PROP);
  9. FunctionNode fn = currentScriptOrFn.getFunctionNode(fnIndex);
  10. if (fn.getFunctionName().length() != 0) {
  11. reportError("msg.bad.prop");
  12. return false;
  13. }
  14. elems.add(property);
  15. if (isGetter) {
  16. elems.add(nf.createUnary(Token.GET, f));
  17. } else {
  18. elems.add(nf.createUnary(Token.SET, f));
  19. }
  20. return true;
  21. }
  22. }

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

  1. private boolean getterSetterProperty(ObjArray elems, Object property,
  2. boolean isGetter) throws IOException {
  3. Node f = function(FunctionNode.FUNCTION_EXPRESSION);
  4. if (f.getType() != Token.FUNCTION) {
  5. reportError("msg.bad.prop");
  6. return false;
  7. }
  8. int fnIndex = f.getExistingIntProp(Node.FUNCTION_PROP);
  9. FunctionNode fn = currentScriptOrFn.getFunctionNode(fnIndex);
  10. if (fn.getFunctionName().length() != 0) {
  11. reportError("msg.bad.prop");
  12. return false;
  13. }
  14. elems.add(property);
  15. if (isGetter) {
  16. elems.add(nf.createUnary(Token.GET, f));
  17. } else {
  18. elems.add(nf.createUnary(Token.SET, f));
  19. }
  20. return true;
  21. }
  22. }

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

  1. private boolean getterSetterProperty(ObjArray elems, Object property,
  2. boolean isGetter) throws IOException {
  3. Node f = function(FunctionNode.FUNCTION_EXPRESSION);
  4. if (f.getType() != Token.FUNCTION) {
  5. reportError("msg.bad.prop");
  6. return false;
  7. }
  8. int fnIndex = f.getExistingIntProp(Node.FUNCTION_PROP);
  9. FunctionNode fn = currentScriptOrFn.getFunctionNode(fnIndex);
  10. if (fn.getFunctionName().length() != 0) {
  11. reportError("msg.bad.prop");
  12. return false;
  13. }
  14. elems.add(property);
  15. if (isGetter) {
  16. elems.add(nf.createUnary(Token.GET, f));
  17. } else {
  18. elems.add(nf.createUnary(Token.SET, f));
  19. }
  20. return true;
  21. }
  22. }

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

  1. private boolean getterSetterProperty(final ObjArray elems, final Object property,
  2. final boolean isGetter) throws IOException
  3. {
  4. final Node f = function(FunctionNode.FUNCTION_EXPRESSION);
  5. if (f.getType() != Token1.FUNCTION)
  6. {
  7. reportError("msg.bad.prop");
  8. return false;
  9. }
  10. final int fnIndex = f.getExistingIntProp(Node.FUNCTION_PROP);
  11. final FunctionNode fn = currentScriptOrFn.getFunctionNode(fnIndex);
  12. if (fn.getFunctionName().length() != 0)
  13. {
  14. reportError("msg.bad.prop");
  15. return false;
  16. }
  17. elems.add(property);
  18. if (isGetter)
  19. {
  20. elems.add(nf.createUnary(Token1.GET, f));
  21. }
  22. else
  23. {
  24. elems.add(nf.createUnary(Token1.SET, f));
  25. }
  26. return true;
  27. }
  28. }

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

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

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

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

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

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

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

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

相关文章