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

openllet.profiler.utils.ClassFieldLink Maven / Gradle / Ivy

There is a newer version: 2.6.5
Show newest version
package openllet.profiler.utils;

import java.lang.reflect.Field;

// ----------------------------------------------------------------------------
/**
 * An {@link ILink} implementation for tree links created by class instance fields.
 *
 * @author (C) Vlad Roubtsov, 2003
 */
final class ClassFieldLink implements ILink
{
	// public: ................................................................

	// ILink:

	@Override
	public String name()
	{
		return ObjectProfiler.fieldName(_field, ObjectProfiler.SHORT_TYPE_NAMES);
	}

	// protected: .............................................................

	// package: ...............................................................

	ClassFieldLink(final Field field)
	{
		_field = field;
	}

	// private: ...............................................................

	private final Field _field;

} // _end of class
// ----------------------------------------------------------------------------




© 2015 - 2025 Weber Informatics LLC | Privacy Policy