Creates a new {@code GoogRequire} that requires the given symbol: {@code
goog.require('symbol'); }
777167
public static GoogRequire create(String symbol) {
    return new AutoValue_GoogRequire(
        symbol, GOOG_REQUIRE.call(stringLiteral(symbol)), /*isTypeRequire=*/ false);
  }
561215
public Token add( Symbol symbol ) {
        Token t = new Token(symbol);
        push( t );
        return t;
    }
245041
protected Validator createValidator(FaceletContext ctx)
    {
        if (_delegate.getValidatorId(ctx) == null)
        {
            throw new TagException(_delegate.getTag(), "Default behavior invoked of requiring " +
                    "a validator-id passed in the constructor, must override ValidateHandler(ValidatorConfig)");
        }
        return ctx.getFacesContext().getApplication().createValidator(_delegate.getValidatorId(ctx));
    }
1174409
public void consumeExpectedSymbol(String symbol) {
        if (current().matches(Token.TokenType.SYMBOL, symbol)) {
            consume();
        } else {
            addError(current(), "Unexpected token: '%s'. Expected: '%s'", current().getSource(), symbol);
        }
    }
184342
public RequestSignerRegistry register(RequestSigner requestSigner, Class<? extends RequestSigner> signerType) {
        Map<Class<? extends RequestSigner>, RequestSigner> registeredSigners = new HashMap<>();
        registeredSigners.putAll(signerForType);
        registeredSigners.put(signerType, requestSigner);
        return new RequestSignerRegistry(registeredSigners);
    }
57259
public static <CS extends CharSequence> CS requireNotNullNorEmpty(CS cs, String message) {
        if (isNullOrEmpty(cs)) {
            throw new IllegalArgumentException(message);
        }
        return cs;
    }
1344558
protected JwtSignatureValidator createSignatureValidator(SignatureAlgorithm alg, Key key) {
        return new DefaultJwtSignatureValidator(alg, key, base64UrlDecoder);
    }
1316681
private static Token createToken(char symbol, StringBuilder nameBuf, StringBuilder valueBuf) {
        String value = null;
        if (valueBuf.length() > 0) {
            value = valueBuf.toString();
            valueBuf.setLength(0); // empty the value buffer
        }

        if (nameBuf.length() > 0) {
            TokenType type = Token.resolveTypeAsSymbol(symbol);
            String name = nameBuf.toString();
            nameBuf.setLength(0); // empty the name buffer

            int offset = name.indexOf(Token.GETTER_SEPARATOR);
            if (offset > -1) {
                String name2 = name.substring(0, offset);
                String getter = name.substring(offset + 1);
                Token token = new Token(type, name2);
                if (!getter.isEmpty()) {
                    token.setGetterName(getter);
                }
                token.setDefaultValue(value);
                return token;
            } else if (value != null) {
                TokenDirectiveType directiveType = TokenDirectiveType.resolve(name);
                if (directiveType != null) {
                    String getter = null;
                    String defaultValue = null;
                    offset = value.indexOf(Token.GETTER_SEPARATOR);
                    if (offset > -1) {
                        String value2 = value.substring(0, offset);
                        String getter2 = value.substring(offset + 1);
                        value = value2;
                        offset = getter2.indexOf(Token.VALUE_SEPARATOR);
                        if (offset > -1) {
                            String getter3 = getter2.substring(0, offset);
                            String value3 = getter2.substring(offset + 1);
                            if (!getter3.isEmpty()) {
                                getter = getter3;
                            }
                            if (!value3.isEmpty()) {
                                defaultValue = value3;
                            }
                        } else {
                            if (!getter2.isEmpty()) {
                                getter = getter2;
                            }
                        }
                    }
                    Token token = new Token(type, directiveType, value);
                    token.setGetterName(getter);
                    token.setDefaultValue(defaultValue);
                    return token;
                } else {
                    Token token = new Token(type, name);
                    token.setDefaultValue(value);
                    return token;
                }
            } else {
                return new Token(type, name);
            }
        } else {
            // when not exists tokenName then tokenType must be TEXT type
            return new Token(value);
        }
    }
