Package jadx.core.dex.nodes.parser

Examples of jadx.core.dex.nodes.parser.SignatureParser


    exitBlocks = null;
    exceptionHandlers.clear();
  }

  private boolean parseSignature() {
    SignatureParser sp = SignatureParser.fromNode(this);
    if (sp == null) {
      return false;
    }
    try {
      genericMap = sp.consumeGenericMap();
      List<ArgType> argsTypes = sp.consumeMethodArgs();
      retType = sp.consumeType();

      List<ArgType> mthArgs = mthInfo.getArgumentsTypes();
      if (argsTypes.size() != mthArgs.size()) {
        if (argsTypes.isEmpty()) {
          return false;
View Full Code Here


      }
    }
  }

  private void parseClassSignature() {
    SignatureParser sp = SignatureParser.fromNode(this);
    if (sp == null) {
      return;
    }
    try {
      // parse class generic map
      genericMap = sp.consumeGenericMap();
      // parse super class signature
      superClass = ClassInfo.fromType(sp.consumeType());
      // parse interfaces signatures
      for (int i = 0; i < interfaces.size(); i++) {
        ArgType type = sp.consumeType();
        if (type != null) {
          interfaces.set(i, ClassInfo.fromType(type));
        } else {
          break;
        }
View Full Code Here

    }
  }

  private void setFieldsTypesFromSignature() {
    for (FieldNode field : fields) {
      SignatureParser sp = SignatureParser.fromNode(field);
      if (sp != null) {
        try {
          ArgType gType = sp.consumeType();
          if (gType != null) {
            field.setType(gType);
          }
        } catch (JadxRuntimeException e) {
          LOG.error("Field signature parse error: {}", field, e);
View Full Code Here

  public static ArgType wildcard(ArgType obj, int bound) {
    return new WildcardType(obj, bound);
  }

  public static ArgType generic(String sign) {
    return new SignatureParser(sign).consumeType();
  }
View Full Code Here

TOP

Related Classes of jadx.core.dex.nodes.parser.SignatureParser

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.