Class ReflectionValueExtractor
- java.lang.Object
-
- org.codehaus.plexus.interpolation.reflection.ReflectionValueExtractor
-
public class ReflectionValueExtractor extends java.lang.ObjectNOTE: 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$
- Author:
- Jason van Zyl
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Objectevaluate(java.lang.String expression, java.lang.Object root)static java.lang.Objectevaluate(java.lang.String expression, java.lang.Object root, boolean trimRootToken)
-
-
-
Method Detail
-
evaluate
public static java.lang.Object evaluate(java.lang.String expression, java.lang.Object root) throws java.lang.Exception- Throws:
java.lang.Exception
-
evaluate
public static java.lang.Object evaluate(java.lang.String expression, java.lang.Object root, boolean trimRootToken) throws java.lang.Exception- Throws:
java.lang.Exception
-
-