| /******************************************************************************* |
| * Copyright (c) 2005, 2016 IBM Corporation and others. |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0. |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| *******************************************************************************/ |
| package org.eclipse.dltk.python.internal.core.parser; |
| |
| import org.eclipse.dltk.compiler.SourceElementRequestVisitor; |
| import org.eclipse.dltk.core.AbstractSourceElementParser; |
| import org.eclipse.dltk.python.core.PythonNature; |
| import org.eclipse.dltk.python.internal.core.parser.visitors.PythonSourceElementRequestor; |
| |
| public class PythonSourceElementParser extends AbstractSourceElementParser { |
| |
| @Override |
| protected SourceElementRequestVisitor createVisitor() { |
| return new PythonSourceElementRequestor(getRequestor()); |
| } |
| |
| @Override |
| protected String getNatureId() { |
| return PythonNature.NATURE_ID; |
| } |
| } |