All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.adoptopenjdk.jitwatch.model.bytecode.BCParamConstant Maven / Gradle / Ivy

Go to download

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.*;

public class BCParamConstant implements IBytecodeParam
{
	private int value;
	
	public BCParamConstant(String inConstant)
	{
		// remove leading # for constant pool param
		String constant = inConstant.substring(1);
		
		value = Integer.parseInt(constant);
	}
	
	@Override
	public String toString()
	{
		return S_HASH + Integer.toString(value);
	}

	@Override
	public Integer getValue()
	{
		return value;
	}	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy