Package editor
Class TypeNameValidator
- java.lang.Object
-
- editor.TypeNameValidator
-
- All Implemented Interfaces:
IGosuValidator
public class TypeNameValidator extends Object implements IGosuValidator
Checks that the source is the name of a type which is assignable to a given type.- Author:
- pdalbora
-
-
Constructor Summary
Constructors Constructor Description TypeNameValidator(IType expectedType)TypeNameValidator(IType expectedType, ITypeUsesMap typeUsesMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(IParsedElement rootParsedElement, String scriptSrc)
-
-
-
Constructor Detail
-
TypeNameValidator
public TypeNameValidator(IType expectedType)
-
TypeNameValidator
public TypeNameValidator(IType expectedType, ITypeUsesMap typeUsesMap)
-
-
Method Detail
-
validate
public void validate(IParsedElement rootParsedElement, String scriptSrc)
- Specified by:
validatein interfaceIGosuValidator
-
-