Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 3d7691e7f34a932fd44ec230d6d184f81726bc42 (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
44
45
46
47
48
49
50
51
52
53
/*******************************************************************************
 * Copyright (c) 2001, 2007 Oracle Corporation 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:
 *     Oracle Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jst.jsf.designtime.resolver;

import org.eclipse.jst.jsf.context.IModelContext;
import org.eclipse.jst.jsf.context.symbol.IMethodSymbol;
import org.eclipse.jst.jsf.context.symbol.IObjectSymbol;
import org.eclipse.jst.jsf.context.symbol.ISymbol;


/**
 * An abstract that should sub-classed by clients wishing to implement
 * the ISymbolContextResolver interface
 * 
 * @author cbateman
 *
 */
public abstract class AbstractSymbolContextResolver implements ISymbolContextResolver 
{
    public abstract ISymbol[] getAllVariables();

    public abstract IMethodSymbol getMethod(IObjectSymbol base, Object methodName);

    public abstract ISymbol[] getMethods(IObjectSymbol base);

    public abstract ISymbol[] getProperties(ISymbol symbol);

    public abstract ISymbol getProperty(ISymbol symbol, Object propertyName);
    
    public abstract ISymbol getVariable(String name);

    public abstract boolean canResolveContext(IModelContext modelContext);

    /**
     * Default implementation
     * 
     * We should avoid returning true unless we are positive that changing
     * to this context won't change the way symbols are resolved.
     */
    public boolean hasSameResolution(IModelContext modelContext)
    {
        return false;
    }
    
}

Back to the top