blob: 2018cbfd9ecd1f9f593812695a25e3483ac8020c [file] [log] [blame]
// Copyright (c) 2016, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.shaking;
import com.android.tools.r8.errors.Unreachable;
public enum ProguardKeepRuleType {
KEEP,
KEEP_CLASS_MEMBERS,
KEEP_CLASSES_WITH_MEMBERS,
CONDITIONAL;
@Override
public String toString() {
switch (this) {
case KEEP:
return "keep";
case KEEP_CLASS_MEMBERS:
return "keepclassmembers";
case KEEP_CLASSES_WITH_MEMBERS:
return "keepclasseswithmembers";
case CONDITIONAL:
return "if";
default:
throw new Unreachable("Unknown ProguardKeepRuleType.");
}
}
}