raven-compiler/src/main/java/org/raven/antlr/ast/QualifiedName.java
/**
     * Adds a fully qualified name to this object and returns the result.
     * Does not modify this object.
     * @param name The fqn to add
     * @return The new name
     */
Adds a fully qualified name to this object and returns the result.
Does not modify this object.
@param name The fqn to add
@return The new name
Adds a fully qualified name to this object and returns the result . Does not modify this object . @param name The fqn to add @return The new name
public QualifiedName add(final QualifiedName name) {
        String[] sa = new String[names.length + name.getNames().length];
        int i;
        for (i = 0; i < names.length; i++) {
            sa[i] = names[i];
        }
        for (String s : name.getNames()) {
            sa[i] = s;
            i++;
        }
        return new QualifiedName(sa);
    }
public QualifiedName add ( final QualifiedName name ) { String [ ] sa = new String [ names . length + name . getNames ( ) . length ] ; int i ; for ( i = 0 ; i < names . length ; i ++ ) { sa [ i ] = names [ i ] ; } for ( String s : name . getNames ( ) ) { sa [ i ] = s ; i ++ ; } return new QualifiedName ( sa ) ; }
Adds a fully qualified name to this object and returns the result.
Adds a fully qualified name to this object and returns the result .