Package editor

Class 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 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 interface IGosuValidator
        Parameters:
        rootParsedElement - - the root parsed element to validate from