Debian Codegraph @

bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/p2/metadata/expression/IMemberProvider.java

raw
1 /*******************************************************************************
2 * Copyright (c) 2009 - 2010 Cloudsmith Inc. and others.
3 *
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
8 *
9 * SPDX-License-Identifier: EPL-2.0
10 *
11 * Contributors:
12 * Cloudsmith Inc. - initial API and implementation
13 *******************************************************************************/
14 package org.eclipse.equinox.p2.metadata.expression;
15
16 /**
17 * This interface may be implemented by any class that wants to provide easy
18 * (high performance) access to its member to the expression evaluator. It
19 * also gives the implementing class a way to hide or rename the members
20 * otherwise accessible using getters.
21 * @since 2.0
22 */
23 public interface IMemberProvider {
24 /**
25 * Returns the value for the specified member. Implementers can rely
26 * on that the <code>memberName</code> is a string that has been
27 * internalized using {@link String#intern()}.
28 * @param memberName The name of the member
29 * @return The member value.
30 * @throws IllegalArgumentException if the instance has no member with
31 * the given name.
32 */
33 Object getMember(String memberName);
34 }