1 /*******************************************************************************
2  * Copyright (c) 2000, 2013 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 
12 package org.eclipse.jdt.internal.compiler.ast;
13 
14 public class Receiver extends Argument {
15 	public NameReference qualifyingName;
Receiver(char[] name, long posNom, TypeReference typeReference, NameReference qualifyingName, int modifiers)16 	public Receiver(char[] name, long posNom, TypeReference typeReference, NameReference qualifyingName, int modifiers) {
17 		super(name, posNom, typeReference, modifiers);
18 		this.qualifyingName = qualifyingName;
19 	}
isReceiver()20 	public boolean isReceiver() {
21 		return true;
22 	}
23 
print(int indent, StringBuffer output)24 	public StringBuffer print(int indent, StringBuffer output) {
25 
26 		printIndent(indent, output);
27 		printModifiers(this.modifiers, output);
28 
29 		if (this.type == null) {
30 			output.append("<no type> "); //$NON-NLS-1$
31 		} else {
32 			this.type.print(0, output).append(' ');
33 		}
34 		if (this.qualifyingName != null) {
35 			this.qualifyingName.print(indent, output);
36 			output.append('.');
37 		}
38 		return output.append(this.name);
39 	}
40 }
41