Klasse IdentifierMangler

java.lang.Object
org.freedesktop.dbus.utils.bin.IdentifierMangler

public final class IdentifierMangler extends Object
Checks identifiers for keywords etc and mangles them if so.
  • Methodendetails

    • isReservedWord

      public static boolean isReservedWord(String _name)
      Checks if given value is a reserved keyword in Java.
      Parameter:
      _name - name to check
      Gibt zurück:
      true if reserved
    • mangle

      public static String mangle(String _name)
      Checks if given name is a reserved word in Java.

      If true, returns the given name with a "_" prepended. Otherwise returns the input string.

      Parameter:
      _name - name to check
      Gibt zurück:
      String