summaryrefslogtreecommitdiff
path: root/platform/script-debugger/protocol/protocol-model-generator/src/org/jetbrains/protocolReader/BoxableType.java
blob: 3f4b8ea839ac4c826e47396c8fd6fdafbfe60ea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package org.jetbrains.protocolReader;

abstract class BoxableType {
  static final BoxableType STRING = new StandaloneType(new NamePath("String"), "writeString");
  static final BoxableType ANY_STRING = new StandaloneType(new NamePath("String"), "writeString");
  static final BoxableType INT = new StandaloneType(new NamePath("int"), "writeInt");
  static final BoxableType LONG = new StandaloneType(new NamePath("long"), "writeLong");
  static final BoxableType NUMBER = new StandaloneType(new NamePath("double"), "writeDouble");
  static final BoxableType BOOLEAN = new StandaloneType(new NamePath("boolean"), "writeBoolean");
  static final BoxableType MAP = new StandaloneType(new NamePath("java.util.Map<String, String>"), "writeMap");

  abstract CharSequence getFullText();

  abstract String getShortText(NamePath contextNamespace);

  abstract String getWriteMethodName();
}