/** * Get all variable names captured (visible) by this scope (sans $~ and $_). * * @return a list of variable names */ public final String[] getAllNamesInScope() { return staticScope.getAllNamesInScope(); }
/** * Get all variable names captured (visible) by this scope (sans $~ and $_). * * @return a list of variable names */ public final String[] getAllNamesInScope() { return staticScope.getAllNamesInScope(); }
/** * Get all variable names captured (visible) by this scope (sans $~ and $_). * * @return a list of variable names */ public final String[] getAllNamesInScope() { return staticScope.getAllNamesInScope(); }
/** * Get all variable names captured (visible) by this scope (sans $~ and $_). * * @return a list of variable names */ public final String[] getAllNamesInScope() { return staticScope.getAllNamesInScope(); }
/** * @see org.jruby.parser.StaticScope#getAllNamesInScope() */ public String[] getAllNamesInScope() { String[] variables = enclosingScope.getAllNamesInScope(); String[] ourVariables = getVariables(); // we know variables cannot be null since localstaticscope will create a 0 length one. int newSize = variables.length + ourVariables.length; String[] names = new String[newSize]; System.arraycopy(variables, 0, names, 0, variables.length); System.arraycopy(ourVariables, 0, names, variables.length, ourVariables.length); return names; }
/** * @see org.jruby.parser.StaticScope#getAllNamesInScope() */ public String[] getAllNamesInScope() { String[] variables = enclosingScope.getAllNamesInScope(); String[] ourVariables = getVariables(); // we know variables cannot be null since localstaticscope will create a 0 length one. int newSize = variables.length + ourVariables.length; String[] names = new String[newSize]; System.arraycopy(variables, 0, names, 0, variables.length); System.arraycopy(ourVariables, 0, names, variables.length, ourVariables.length); return names; }
/** * @see org.jruby.parser.StaticScope#getAllNamesInScope() */ public String[] getAllNamesInScope() { String[] names = getVariables(); if (isBlockOrEval) { String[] ourVariables = names; String[] variables = enclosingScope.getAllNamesInScope(); // we know variables cannot be null since this IRStaticScope always returns a non-null array names = new String[variables.length + ourVariables.length]; System.arraycopy(variables, 0, names, 0, variables.length); System.arraycopy(ourVariables, 0, names, variables.length, ourVariables.length); } return names; }
/** * @see org.jruby.parser.StaticScope#getAllNamesInScope() */ public String[] getAllNamesInScope() { String[] names = getVariables(); if (isBlockOrEval) { String[] ourVariables = names; String[] variables = enclosingScope.getAllNamesInScope(); // we know variables cannot be null since this IRStaticScope always returns a non-null array names = new String[variables.length + ourVariables.length]; System.arraycopy(variables, 0, names, 0, variables.length); System.arraycopy(ourVariables, 0, names, variables.length, ourVariables.length); } return names; }
/** * Get all visible variables that we can see from this scope that have been assigned * (e.g. seen so far) * * @return a list of all names (sans $~ and $_ which are special names) */ public String[] getAllNamesInScope() { String[] names = getVariables(); if (isBlockOrEval) { String[] ourVariables = names; String[] variables = enclosingScope.getAllNamesInScope(); // we know variables cannot be null since this IRStaticScope always returns a non-null array names = new String[variables.length + ourVariables.length]; System.arraycopy(variables, 0, names, 0, variables.length); System.arraycopy(ourVariables, 0, names, variables.length, ourVariables.length); } return names; }
/** * Get all visible variables that we can see from this scope that have been assigned * (e.g. seen so far) * * @return a list of all names (sans $~ and $_ which are special names) */ public String[] getAllNamesInScope() { String[] names = getVariables(); if (isBlockOrEval) { String[] ourVariables = names; String[] variables = enclosingScope.getAllNamesInScope(); // we know variables cannot be null since this IRStaticScope always returns a non-null array names = new String[variables.length + ourVariables.length]; System.arraycopy(variables, 0, names, 0, variables.length); System.arraycopy(ourVariables, 0, names, variables.length, ourVariables.length); } return names; }