public static String getReferenceName ( IConditional conditional ) { return conditional instanceof IVarDef ? String . format ( "variable=%s" , ( ( IVarDef ) conditional ) . getPathName ( ) ) : conditional instanceof VarBindingDef ? String . format ( "variable=%s, value=%s" , ( ( VarBindingDef ) conditional ) . getVarDef ( ) . getPathName ( ) , String . valueOf ( ( ( VarBindingDef ) conditional ) . getValueDef ( ) . getName ( ) ) ) : null ; }
Returns the full reference name for the given IConditional .