Package com.scriptbasic.sourceproviders
Class BasicSingleIncludeChecker
java.lang.Object
com.scriptbasic.sourceproviders.BasicSingleIncludeChecker
- All Implemented Interfaces:
SingleIncludeChecker
A very simple (thus basic) single include checker implementation.
- Author:
- Peter Verhas
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BasicSingleIncludeChecker
public BasicSingleIncludeChecker()
-
-
Method Details
-
check
Check that the source file was not included yet. If the file was already included then the method throwsIOException.- Specified by:
checkin interfaceSingleIncludeChecker- Parameters:
key- in a unique key that identifies a file. This is usually the full path to the file. It is important that thekeyfor the file is always the same otherwise the checker can not recognize the repeated include.- Throws:
IOException- if the file was already included.
-