1
/********************************************************************
2
* Copyright (c) 2010 Contributors. All rights reserved.
3
* This program and the accompanying materials are made available
4
* under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution and is available at
6
* http://eclipse.org/legal/epl-v10.html
8
* Contributors: Nieraj Singh - initial implementation
9
*******************************************************************/
10
package org.aspectj.org.eclipse.jdt.core.dom;
12
import java.util.List;
14
public class FormalBinding extends Type {
17
private String binding;
28
public FormalBinding(Type type, String binding, AST ast) {
32
public Type getType() {
36
public String getBinding() {
41
List<?> internalStructuralPropertiesForType(int apiLevel) {
51
boolean subtreeMatch0(ASTMatcher matcher, Object other) {
52
if (matcher instanceof AjASTMatcher) {
53
return ((AjASTMatcher) matcher).match(this, other);
59
ASTNode clone0(AST target) {
60
ASTNode node = new FormalBinding((Type) getType().clone(target),
61
getBinding(), target);
62
node.setSourceRange(getStartPosition(), getLength());
67
void accept0(ASTVisitor visitor) {
68
if (visitor instanceof AjASTVisitor) {
69
boolean visited = ((AjASTVisitor) visitor).visit(this);
71
((AjASTVisitor) visitor).visit(getType());
73
((AjASTVisitor) visitor).endVisit(this);
80
return getType().treeSize();
85
return BASE_NODE_SIZE + (3 * 4) + getType().memSize();