Package jadx.core.dex.instructions.args

Examples of jadx.core.dex.instructions.args.PrimitiveType


    }
    return field;
  }

  public FieldNode getConstFieldByLiteralArg(LiteralArg arg) {
    PrimitiveType type = arg.getType().getPrimitiveType();
    if (type == null) {
      return null;
    }
    long literal = arg.getLiteral();
    switch (type) {
View Full Code Here


  private TypeGen() {
  }

  public static String signature(ArgType type) {
    PrimitiveType stype = type.getPrimitiveType();
    if (stype == PrimitiveType.OBJECT) {
      return Utils.makeQualifiedObjectName(type.getObject());
    }
    if (stype == PrimitiveType.ARRAY) {
      return '[' + signature(type.getArrayElement());
    }
    return stype.getShortName();
  }
View Full Code Here

      code.add(';');
    }
  }

  public void useType(CodeWriter code, ArgType type) {
    PrimitiveType stype = type.getPrimitiveType();
    if (stype == null) {
      code.add(type.toString());
    } else if (stype == PrimitiveType.OBJECT) {
      if (type.isGenericType()) {
        code.add(type.getObject());
      } else {
        useClass(code, ClassInfo.fromType(type));
      }
    } else if (stype == PrimitiveType.ARRAY) {
      useType(code, type.getArrayElement());
      code.add("[]");
    } else {
      code.add(stype.getLongName());
    }
  }
View Full Code Here

TOP

Related Classes of jadx.core.dex.instructions.args.PrimitiveType

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.