Interface NodeWithDeclaration

    • Method Detail

      • getDeclarationAsString

        String getDeclarationAsString​(boolean includingModifiers,
                                      boolean includingThrows)
        As getDeclarationAsString(boolean, boolean, boolean) including the parameters with both type and name.
        Parameters:
        includingModifiers - flag to include the modifiers (if present) in the string produced
        includingThrows - flag to include the throws clause (if present) in the string produced
        Returns:
        String representation of declaration based on parameter flags
      • getDeclarationAsString

        String getDeclarationAsString​(boolean includingModifiers,
                                      boolean includingThrows,
                                      boolean includingParameterName)
        A simple representation of the element declaration. It should fit one string.
        Parameters:
        includingModifiers - flag to include the modifiers (if present) in the string produced
        includingThrows - flag to include the throws clause (if present) in the string produced
        includingParameterName - flag to include the parameter name (while the parameter type is always included) in the string produced
        Returns:
        String representation of declaration based on parameter flags