org.adoptopenjdk.jitwatch.model.bytecode.LineAnnotation 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 .
The newest version!
/*
* Copyright (c) 2013-2015 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.bytecode;
import static org.adoptopenjdk.jitwatch.core.JITWatchConstants.S_SPACE;
public class LineAnnotation
{
private String annotation;
private BCAnnotationType type;
public LineAnnotation(String annotation, BCAnnotationType type)
{
this.annotation = annotation;
this.type = type;
}
public String getAnnotation()
{
return annotation;
}
public BCAnnotationType getType()
{
return type;
}
@Override
public String toString()
{
StringBuilder builder = new StringBuilder();
builder.append(type).append(S_SPACE).append(annotation);
return builder.toString();
}
}