Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 59c08673d6b63c1dbb7f88e54c8da471bf8eba85 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Copyright (c) 2013 QNX Software Systems 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.cdt.qt.internal.core.pdom;

import org.eclipse.cdt.core.dom.ast.IASTName;
import org.eclipse.cdt.qt.core.index.IQMethod;
import org.eclipse.core.runtime.CoreException;

public class QMethodName extends AbstractQObjectMemberName implements IQtASTName {

	private final IQMethod.Kind kind;
	private final String qtEncSignatures;
	private final Long revision;

	public QMethodName(QObjectName qobjName, IASTName cppName, IQMethod.Kind kind, String qtEncSignatures, Long revision) {
		super(qobjName, cppName, cppName.getLastName().toString(), cppName.getImageLocation());
		this.kind = kind;
		this.qtEncSignatures = qtEncSignatures;
		this.revision = revision;
	}

	@Override
	public QtPDOMBinding createPDOMBinding(QtPDOMLinkage linkage) throws CoreException {
		return new QtPDOMQMethod(linkage, getOwner(linkage), this, delegate, kind, qtEncSignatures, revision);
	}
}

Back to the top