blob: 6c23210b07e99e36a5acd3cffd79cde583de3bfd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/*
* <copyright>
*
* Copyright (c) 2005-2006 Sven Efftinge (http://www.efftinge.de) 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:
* Sven Efftinge (http://www.efftinge.de) - Initial API and implementation
*
* </copyright>
*/
package org.eclipse.xtend.shared.ui.core;
import org.eclipse.core.resources.IStorage;
import org.eclipse.xtend.expression.Resource;
public interface IXtendXpandResource extends Resource {
public IStorage getUnderlyingStorage();
/**
* analyzes the underlying AST and adds respective markers to the
* underlying IFile (getCorrspondingFile())
*/
public void analyze();
/**
* updates the underlying AST
* @return true if the source could be parsed and an AST is available
*/
public boolean refresh();
/**
* returns the root element of the AST
* @return
*/
public Resource getExtXptResource();
public String getFileExtension();
}
|