org.codehaus.plexus.util.introspection
Class ReflectionValueExtractor

java.lang.Object
  extended byorg.codehaus.plexus.util.introspection.ReflectionValueExtractor

public class ReflectionValueExtractor
extends 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

evaluate

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

evaluate

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


Copyright © 2001-2008 Codehaus. All Rights Reserved.