Java Code Examples for sun.jvm.hotspot.types.Type#getName()
The following examples show how to use
sun.jvm.hotspot.types.Type#getName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BasicTypeDataBase.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** This method should only be used by the builder of the TypeDataBase. Throws a RuntimeException if a class with this name was already present. */ public void addType(Type type) { if (nameToTypeMap.get(type.getName()) != null) { throw new RuntimeException("type of name \"" + type.getName() + "\" already present"); } nameToTypeMap.put(type.getName(), type); }
Example 2
Source File: BasicTypeDataBase.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** This method should only be used by the builder of the TypeDataBase. Throws a RuntimeException if this class was not present. */ public void removeType(Type type) { Type curType = (Type) nameToTypeMap.get(type.getName()); if (curType == null) { throw new RuntimeException("type of name \"" + type.getName() + "\" not present"); } if (!curType.equals(type)) { throw new RuntimeException("a different type of name \"" + type.getName() + "\" was present"); } nameToTypeMap.remove(type.getName()); }
Example 3
Source File: BasicTypeDataBase.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** This method should only be used by the builder of the TypeDataBase. Throws a RuntimeException if a class with this name was already present. */ public void addType(Type type) { if (nameToTypeMap.get(type.getName()) != null) { throw new RuntimeException("type of name \"" + type.getName() + "\" already present"); } nameToTypeMap.put(type.getName(), type); }
Example 4
Source File: BasicTypeDataBase.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** This method should only be used by the builder of the TypeDataBase. Throws a RuntimeException if this class was not present. */ public void removeType(Type type) { Type curType = (Type) nameToTypeMap.get(type.getName()); if (curType == null) { throw new RuntimeException("type of name \"" + type.getName() + "\" not present"); } if (!curType.equals(type)) { throw new RuntimeException("a different type of name \"" + type.getName() + "\" was present"); } nameToTypeMap.remove(type.getName()); }
Example 5
Source File: BasicTypeDataBase.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** This method should only be used by the builder of the TypeDataBase. Throws a RuntimeException if a class with this name was already present. */ public void addType(Type type) { if (nameToTypeMap.get(type.getName()) != null) { throw new RuntimeException("type of name \"" + type.getName() + "\" already present"); } nameToTypeMap.put(type.getName(), type); }
Example 6
Source File: BasicTypeDataBase.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** This method should only be used by the builder of the TypeDataBase. Throws a RuntimeException if this class was not present. */ public void removeType(Type type) { Type curType = (Type) nameToTypeMap.get(type.getName()); if (curType == null) { throw new RuntimeException("type of name \"" + type.getName() + "\" not present"); } if (!curType.equals(type)) { throw new RuntimeException("a different type of name \"" + type.getName() + "\" was present"); } nameToTypeMap.remove(type.getName()); }
Example 7
Source File: BasicTypeDataBase.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** This method should only be used by the builder of the TypeDataBase. Throws a RuntimeException if a class with this name was already present. */ public void addType(Type type) { if (nameToTypeMap.get(type.getName()) != null) { throw new RuntimeException("type of name \"" + type.getName() + "\" already present"); } nameToTypeMap.put(type.getName(), type); }
Example 8
Source File: BasicTypeDataBase.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** This method should only be used by the builder of the TypeDataBase. Throws a RuntimeException if this class was not present. */ public void removeType(Type type) { Type curType = (Type) nameToTypeMap.get(type.getName()); if (curType == null) { throw new RuntimeException("type of name \"" + type.getName() + "\" not present"); } if (!curType.equals(type)) { throw new RuntimeException("a different type of name \"" + type.getName() + "\" was present"); } nameToTypeMap.remove(type.getName()); }
Example 9
Source File: BasicTypeDataBase.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** This method should only be used by the builder of the TypeDataBase. Throws a RuntimeException if a class with this name was already present. */ public void addType(Type type) { if (nameToTypeMap.get(type.getName()) != null) { throw new RuntimeException("type of name \"" + type.getName() + "\" already present"); } nameToTypeMap.put(type.getName(), type); }
Example 10
Source File: BasicTypeDataBase.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** This method should only be used by the builder of the TypeDataBase. Throws a RuntimeException if this class was not present. */ public void removeType(Type type) { Type curType = (Type) nameToTypeMap.get(type.getName()); if (curType == null) { throw new RuntimeException("type of name \"" + type.getName() + "\" not present"); } if (!curType.equals(type)) { throw new RuntimeException("a different type of name \"" + type.getName() + "\" was present"); } nameToTypeMap.remove(type.getName()); }
Example 11
Source File: BasicTypeDataBase.java From hottub with GNU General Public License v2.0 | 5 votes |
/** This method should only be used by the builder of the TypeDataBase. Throws a RuntimeException if a class with this name was already present. */ public void addType(Type type) { if (nameToTypeMap.get(type.getName()) != null) { throw new RuntimeException("type of name \"" + type.getName() + "\" already present"); } nameToTypeMap.put(type.getName(), type); }
Example 12
Source File: BasicTypeDataBase.java From hottub with GNU General Public License v2.0 | 5 votes |
/** This method should only be used by the builder of the TypeDataBase. Throws a RuntimeException if this class was not present. */ public void removeType(Type type) { Type curType = (Type) nameToTypeMap.get(type.getName()); if (curType == null) { throw new RuntimeException("type of name \"" + type.getName() + "\" not present"); } if (!curType.equals(type)) { throw new RuntimeException("a different type of name \"" + type.getName() + "\" was present"); } nameToTypeMap.remove(type.getName()); }
Example 13
Source File: BasicTypeDataBase.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** This method should only be used by the builder of the TypeDataBase. Throws a RuntimeException if a class with this name was already present. */ public void addType(Type type) { if (nameToTypeMap.get(type.getName()) != null) { throw new RuntimeException("type of name \"" + type.getName() + "\" already present"); } nameToTypeMap.put(type.getName(), type); }
Example 14
Source File: BasicTypeDataBase.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** This method should only be used by the builder of the TypeDataBase. Throws a RuntimeException if this class was not present. */ public void removeType(Type type) { Type curType = (Type) nameToTypeMap.get(type.getName()); if (curType == null) { throw new RuntimeException("type of name \"" + type.getName() + "\" not present"); } if (!curType.equals(type)) { throw new RuntimeException("a different type of name \"" + type.getName() + "\" was present"); } nameToTypeMap.remove(type.getName()); }
Example 15
Source File: BasicTypeDataBase.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** This method should only be used by the builder of the TypeDataBase. Throws a RuntimeException if a class with this name was already present. */ public void addType(Type type) { if (nameToTypeMap.get(type.getName()) != null) { throw new RuntimeException("type of name \"" + type.getName() + "\" already present"); } nameToTypeMap.put(type.getName(), type); }
Example 16
Source File: BasicTypeDataBase.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** This method should only be used by the builder of the TypeDataBase. Throws a RuntimeException if this class was not present. */ public void removeType(Type type) { Type curType = (Type) nameToTypeMap.get(type.getName()); if (curType == null) { throw new RuntimeException("type of name \"" + type.getName() + "\" not present"); } if (!curType.equals(type)) { throw new RuntimeException("a different type of name \"" + type.getName() + "\" was present"); } nameToTypeMap.remove(type.getName()); }