org.coode.parsers.oppl.patterns.OPPLPatternsSymbolTable Maven / Gradle / Ivy
package org.coode.parsers.oppl.patterns;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import org.coode.oppl.Variable;
import org.coode.parsers.Scope;
import org.coode.parsers.oppl.OPPLSymbolTable;
import org.coode.parsers.oppl.OPPLSyntaxTree;
import org.coode.parsers.oppl.VariableTypes;
import org.coode.patterns.PatternConstraintSystem;
import org.semanticweb.owlapi.model.OWLOntologyManager;
/** @author Luigi Iannone */
public class OPPLPatternsSymbolTable extends OPPLSymbolTable {
private final OWLOntologyManager ontologyManager;
/** @param globalScope
* globalScope
* @param ontologyManager
* ontologyManager */
public OPPLPatternsSymbolTable(Scope globalScope, OWLOntologyManager ontologyManager) {
super(globalScope, ontologyManager.getOWLDataFactory());
this.ontologyManager = ontologyManager;
}
/** @param reference
* reference
* @param patternName
* patternName
* @param constraintSystem
* constraintSystem
* @param args
* args */
public void resolvePattern(OPPLSyntaxTree reference, String patternName,
PatternConstraintSystem constraintSystem, List