Interface Type

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Get the name of the type.
      java.lang.String getTypeString()
      Get the type definition as a string as seen in tptaif or in the type editor.
      boolean isAnonymous()
      Determine if the type is anonymous, i.e., if the type is not a custom type with an explicitly declared name.
      boolean isDeclared()
      Determine if the type is declared, i.e., if the type is a custom type explicitly declared in the type editor of TPT.
      boolean isPredefined()
      Determines if the type is "predefined".
    • Method Detail

      • getName

        java.lang.String getName()
                          throws java.rmi.RemoteException
        Get the name of the type.
        Returns:
        The name of the type.
        Throws:
        java.rmi.RemoteException - remote communication problem
      • getTypeString

        java.lang.String getTypeString()
                                throws java.rmi.RemoteException
        Get the type definition as a string as seen in tptaif or in the type editor.
        Returns:
        The type definition as a string.
        Throws:
        java.rmi.RemoteException - remote communication problem
        See Also:
        for examples of the type syntax
      • isPredefined

        boolean isPredefined()
                      throws java.rmi.RemoteException
        Determines if the type is "predefined".
        • Any primitive type without a declared name and without enum consts is predefined.
        • String types without a declared name are predefined.
        • All other types are not predefined.
        Note, that every predefined type is also anonymous.
        Returns:
        true if the type is predefined, false otherwise.
        Throws:
        java.rmi.RemoteException - remote communication problem
        See Also:
        isAnonymous()
      • isAnonymous

        boolean isAnonymous()
                     throws java.rmi.RemoteException
        Determine if the type is anonymous, i.e., if the type is not a custom type with an explicitly declared name. This is the inverse function of isDeclared().
        Returns:
        true if the type is anonymous, false otherwise.
        Throws:
        java.rmi.RemoteException - remote communication problem
        See Also:
        isDeclared()
      • isDeclared

        boolean isDeclared()
                    throws java.rmi.RemoteException
        Determine if the type is declared, i.e., if the type is a custom type explicitly declared in the type editor of TPT. This is the inverse function of isAnonymous().
        Returns:
        true if the type is declared with a custom name, false otherwise.
        Throws:
        java.rmi.RemoteException - remote communication problem
        See Also:
        isAnonymous()