public BshMethod[] getMethods() {
        return this.methods.values().stream()
                .flatMap(v -> v.stream()).toArray(BshMethod[]::new);
    }
public BshMethod [ ] getMethods ( ) { return this . methods . values ( ) . stream ( ) . flatMap ( v -> v . stream ( ) ) . toArray ( BshMethod [ ] :: new ) ; }
Get the methods defined in this namespace. (This does not show methods
in parent namespaces). Note: This will probably be renamed
getDeclaredMethods()
@return the methods