org.codehaus.plexus.util.introspection

Class ReflectionValueExtractor


public class ReflectionValueExtractor
extends java.lang.Object

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 6553 2007-06-16 07:59:46Z kenney $
Author:
Jason van Zyl

Method Summary

static Object
evaluate(String expression, Object root)
static Object
evaluate(String expression, Object root, boolean trimRootToken)

Method Details

evaluate

public static Object evaluate(String expression,
                              Object root)
            throws Exception

evaluate

public static Object evaluate(String expression,
                              Object root,
                              boolean trimRootToken)
            throws Exception