All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.walkmod.javalang.compiler.providers.SymbolActionProvider Maven / Gradle / Ivy

There is a newer version: 2.3.10
Show newest version
/*
 Copyright (C) 2015 Raquel Pau and Albert Coroleu.
 
Walkmod is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Walkmod is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with Walkmod.  If not, see .*/
package org.walkmod.javalang.compiler.providers;

import java.util.List;

import org.walkmod.javalang.ast.CompilationUnit;
import org.walkmod.javalang.ast.ImportDeclaration;
import org.walkmod.javalang.ast.body.AnnotationDeclaration;
import org.walkmod.javalang.ast.body.AnnotationMemberDeclaration;
import org.walkmod.javalang.ast.body.ClassOrInterfaceDeclaration;
import org.walkmod.javalang.ast.body.ConstructorDeclaration;
import org.walkmod.javalang.ast.body.EmptyTypeDeclaration;
import org.walkmod.javalang.ast.body.EnumConstantDeclaration;
import org.walkmod.javalang.ast.body.EnumDeclaration;
import org.walkmod.javalang.ast.body.FieldDeclaration;
import org.walkmod.javalang.ast.body.MethodDeclaration;
import org.walkmod.javalang.ast.body.MultiTypeParameter;
import org.walkmod.javalang.ast.body.Parameter;
import org.walkmod.javalang.ast.body.TypeDeclaration;
import org.walkmod.javalang.ast.body.VariableDeclarator;
import org.walkmod.javalang.ast.expr.ObjectCreationExpr;
import org.walkmod.javalang.ast.expr.VariableDeclarationExpr;
import org.walkmod.javalang.ast.stmt.BlockStmt;
import org.walkmod.javalang.ast.type.ClassOrInterfaceType;
import org.walkmod.javalang.compiler.symbols.SymbolAction;

/**
 * Provides a way to setup a set of SymbolAction for every type of symbol
 * (method, variable, type, field, enum, annotations), the global scope
 * (compilation unit) and an specific scope(BlockStmt)
 * 
 * @author rpau
 *
 */
public interface SymbolActionProvider {

	public List getActions(ClassOrInterfaceDeclaration n);

	public List getActions(Parameter n);

	public List getActions(ClassOrInterfaceType n);

	public List getActions(MultiTypeParameter n);

	public List getActions(VariableDeclarator n);

	public List getActions(ImportDeclaration n);

	public List getActions(MethodDeclaration n);

	public List getActions(FieldDeclaration n);

	public List getActions(EnumDeclaration n);

	public List getActions(EnumConstantDeclaration n);

	public List getActions(AnnotationDeclaration n);

	public List getActions(AnnotationMemberDeclaration n);

	public List getActions(ConstructorDeclaration n);

	public List getActions(CompilationUnit n);

	public List getActions(EmptyTypeDeclaration n);

	public List getActions(TypeDeclaration n);

	public List getActions(BlockStmt n);

	public List getActions(VariableDeclarationExpr n);

	public List getActions(ObjectCreationExpr n);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy