Methods Summary |
---|
private java.lang.String | escapeDots(java.lang.String aString)
char escape = Tokens.kEscapeChar;
char dot = Tokens.kDelimiterChar;
return ( insertCharBefore(aString, escape, dot) );
|
private java.lang.String | insertCharBefore(java.lang.String aString, char insChar, char beforeChar)
StringBuffer destBuffer = new StringBuffer();
char[] srcArray = aString.toCharArray();
for (int i = 0 ; i < srcArray.length ; i++)
{
char ch = srcArray[i];
if (ch == beforeChar)
{
destBuffer.append(insChar);
}
destBuffer.append(ch);
}
return ( destBuffer.toString() );
|
private java.lang.String | insertDotBeforeQM(java.lang.String aString)
char dot = Tokens.kDelimiterChar;
char qm = ObjectNames.kSingleMatchChar;
return ( insertCharBefore(aString, dot, qm) );
|
private java.lang.String | insertDotBeforeStar(java.lang.String aString)
char dot = Tokens.kDelimiterChar;
char star = Tokens.kWildCardChar;
return ( insertCharBefore(aString, dot, star) );
|
public boolean | isJDK14()
String javaSpecVersion = System.getProperty("java.specification.version");
return ( javaSpecVersion.startsWith("1.4") );
|
public boolean | matches()
return ( mRealMatcher.matches() );
|
private java.lang.String | translateFromJMXToJDK14(java.lang.String aString)
String dotEscpapedString = escapeDots(aString);
String starReplacedString = insertDotBeforeStar(dotEscpapedString);
String qmReplacedString = insertDotBeforeQM(starReplacedString);
return ( qmReplacedString );
|