Tabnine Logo
FunctionNode.getParamCount
Code IndexAdd Tabnine to your IDE (free)

How to use
getParamCount
method
in
org.mozilla.javascript.FunctionNode

Best Java code snippets using org.mozilla.javascript.FunctionNode.getParamCount (Showing top 20 results out of 315)

origin: rhino/js

boolean isNumberVar(int varIndex)
{
  varIndex -= fnode.getParamCount();
  if (varIndex >= 0 && numberVarFlags != null) {
    return numberVarFlags[varIndex];
  }
  return false;
}
origin: com.sun.phobos/phobos-rhino

boolean isNumberVar(int varIndex)
{
  varIndex -= fnode.getParamCount();
  if (varIndex >= 0 && numberVarFlags != null) {
    return numberVarFlags[varIndex];
  }
  return false;
}
origin: rhino/js

boolean isParameter(int varIndex)
{
  return varIndex < fnode.getParamCount();
}
origin: com.sun.phobos/phobos-rhino

boolean isParameter(int varIndex)
{
  return varIndex < fnode.getParamCount();
}
origin: rhino/js

void setIsNumberVar(int varIndex)
{
  varIndex -= fnode.getParamCount();
  // Can only be used with non-parameters
  if (varIndex < 0) Kit.codeBug();
  if (numberVarFlags == null) {
    int size = fnode.getParamAndVarCount() - fnode.getParamCount();
    numberVarFlags = new boolean[size];
  }
  numberVarFlags[varIndex] = true;
}
origin: com.sun.phobos/phobos-rhino

void setIsNumberVar(int varIndex)
{
  varIndex -= fnode.getParamCount();
  // Can only be used with non-parameters
  if (varIndex < 0) Kit.codeBug();
  if (numberVarFlags == null) {
    int size = fnode.getParamAndVarCount() - fnode.getParamCount();
    numberVarFlags = new boolean[size];
  }
  numberVarFlags[varIndex] = true;
}
origin: rhino/js

String getBodyMethodSignature(ScriptOrFnNode n)
{
  StringBuffer sb = new StringBuffer();
  sb.append('(');
  sb.append(mainClassSignature);
  sb.append("Lorg/mozilla/javascript/Context;"
       +"Lorg/mozilla/javascript/Scriptable;"
       +"Lorg/mozilla/javascript/Scriptable;");
  if (n.getType() == Token.FUNCTION) {
    OptFunctionNode ofn = OptFunctionNode.get(n);
    if (ofn.isTargetOfDirectCall()) {
      int pCount = ofn.fnode.getParamCount();
      for (int i = 0; i != pCount; i++) {
        sb.append("Ljava/lang/Object;D");
      }
    }
  }
  sb.append("[Ljava/lang/Object;)Ljava/lang/Object;");
  return sb.toString();
}
origin: com.sun.phobos/phobos-rhino

String getBodyMethodSignature(ScriptOrFnNode n)
{
  StringBuffer sb = new StringBuffer();
  sb.append('(');
  sb.append(mainClassSignature);
  sb.append("Lorg/mozilla/javascript/Context;"
       +"Lorg/mozilla/javascript/Scriptable;"
       +"Lorg/mozilla/javascript/Scriptable;");
  if (n.getType() == Token.FUNCTION) {
    OptFunctionNode ofn = OptFunctionNode.get(n);
    if (ofn.isTargetOfDirectCall()) {
      int pCount = ofn.fnode.getParamCount();
      for (int i = 0; i != pCount; i++) {
        sb.append("Ljava/lang/Object;D");
      }
    }
  }
  sb.append("[Ljava/lang/Object;)Ljava/lang/Object;");
  return sb.toString();
}
origin: rhino/js

static void runFlowAnalyzes(OptFunctionNode fn, Node[] statementNodes)
  int paramCount = fn.fnode.getParamCount();
  int varCount = fn.fnode.getParamAndVarCount();
  int[] varTypes = new int[varCount];
origin: com.sun.phobos/phobos-rhino

static void runFlowAnalyzes(OptFunctionNode fn, Node[] statementNodes)
  int paramCount = fn.fnode.getParamCount();
  int varCount = fn.fnode.getParamAndVarCount();
  int[] varTypes = new int[varCount];
origin: rhino/js

String name = ofn.getFunctionName();
if (name != null && name.length() != 0) {
  functionNames.put(name, ofn.getParamCount());
origin: com.sun.phobos/phobos-rhino

String name = ofn.getFunctionName();
if (name != null && name.length() != 0) {
  functionNames.put(name, ofn.getParamCount());
origin: com.sun.phobos/phobos-rhino

ofn = (OptFunctionNode)possibleDirectCalls.get(targetName);
if (ofn != null
  && argCount == ofn.fnode.getParamCount()
  && !ofn.fnode.requiresActivation())
origin: rhino/js

ofn = possibleDirectCalls.get(targetName);
if (ofn != null
  && argCount == ofn.fnode.getParamCount()
  && !ofn.fnode.requiresActivation())
origin: rhino/js

            | ClassFileWriter.ACC_PRIVATE));
int argCount = ofn.fnode.getParamCount();
int firstLocal = (4 + argCount * 3) + 1;
origin: com.sun.phobos/phobos-rhino

            | ClassFileWriter.ACC_PRIVATE));
int argCount = ofn.fnode.getParamCount();
int firstLocal = (4 + argCount * 3) + 1;
origin: rhino/js

OptFunctionNode ofn = OptFunctionNode.get(n);
if (ofn.isTargetOfDirectCall()) {
  int pcount = ofn.fnode.getParamCount();
  if (pcount != 0) {
origin: com.sun.phobos/phobos-rhino

OptFunctionNode ofn = OptFunctionNode.get(n);
if (ofn.isTargetOfDirectCall()) {
  int pcount = ofn.fnode.getParamCount();
  if (pcount != 0) {
origin: rhino/js

int paramCount = fnCurrent.fnode.getParamCount();
int varCount = fnCurrent.fnode.getParamAndVarCount();
boolean [] constDeclarations = fnCurrent.fnode.getParamAndVarConst();
origin: com.sun.phobos/phobos-rhino

int paramCount = fnCurrent.fnode.getParamCount();
int varCount = fnCurrent.fnode.getParamAndVarCount();
boolean [] constDeclarations = fnCurrent.fnode.getParamAndVarConst();
org.mozilla.javascriptFunctionNodegetParamCount

Popular methods of FunctionNode

  • getFunctionName
  • setBaseLineno
  • setEncodedSourceBounds
  • setEndLineno
  • setSourceName
  • <init>
  • addChildToBack
  • addParam
  • getCompilerData
  • getFunctionCount
  • getFunctionType
  • getIgnoreDynamicScope
  • getFunctionType,
  • getIgnoreDynamicScope,
  • getLastChild,
  • getParamAndVarConst,
  • getParamAndVarCount,
  • getParamOrVarName,
  • getRegexpCount,
  • hasParamOrVar,
  • requiresActivation

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top plugins for Android Studio
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