ConverterBasis.java
/*
* SPDX-FileCopyrightText: 2025 kaumei.io
* SPDX-License-Identifier: Apache-2.0
*/
package io.kaumei.jdbc.anno.store;
import javax.lang.model.type.TypeMirror;
public class ConverterBasis implements Converter {
private final SourceDV source;
private final TypeMirror type;
protected ConverterBasis(TypeMirror type, SourceDV source) {
this.source = source;
this.type = type;
}
// ------------------------------------------------------------------------
public TypeMirror type() {
return this.type;
}
public SourceDV source() {
return source;
}
// ------------------------------------------------------------------------
@Override
public String toString() {
return getClass().getSimpleName() + "{" + this.type + "," + source + "}";
}
}