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 void
validate(IParsedElement rootParsedElement, String scriptSrc)
Provides additional semantic checks to a Gosu parser
-
-
-
Constructor Detail
-
TypeNameValidator
public TypeNameValidator(IType expectedType)
-
TypeNameValidator
public TypeNameValidator(IType expectedType, ITypeUsesMap typeUsesMap)
-
-
Method Detail
-
validate
public void validate(IParsedElement rootParsedElement, String scriptSrc)
Description copied from interface:IGosuValidator
Provides additional semantic checks to a Gosu parser- Specified by:
validate
in interfaceIGosuValidator
- Parameters:
rootParsedElement
- - the root parsed element to validate from
-
-