/*******************************************************************************
* Copyright (c) 2009 xored software, Inc.
*
* 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
*
* Contributors:
* xored software, Inc. - initial API and Implementation (Vladimir Belov)
*******************************************************************************/
package org.eclipse.dltk.javascript.ast;
public abstract class Method extends ObjectInitializerPart implements
ISourceable, ISourceableBlock {
private Identifier name;
private StatementBlock body;
private int LP = -1;
private int RP = -1;
public Method(JSNode parent) {
super(parent);
}
public Identifier getName() {
return this.name;
}
public void setName(Identifier name) {
this.name = name;
}
public StatementBlock getBody() {
return this.body;
}
public void setBody(StatementBlock body) {
this.body = body;
}
public int getLP() {
return this.LP;
}
public void setLP(int LP) {
this.LP = LP;
}
public int getRP() {
return this.RP;
}
public void setRP(int RP) {
this.RP = RP;
}
public boolean isBlock() {
return true;
}
}