Package org.adoptopenjdk.jitwatch.model

Examples of org.adoptopenjdk.jitwatch.model.IMetaMember


    sandboxStage.openTriView(triViewMember);
  }

  private IMetaMember getMemberForClass(String openClassInTriView, IReadOnlyJITDataModel model)
  {
    IMetaMember triViewMember = null;

    logListener.log("Looking up class: " + openClassInTriView);

    MetaClass metaClass = model.getPackageManager().getMetaClass(openClassInTriView);
View Full Code Here


      if (DEBUG_LOGGING_ASSEMBLY)
      {
        logger.debug("Parsed assembly sig {}\nfrom {}", sig, firstLine);
      }

      IMetaMember currentMember = memberFinder.findMemberWithSignature(sig);

      if (currentMember != null)
      {
        if (DEBUG_LOGGING_ASSEMBLY)
        {
          logger.debug("Found member {}", currentMember);
        }

        AssemblyMethod asmMethod = AssemblyUtil.parseAssembly(asmString);
       
        currentMember.setAssembly(asmMethod);
      }
      else
      {
        if (DEBUG_LOGGING_ASSEMBLY)
        {
View Full Code Here

      @Override
      public void changed(ObservableValue<? extends VCallRow> arg0, VCallRow oldRow, VCallRow newRow)
      {
        if (newRow != null)
        {
          IMetaMember callingMember = newRow.getCallingMember();

          ITriView triView = proxy.openTriView(callingMember, true);

          triView.highlightSourceLine(newRow.getCallerSourceLine());
        }
View Full Code Here

        if (code == KeyCode.BACK_SPACE)
        {
          if (!navigationStack.isEmpty())
          {
            IMetaMember previous = navigationStack.pop();

            triView.setMember(previous, false);
          }
        }
      }
View Full Code Here

  public void navigateTo(IMetaMember nextMember)
  {
    if (nextMember != null)
    {
      IMetaMember currentMember = triView.getMetaMember();

      if (currentMember != null)
      {
        navigationStack.push(currentMember);
      }
View Full Code Here

            comment = prependCurrentMember(comment, currentMember);
          }

          try
          {
            IMetaMember member = ParseUtil.getMemberFromComment(model, comment);

            if (member != null)
            {
              navigationStack.navigateTo(member);
            }
View Full Code Here

      if (entry != null)
      {
        MemberSignatureParts msp = entry.getMemberSignatureParts();

        IMetaMember nextMember = metaClass.getMemberFromSignature(msp);

        if (nextMember != null)
        {
          if (!nextMember.equals(currentMember))
          {
            setMember(nextMember, false, false);
          }

          int bcOffset = entry.getBytecodeOffset();
View Full Code Here

    throw new LogParseException("Could not split signature with regex: " + logSignature);
  }

  public static IMetaMember findMemberWithSignature(IReadOnlyJITDataModel model, String logSignature) throws LogParseException
  {
    IMetaMember metaMember = null;

    if (logSignature != null)
    {
      MemberSignatureParts msp = MemberSignatureParts.fromLogCompilationSignature(logSignature);
View Full Code Here

    }
  }

  public static IMetaMember lookupMember(String methodId, IParseDictionary parseDictionary, IReadOnlyJITDataModel model)
  {
    IMetaMember result = null;

    Tag methodTag = parseDictionary.getMethod(methodId);

    if (methodTag != null)
    {
View Full Code Here

  @Override
  protected void updateItem(final Suggestion suggestion, boolean empty)
  {
    if (suggestion != null)
    {
      final IMetaMember member = suggestion.getCaller();
     
      btnTriView.setOnAction(new EventHandler<ActionEvent>()
      {
        @Override
        public void handle(ActionEvent e)
        {
          ITriView triViewAccesor = triViewAccessor.openTriView(member, false);
          triViewAccesor.highlightBytecodeForSuggestion(suggestion);
        }
      });

      lblMetaClass.setText(member.getMetaClass().getFullyQualifiedName());
      lblMetaMember.setText(member.toStringUnqualifiedMethodName(false));
    }
  }
View Full Code Here

TOP

Related Classes of org.adoptopenjdk.jitwatch.model.IMetaMember

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.