com.maxifier.mxcache.transform.EmptyTransformGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mxcache-runtime Show documentation
Show all versions of mxcache-runtime Show documentation
Constains all classes necessary for launching a MxCache-instrumentated application
/*
* Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved.
*/
package com.maxifier.mxcache.transform;
import com.maxifier.mxcache.asm.Type;
import com.maxifier.mxcache.asm.commons.GeneratorAdapter;
import com.maxifier.mxcache.provider.Signature;
import com.maxifier.mxcache.util.ClassGenerator;
/**
* @author Alexander Kochurov ([email protected])
*/
final class EmptyTransformGenerator implements TransformGenerator {
private static final TransformGenerator INSTANCE = new EmptyTransformGenerator();
public static TransformGenerator getInstance() {
return INSTANCE;
}
private EmptyTransformGenerator() {
}
@Override
public void generateForward(Type thisType, int fieldIndex, GeneratorAdapter method) {
}
@Override
public void generateBackward(Type thisType, int fieldIndex, GeneratorAdapter method) {
}
@Override
public void generateFields(Type thisType, int fieldIndex, ClassGenerator writer) {
}
@Override
public void generateAcquire(Type thisType, int fieldIndex, GeneratorAdapter ctor, int contextLocal) {
}
@Override
public int getFieldCount() {
return 0;
}
@Override
public Class getTransformedType(Class in) {
return in;
}
@Override
public Signature transformKey(Signature in) {
return in;
}
@Override
public Signature transformValue(Signature in) {
return in;
}
@Override
public String toString() {
return "";
}
}