Class Names


  • public class Names
    extends java.lang.Object
    Utilities about variable's names.
    Author:
    tomyeh
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Set<java.lang.String> getReservedNames()
      Returns a set of readonly reserved words.
      static boolean isReserved​(java.lang.String name)
      Returns whether the specified name is reserved.
      static boolean isValid​(java.lang.String name)
      Returns whether the specified is valid.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getReservedNames

        public static final java.util.Set<java.lang.String> getReservedNames()
        Returns a set of readonly reserved words.
      • isValid

        public static final boolean isValid​(java.lang.String name)
        Returns whether the specified is valid. It also invokes isReserved(java.lang.String).
      • isReserved

        public static final boolean isReserved​(java.lang.String name)
        Returns whether the specified name is reserved. If true, you cannot use it in zscript (and EL).