org.codehaus.plexus.interpolation.reflection

Class ReflectionValueExtractor

public class ReflectionValueExtractor extends Object

NOTE: This class was copied from plexus-utils, to allow this library to stand completely self-contained.
Using simple dotted expressions extract the values from a MavenProject instance, For example we might want to extract a value like: project.build.sourceDirectory

Version: $Id: ReflectionValueExtractor.java 7375 2008-06-13 22:16:24Z jdcasey $

Author: Jason van Zyl

Method Summary
static Objectevaluate(String expression, Object root)
static Objectevaluate(String expression, Object root, boolean trimRootToken)

Method Detail

evaluate

public static Object evaluate(String expression, Object root)

evaluate

public static Object evaluate(String expression, Object root, boolean trimRootToken)
Copyright © 2001-2009 Codehaus. All Rights Reserved.