![JAR search and dependency download from the Maven repository](/logo.png)
org.adoptopenjdk.jitwatch.model.ParseDictionary Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jitwatch-jarscan-maven-plugin Show documentation
Show all versions of jitwatch-jarscan-maven-plugin Show documentation
A Maven plugin that scans the project artifact and its dependencies for methods that cannot be inlined by the JIT
compiler. It uses the JarScan utility from the JitWatch project to do that.
See https://github.com/AdoptOpenJDK/jitwatch .
/*
* Copyright (c) 2013, 2014 Chris Newland.
* Licensed under https://github.com/AdoptOpenJDK/jitwatch/blob/master/LICENSE-BSD
* Instructions: https://github.com/AdoptOpenJDK/jitwatch/wiki
*/
package org.adoptopenjdk.jitwatch.model;
import java.util.HashMap;
import java.util.Map;
public class ParseDictionary implements IParseDictionary
{
private Map typeMap = new HashMap<>();
private Map klassMap = new HashMap<>();
private Map methodMap = new HashMap<>();
@Override
public Tag getType(String id)
{
return typeMap.get(id);
}
@Override
public Tag getKlass(String id)
{
return klassMap.get(id);
}
@Override
public Tag getMethod(String id)
{
return methodMap.get(id);
}
@Override
public void setType(String id, Tag type)
{
typeMap.put(id, type);
}
@Override
public void setKlass(String id, Tag klass)
{
klassMap.put(id, klass);
}
@Override
public void setMethod(String id, Tag method)
{
methodMap.put(id, method);
}
@Override
public String toString()
{
StringBuilder builder = new StringBuilder();
builder.append("ParseDictionary [typeMap=");
builder.append(typeMap);
builder.append(", klassMap=");
builder.append(klassMap);
builder.append(", methodMap=");
builder.append(methodMap);
builder.append("]");
return builder.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy