blob: 37fd2a219ec210e1c4f28026e852a88ab6f788bd [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2007 IBM Corporation 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
*
*******************************************************************************/
package org.eclipse.dltk.ruby.internal.core.codeassist;
/**
* A selection requestor accepts results from the selection engine.
* XXX: by now it is Ruby specific, generalize later
*/
public interface IRubySelectionRequestor {
// declaration type flag
public static final int DECL_INSTANCE = 1;
public static final int DECL_CLASS = 2;
void acceptClass(
char[] declaringFileName,
char[] qualifiedTypeName);
void acceptModule(
char[] declaringFileName,
char[] qualifiedTypeName);
// global, instance or class variable
void acceptField(
char[] declaringFileName,
char[] declaringTypeName,
char[] name, //name without $, @, @@
int declFlags,
boolean isGlobal);
void acceptLocalVariable(
char[] name,
int selectionStart,
int selectionEnd);
void acceptMethod(
char[] declaringFileName,
char[] declaringTypeName,
char[] selector,
int declFlags);
}