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

org.unlaxer.compiler.InstanceAndByteCode Maven / Gradle / Ivy

The newest version!
package org.unlaxer.compiler;

import org.unlaxer.tinyexpression.evaluator.javacode.InstanceAndClassNameAndByteCode;

public class InstanceAndByteCode implements InstanceAndClassNameAndByteCode{
  final Object object;
  final byte[] bytes;
  final String className;
  public InstanceAndByteCode(Object object, byte[] bytes) {
    super();
    this.object = object;
    this.bytes = bytes;
    className = object.getClass().getTypeName();
  }
  public String className() {
    return object.getClass().getTypeName();
  }
  @Override
  public byte[] byteCode() {
    return bytes;
  }
  @Override
  public Object instance() {
    return object;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy