<code>optional string app_name_setter = 5;</code>

<pre>
name of function(&lt;string&gt;);
used to inform the harness about the app name
</pre>
425196
public com.google.protobuf.ByteString
      getAppNameSetterBytes() {
    java.lang.Object ref = appNameSetter_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      appNameSetter_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }
282217
private void checkStringIsValidName(final String s) throws PackageNameException {
        final boolean packageContainsJavaKeyword = javaKeywords.stream().anyMatch(s::equals);
        if (packageContainsJavaKeyword || s.matches("\\d.*")) {
            throw new PackageNameException("string is not valid");
        }
    }
931409
private String getLabelNameForFunction(String fnName) {
    String name = (isNullOrEmpty(fnName)) ? "anon" : fnName;
    return "JSCompiler_inline_label_" + name + "_" + safeNameIdSupplier.get();
  }
799732
protected final void setApplicationName(String applicationName) throws IllegalArgumentException {
        validateNotEmpty(applicationName, "applicationName");
        synchronized (this) {
            properties.put(APPLICATION_NAME, applicationName);
        }
    }
1288217
public static String getStringValue(String appName, String key, String defaultValue) {
        String ret = getStringValue0(appName, key);
        return StringUtils.isEmpty(ret) ? defaultValue : ret.trim();
    }
1374989
private static String getSetterName(Method m) {
        String name = m.getName();
        if (name.startsWith("set") && (name.length() >= 4)
                && m.getReturnType().equals(void.class)
                && (m.getParameterTypes().length == 1)
        ) {
            return Character.toLowerCase(name.charAt(3)) + name.substring(4);
        }
        return null;
    }
397757
function getFunctionName(aFunction) {
    var regexpResult = aFunction.toString().match(/function (\w*)/);
    if (regexpResult && regexpResult[1]) {
        return regexpResult[1];
    }
    return 'anonymous';
}
37899
private synchronized AppModuleName addAppModuleNames(String appName, String moduleAndAppName) {
        HashSet<String> moduleNames = null;
        String moduleName = moduleAndAppName.split("#")[1];
        if (appModules.containsKey(appName)) {
            moduleNames = (HashSet<String>) appModules.get(appName);
            moduleNames.add(moduleName);
        } else {
            moduleNames = new HashSet<String>();
            moduleNames.add(moduleName);
            appModules.put(appName, moduleNames);
        }

        if (tc.isDebugEnabled())
            Tr.debug(tc, "addAppModuleNames(): modules added = " + appModules.toString() + " for app: " + appName);

        AppModuleName retVal = new AppModuleName();
        retVal.appName = appName;
        retVal.moduleName = moduleName;
        return retVal;
    }
199754
public String getBindingListenerName() {
        ServiceReference<?> ref = bindingListener.getServiceReference();
        Object serviceDescription = ref.getProperty(Constants.SERVICE_DESCRIPTION);
        if (serviceDescription instanceof String) {
            return (String) serviceDescription;
        }

        return bindingListener.getService().getClass().getName() + " (" + ref.getBundle().getSymbolicName() + ')';
    }
148805
@Override
    public void setCustomSetString(String setting, Boolean recursive) {
        if (tc.isEntryEnabled())
            Tr.entry(tc, "setCustomSetString (String, Boolean): " + setting);

        setInstrumentationLevel(_createSLSFromString(setting), recursive);

        if (tc.isEntryEnabled())
            Tr.exit(tc, "setCustomSetString");
    }
417069
public static String getAppName() {
		String appName=System.getProperty(JKContextConstants.JK_APP_NAME);
		if (appName == null) {
			String mainClassName = JKDebugUtil.getMainClassName();
			return mainClassName.substring(0, mainClassName.lastIndexOf("."));
		}
		return appName;
	}
178083
private void setBindingName() // d681743
    throws InjectionException
    {
        Map<String, String> ejbRefBindings = ivNameSpaceConfig.getEJBRefBindings();
        if (ejbRefBindings != null)
        {
            ivBindingName = ejbRefBindings.get(getJndiName());

            if (ivBindingName != null && ivBindingName.equals(""))
            {
                ivBindingName = null;
                Tr.warning(tc, "EJB_BOUND_TO_EMPTY_STRING_CWNEN0025W");
                if (isValidationFailable()) // fail if enabled       F743-14449
                {
                    InjectionConfigurationException icex = new InjectionConfigurationException
                                    ("The " + getJndiName() + " EJB reference in the " + ivModule +
                                     " module of the " + ivApplication + " application has been" +
                                     " bound to the empty string in the global Java Naming and Directory Interface (JNDI) namespace.");
                    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                        Tr.exit(tc, "resolve : " + icex);
                    throw icex;
                }
            }
        }
    }
864990
public String getName()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getName");
    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
      SibTr.debug(tc, "No implementation");
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getName", null);
    return null;
  }
948924
@Override
  public String generateNextName() {
    String name;
    do {
      name = prefix;
      int i = nameCount;

      if (name.isEmpty()) {
        int pos = i % firstChars.length;
        name = String.valueOf(firstChars[pos].name);
        i /= firstChars.length;
      }

      while (i > 0) {
        i--;
        int pos = i % nonFirstChars.length;
        name += nonFirstChars[pos].name;
        i /= nonFirstChars.length;
      }

      nameCount++;

      // Make sure it's not a JS keyword or reserved name.
    } while (TokenStream.isKeyword(name) || reservedNames.contains(name));

    return name;
  }
675722
public static function getApplicationName():?string
    {
        if (self::isCliApp()) {
            return self::$APPLICATION_NAME;
        }

        return MSession::get(MCoreApplication::APPLICATION_NAME);
    }
766998
void setAppName(final String appName) {
        if (clusterId.applicationName != null && !clusterId.applicationName.equals(appName))
            throw new IllegalStateException("Restting the application name on a cluster is not allowed.");
        clusterId = new ClusterId(appName, clusterId.clusterName);
    }
1124492
public static final void setApplId(byte[] name)
    {
        if (tc.isDebugEnabled())
            Tr.debug(tc, "setApplId", name);

        // Store the applId.
        applId = name;
    }