Package jp.co.smg.endosnipe.javassist

Examples of jp.co.smg.endosnipe.javassist.CtClass


        String callPostProcessCode = postProcessCodeBuffer.toString();

        ctBehavior.insertAfter(callPostProcessCode);

        // ��O�n���h�����O��lj�����B
        CtClass throwable = getClassPool().get(Throwable.class.getName());
        // ���s�O������lj�����B
        int ngCodeLength = argLength + NG_CODE_FIXEDLENGTH;
        StringBuilder ngCodeBuffer = new StringBuilder(ngCodeLength);
        ngCodeBuffer.append(POSTPROCESS_NG_CODE_BEFORE);
        ngCodeBuffer.append(argClassMethod);
View Full Code Here


        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());
    }
View Full Code Here

        throws CannotCompileException,
            NotFoundException,
            IOException
    {
        List<CtBehavior> behaviorList = getMatcheDeclaredBehavior();
        CtClass ctClass = getCtClass();
        if (behaviorList.size() > 0)
        {
            // �C���^�[�t�F�[�X�̒lj�
            CtClass accessorClass = getClassPool().get(FSNamesystemAccessor.class.getName());
            ctClass.addInterface(accessorClass);

            CtMethod getServerInfoMethod = CtMethod.make("" + //
                    "public java.util.List resolve(java.util.List names){ " + //
                    "        return this.dnsToSwitchMapping.resolve(names);" + //
View Full Code Here

   */
  @Override
  public void convertImpl() throws CannotCompileException, NotFoundException,
      IOException {
    List<CtBehavior> behaviorList = getMatcheDeclaredBehavior();
    CtClass ctClass = getCtClass();
    if (behaviorList.size() > 0) {
      // �C���^�[�t�F�[�X�̒lj�
      CtClass accessorClass = getClassPool().get(
          HMasterAccessor.class.getName());

      // HServerInfo���AHBase�̃N���X����AJavelin�p�N���X�ɕϊ�����B
      // RegionLoad�ɂ‚��Ă͖��Ή��B
      CtMethod convertServerInfoMethod = CtMethod
View Full Code Here

TOP

Related Classes of jp.co.smg.endosnipe.javassist.CtClass

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.