Codota Logo
Reflection.evalAccessPath
Code IndexAdd Codota to your IDE (free)

How to use
evalAccessPath
method
in
sirius.kernel.commons.Reflection

Best Java code snippets using sirius.kernel.commons.Reflection.evalAccessPath (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: com.scireum/sirius-kernel

Method m = getter(root.getClass(), pair.getFirst());
try {
  return evalAccessPath(pair.getSecond(), m.invoke(root));
} catch (IllegalAccessException e) {
  throw new IllegalArgumentException(Strings.apply("Cannot invoke %s on %s (%s)",
origin: com.scireum/sirius-db

private Object computeEffectiveParameterValue(String fullParameterName) throws SQLException {
  String accessPath = null;
  String parameterName = fullParameterName;
  if (fullParameterName.contains(".")) {
    accessPath = parameterName.substring(parameterName.indexOf('.') + 1);
    parameterName = parameterName.substring(0, parameterName.indexOf('.'));
  }
  Object paramValue = context.get(parameterName);
  if (accessPath == null || paramValue == null) {
    return paramValue;
  }
  try {
    return Reflection.evalAccessPath(accessPath, paramValue);
  } catch (Exception e) {
    throw new SQLException(NLS.fmtr("StatementCompiler.cannotEvalAccessPath")
                 .set("name", parameterName)
                 .set("path", accessPath)
                 .set("value", paramValue)
                 .set("query", originalSQL)
                 .format(), e);
  }
}
sirius.kernel.commonsReflectionevalAccessPath

Javadoc

Evaluates the given access path (dot separated getters) and returns the result.

An access path can look like foo.bar.baz and represents: root.getFoo().getBar().getBaz(). If any of the getters returns null, null will also be the result of the evaluation.

Popular methods of Reflection

  • toFirstUpper
    Converts the first character of a given string to upper case. Comes in handy when translating proper
  • getter
    Returns the getter method according to the java beans specification for a given property.
  • getterAsIs
  • walkHierarchy
    Calls the given handler for each superclass of the given one. Calls the handler for the given class

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • findViewById (Activity)
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JCheckBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now