public abstract class ScriptResolver extends java.lang.Object implements IScriptResolver
IScriptResolver
s
IScriptResolver
Constructor and Description |
---|
ScriptResolver() |
Modifier and Type | Method and Description |
---|---|
IFile |
getFile(ScriptReference script)
This method is used to find the workspace
IFile that corresponds to the source URI from the given ScriptReference . |
boolean |
matches(ScriptReference script,
IPath path)
|
public boolean matches(ScriptReference script, IPath path)
IScriptResolver
matches
in interface IScriptResolver
script
- the ScriptReference
to compare the source URI
from - never null
path
- the path to match against the source URI
- never null
true
if the source URI
of the given ScriptReference
is considered to match the given IPath
, false
otherwise.public IFile getFile(ScriptReference script)
IScriptResolver
IFile
that corresponds to the source URI
from the given ScriptReference
.
null
. The result will be checked for existence.getFile
in interface IScriptResolver
script
- the ScriptReference
to find the IFile
forIFile
for the ScriptReference
or null
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.