public String matchPattern(String alias) {
        // generate match pattern
        if (alias != null)
            return "(" + alias + processLabels(matchLabels, false) + ")";
        // pattern without alias
        return "(" + processLabels(matchLabels, false) + ")";
    }
public String matchPattern ( String alias ) { if ( alias != null ) return "(" + alias + processLabels ( matchLabels , false ) + ")" ; return "(" + processLabels ( matchLabels , false ) + ")" ; }
Generates a Cypher MATCH pattern for the vertex, example:
<p>
(alias:Label1:Label2)
</p>

@param alias The node alias, <code>null</code> if not required.
@return the Cypher MATCH clause.