Debian Codegraph @

src/com/google/javascript/jscomp/CssRenamingMap.java

raw symbols SCIP
1 /*
2 * Copyright 2009 The Closure Compiler Authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package com.google.javascript.jscomp;
18
19 /**
20 * Interface used by {@link ReplaceCssNames} to substitute CSS class names.
21 */
22 public interface CssRenamingMap {
23 public static enum Style {
24 BY_WHOLE,
25 BY_PART,
26 }
27
28 String get(String value);
29
30 Style getStyle();
31
32 public static abstract class ByPart implements CssRenamingMap {
33 @Override
34 abstract public String get(String value);
35
36 @Override
37 public Style getStyle() {
38 return Style.BY_PART;
39 }
40 }
41
42 public static abstract class ByWhole implements CssRenamingMap {
43 @Override
44 abstract public String get(String value);
45
46 @Override
47 public Style getStyle() {
48 return Style.BY_WHOLE;
49 }
50 }
51 }