/*
 * Copyright 2020 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.template.soy.invocationbuilders.javatypes;

/** Represents a template type. */
public final class TemplateJavaType extends JavaType {
  public TemplateJavaType() {
    this(/* isNullable= */ false);
  }

  public TemplateJavaType(boolean isNullable) {
    super(isNullable);
  }

  @Override
  public String toJavaTypeString() {
    return "com.google.template.soy.testing.metadata.placeholdertypes.TeplatePlaceholderType";
  }

  @Override
  public JavaType asNullable() {
    return new TemplateJavaType(/* isNullable= */ true);
  }

  @Override
  String asGenericsTypeArgumentString() {
    return toJavaTypeString();
  }

  @Override
  public String asInlineCast(String variable, int depth) {
    throw new UnsupportedOperationException();
  }
}

/*
 * Copyright 2020 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.template.soy.invocationbuilders.javatypes;

/** Represents a template type. */
public final class TemplateJavaType extends JavaType {
  public TemplateJavaType() {
    this(/* isNullable= */ false);
  }

  public TemplateJavaType(boolean isNullable) {
    super(isNullable);
  }

  @Override
  public String toJavaTypeString() {
    return "com.google.template.soy.testing.metadata.placeholdertypes.TemplatePlaceholderType";
  }

  @Override
  public JavaType asNullable() {
    return new TemplateJavaType(/* isNullable= */ true);
  }

  @Override
  String asGenericsTypeArgumentString() {
    return toJavaTypeString();
  }

  @Override
  public String asInlineCast(String variable, int depth) {
    throw new UnsupportedOperationException();
  }
}

Fix typo which breaks test build:
Fix typo which breaks test build:

[]

GITHUB_BREAKING_CHANGES=n/a

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=339165220
