src/main/java/com/mxgraph/util/mxUtils.java
public static Object eval(String expression)
	{
		int dot = expression.lastIndexOf(".");

		if (dot > 0)
		{
			Class<?> clazz = mxCodecRegistry.getClassForName(expression
					.substring(0, dot));

			if (clazz != null)
			{
				try
				{
					return clazz.getField(expression.substring(dot + 1)).get(
							null);
				}
				catch (Exception e)
				{
					log.log(Level.SEVERE, "Failed to eval expression: " + expression, e);
				}
			}
		}

		return expression;
	}
/**
	 * Evaluates a Java expression as a class member using mxCodecRegistry. The
	 * range of supported expressions is limited to static class members such as
	 * mxEdgeStyle.ElbowConnector.
	 */
Evaluates a Java expression as a class member using mxCodecRegistry. The
range of supported expressions is limited to static class members such as
mxEdgeStyle.ElbowConnector.
Evaluates a Java expression as a class member using mxCodecRegistry . The range of supported expressions is limited to static class members such as mxEdgeStyle . ElbowConnector .
public static Object eval(String expression)
	{
		int dot = expression.lastIndexOf(".");
		if (dot > 0)
		{
			Class<?> clazz = mxCodecRegistry.getClassForName(expression
					.substring(0, dot));
			if (clazz != null)
			{
				try
				{
					return clazz.getField(expression.substring(dot + 1)).get(
							null);
				}
				catch (Exception e)
				{
					log.log(Level.SEVERE, "Failed to eval expression: " + expression, e);
				}
			}
		}
		return expression;
	}
public static Object eval ( String expression ) { int dot = expression . lastIndexOf ( "." ) ; if ( dot > 0 ) { Class < ? > clazz = mxCodecRegistry . getClassForName ( expression . substring ( 0 , dot ) ) ; if ( clazz != null ) { try { return clazz . getField ( expression . substring ( dot + 1 ) ) . get ( null ) ; } catch ( Exception e ) { log . log ( Level . SEVERE , "Failed to eval expression: " + expression , e ) ; } } } return expression ; }
Evaluates a Java expression as a class member using mxCodecRegistry.
Evaluates a Java expression as a class member using mxCodecRegistry .