net.sourceforge.nrl.parser.ast
Interface IOperatorFileReference

All Superinterfaces:
INRLAstNode
All Known Implementing Classes:
OperatorFileReferenceImpl

public interface IOperatorFileReference
extends INRLAstNode

A reference to an operator file, by file name

Author:
Christian Nentwich

Field Summary
 
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
NEWLINE
 
Method Summary
 String getFileName()
          Return the file name.
 IOperators getOperators()
          Returns the operator referred to by this reference, it has been resolved.
 boolean isAbsolute()
          Returns true if the file name is absolute, i.e.
 boolean isOperatorsResolved()
          Returns true if the oeprator has been resolved in which case it can be accessed via IOperatorFileReference.getOperator, false otherwise.
 void resolveOperators(IOperators operators)
          Attaches an IOperators resolved from this operator file reference.
 
Methods inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
accept, dump, getColumn, getLine, getUserData, setUserData
 

Method Detail

getFileName

String getFileName()
Return the file name. Can be absolute or relative.

Returns:
the file name

isAbsolute

boolean isAbsolute()
Returns true if the file name is absolute, i.e. starts from a root directory. If false, it is relative to the rule file.

Returns:
true if the file name is absolute, false otherwise

isOperatorsResolved

boolean isOperatorsResolved()
Returns true if the oeprator has been resolved in which case it can be accessed via IOperatorFileReference.getOperator, false otherwise.

Returns:
true if the operator has been resolved, false otherwise.
Since:
1.4.10

getOperators

IOperators getOperators()
Returns the operator referred to by this reference, it has been resolved.

Returns:
The operator referred to by this reference, if it has been resolved, null otherwise.
Since:
1.4.10

resolveOperators

void resolveOperators(IOperators operators)
Attaches an IOperators resolved from this operator file reference.

Parameters:
operators - The resolved IOperators for this operator file reference


Copyright © 2006-2013. All Rights Reserved.