diff options
Diffstat (limited to 'plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/runtime/IBinding.java')
-rw-r--r-- | plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/runtime/IBinding.java | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/runtime/IBinding.java b/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/runtime/IBinding.java new file mode 100644 index 000000000..13b02c406 --- /dev/null +++ b/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/runtime/IBinding.java @@ -0,0 +1,53 @@ +/********************************************************************** + * This file is part of "Object Teams Dynamic Runtime Environment" + * + * Copyright 2011, 2012 GK Software AG and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Please visit http://www.eclipse.org/objectteams for updates and contact. + * + * Contributors: + * Stephan Herrmann - Initial API and implementation + **********************************************************************/ +package org.eclipse.objectteams.otredyn.runtime; + +/** + * Interface through which the {@link TeamManager} reaches into the OTREDyn. + * Representation of a callin binding or a callout decapsulation binding. + * + * @author stephan + */ +public interface IBinding { + + public static enum BindingType { + CALLIN_BINDING, + FIELD_ACCESS, + METHOD_ACCESS + } + + BindingType getType(); + + /** The base class as declared in the source level playedBy clause. */ + String getBoundClass(); + + /** The base class actually declaring the referenced member. */ + String getDeclaringBaseClassName(); + + /** Name of the bound base member. */ + String getMemberName(); + + /** Signature (JVM encoding) of the bound base member. */ + String getMemberSignature(); + + /** Answer the callin ID (also used for callout decapsulation bindings) */ + int getCallinId(); + + /** Does base method matching include overrides with covariant return type?. */ + boolean isHandleCovariantReturn(); + + +} |