com.rollbar.jvmti.LocalVariable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rollbar-java Show documentation
Show all versions of rollbar-java Show documentation
For connecting your applications built on the JVM to Rollbar for Error Reporting
The newest version!
package com.rollbar.jvmti;
/**
* LocalVariable is a data object reprsenting a live variable in a stack frame at the time of an
* exception gathered by the native interface.
*/
public final class LocalVariable {
private final String name;
private final Object value;
/**
* Constructor with the variable name and value.
*/
public LocalVariable(String name, Object value) {
this.name = name;
this.value = value;
}
/**
* Getter.
*
* @return the name of the variable.
*/
public String getName() {
return name;
}
/**
* Getter.
*
* @return the value of the variable.
*/
public Object getValue() {
return value;
}
@Override
public String toString() {
return "LocalVariable{"
+ "name='" + name + '\''
+ ", value=" + value
+ '}';
}
}