
net.sourceforge.nrl.parser.ast.IOperatorFileReference Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nrlparser Show documentation
Show all versions of nrlparser Show documentation
The parser for the Natural Rule Language, a language for specifying constraints and actions over models that remains close to English.
The newest version!
package net.sourceforge.nrl.parser.ast;
import net.sourceforge.nrl.parser.operators.IOperators;
/**
* A reference to an operator file, by file name
*
* @author Christian Nentwich
*/
public interface IOperatorFileReference extends INRLAstNode {
/**
* Return the file name. Can be absolute or relative.
*
* @return the file name
*/
public String getFileName();
/**
* Returns true if the file name is absolute, i.e. starts from a root
* directory. If false, it is relative to the rule file.
*
* @return true if the file name is absolute, false otherwise
*/
public boolean isAbsolute();
/**
* Returns true
if the oeprator has been resolved in which case it can be accessed
* via {@link IOperatorFileReference.getOperator}, false
otherwise.
* @return true
if the operator has been resolved, false
otherwise.
* @since 1.4.10
*/
public boolean isOperatorsResolved();
/**
* Returns the operator referred to by this reference, it has been resolved.
* @return The operator referred to by this reference, if it has been resolved, null otherwise.
* @since 1.4.10
*/
public IOperators getOperators();
/**
* Attaches an {@link IOperators} resolved from this operator file reference.
* @param operators The resolved {@link IOperators} for this operator file reference
*/
public void resolveOperators(IOperators operators);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy