/******************************************************************************* * Copyright (c) 2011 Sierra Wireless 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 * * Contributors: * Sierra Wireless - initial API and implementation *******************************************************************************/ package org.eclipse.koneki.ldt.core.internal.ast.models.api; import org.eclipse.dltk.ast.ASTVisitor; import org.eclipse.koneki.ldt.core.internal.ast.models.common.LuaASTNode; /** * A paramater of a function type */ public class Parameter extends LuaASTNode { private String name; private TypeRef type; private String description; public Parameter(String name, TypeRef type, String description) { this.name = name; this.type = type; this.description = description; } public String getName() { return name; } public TypeRef getType() { return type; } public String getDescription() { return description; } /** * @see org.eclipse.dltk.ast.ASTNode#traverse(org.eclipse.dltk.ast.ASTVisitor) */ @Override public void traverse(ASTVisitor visitor) throws Exception { if (visitor.visit(this)) { visitor.endvisit(this); } } }