878686
public void addRequire(final String id) {
        final PluginRequirement requirement = new PluginRequirement();
        requirement.addPlugins(id);
        requireList.add(requirement);
    }
894052
static Expression id(String id, Iterable<GoogRequire> requires) {
    CodeChunkUtils.checkId(id);
    return Leaf.create(id, /* isCheap= */ true, requires);
  }
589599
public void addRequire(final String id, final String importance) {
        final PluginRequirement requirement = new PluginRequirement();
        requirement.addPlugins(id);
        if (importance != null) {
            requirement.setRequired(importance.equals("required"));
        }
        requireList.add(requirement);
    }
1020154
public GSSCredential createCredential (int usage)
	throws GSSException {
	return createCredential(null,
				GSSCredential.DEFAULT_LIFETIME,
				(Oid)null,
				usage);
    }
845035
function(rec, key) {
        return (function() {
            if (typeof key === "symbol") {
              return undefined;
            }
            if (key === scopeName) {
              return scope;
            }
            if (key === indicator) {
              return proxy;
            }
            if (key.slice(-1) === indicator) {
              builder.pushSingleToken(key.slice(0,key.length-1));
              var classproxy = makeProxy({
                get: function(rec, key) {
                  if (typeof key === "symbol") {
                    return undefined;
                  }
                  builder.addClass(key);
                  return classproxy;
                }
              },
              function(obj) {
                builder.rewriteSingleTokenAttributes(obj);
                return classproxy;
              });
              return classproxy;
            } else if (key.slice(0,1) === indicator) {
              builder.pushEndToken(key.slice(1));
              return {
                valueOf: function() {
                  if (shortcuts.hasOwnProperty(key)) {
                    var args = builder.dropLastToken();

                    shortcuts[key](builder, scope, args);
                  } else {
                    throw new Error('Attempted to call nonexistant shortcut');
                  }
                  return 0;
                }
              }
            }  else {
              builder.pushStartToken(key);
              var classproxy = makeProxy({
                get: function(rec, nkey) {
                  if (typeof nkey === "symbol") {
                    return undefined;
                  }
                  if (nkey === 'valueOf') {
                    if (shortcuts.hasOwnProperty(key)) {
                      var args = builder.dropLastToken();

                      shortcuts[key](builder, scope, args);
                    } else {
                      throw new Error('Attempted to call nonexistant shortcut');
                    }
                    return function() {return 0};
                  }
                  builder.addClass(nkey);
                  return classproxy;
                }
              },
              function(obj) {
                builder.rewriteStartTokenAttributes(obj);
                return classproxy;
              });
              return classproxy;
            }
          })();
      }
1302242
function visitRequireArgument(ast, cb) {
	types.visit(ast, {
		visitCallExpression: function(path) {
			if (this.isRequireExpression(path.node)) {
				var arg = path.getValueProperty("arguments")[0];

				if (n.Literal.check(arg)) {
					cb(arg);
				}
			}

			this.traverse(path);
		},

		isRequireExpression(node) {
			return n.Identifier.check(node.callee) && node.callee.name === "require";
		}
	});
}
199998
@Override
  public <T extends ConstraintValidator<?, ?>> T getInstance(final Class<T> key) {
    throw new UnsupportedOperationException("GWT does not support "
        + ConstraintValidatorFactory.class.getName() + " use GWT.create instead");
  }
618236
private void required(String attributeName, Resource attributValue, boolean exists) throws ApplicationException {
	if (attributValue == null)
	    throw new ApplicationException("invalid attribute constellation for the tag zip", "attribute [" + attributeName + "] is required, if action is [" + action + "]");

	if (exists && !attributValue.exists()) throw new ApplicationException(attributeName + " resource [" + attributValue + "] doesn't exist");
	else if (exists && !attributValue.canRead()) throw new ApplicationException("no access to " + attributeName + " resource [" + attributValue + "]");

    }
991220
public com.google.javascript.jscomp.Requirement getRequirement(int index) {
    return requirement_.get(index);
  }