org.jsimpledb.parse.expr.AbstractFieldValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsimpledb-parse Show documentation
Show all versions of jsimpledb-parse Show documentation
JSimpleDB classes for parsing Java expressions.
The newest version!
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package org.jsimpledb.parse.expr;
import com.google.common.base.Preconditions;
import java.lang.reflect.Field;
import org.jsimpledb.parse.ParseSession;
/**
* {@link Value} that reflects a Java field in some class or object.
*/
abstract class AbstractFieldValue extends AbstractValue implements LValue {
protected final Field field;
protected AbstractFieldValue(Field field) {
Preconditions.checkArgument(field != null, "null field");
this.field = field;
}
@Override
public Class> getType(ParseSession session) {
return this.field.getType();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy