throws CannotCompileException,
NotFoundException,
IOException
{
List<CtBehavior> behaviorList = getMatcheDeclaredBehavior();
CtClass ctClass = getCtClass();
if (behaviorList.size() > 0)
{
CtField field = CtField.make("private long createTimeJvn;", ctClass);
ctClass.addField(field);
CtMethod getServerInfoMethod = CtMethod.make("" + //
"public long getCreateTimeJvn(){ " + //
" return this.createTimeJvn;" + //
"}", ctClass);
ctClass.addMethod(getServerInfoMethod);
}
for (CtBehavior ctBehavior : behaviorList)
{
convertBehavior(ctBehavior);
}
setNewClassfileBuffer(ctClass.toBytecode());
}