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 Details

    • TypeNameValidator

      public TypeNameValidator(IType expectedType)
    • TypeNameValidator

      public TypeNameValidator(IType expectedType, ITypeUsesMap typeUsesMap)
  • Method Details

    • 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