Package tv.porst.swfretools.parser.structures

Examples of tv.porst.swfretools.parser.structures.MethodInfo


      if (methodIndex >= methodInfos.size()) {
        errors.add(String.format("Can not find method header for method %d because method header ID is out of bounds", methodIndex));
      }
      else {
        final MethodInfo methodInfo = data.getMethodInfos().get(methodIndex);

        final AS3Code code = methodBody.getCode();

        final ResolvedMethod resolvedMethod = resolveMethod(methodInfo, code, constantStrings, multiNames, namespaces, errors);
        methodMapping.put(methodInfo, resolvedMethod);
View Full Code Here


      return null;
    }

    final String[] methodName = resolveMethodName(traitsInfo, constantStringList, multinameList, namespaceList, errors);

    final MethodInfo method = methodList.get(methodIndex);
    final ResolvedMethod resolvedMethod = methodMapping.get(method);
    final AS3Code code = resolvedMethod.getCode();

    return new ResolvedMethod(resolvedMethod.getReturnType(), methodName, resolvedMethod.getArguments(), code);
  }
View Full Code Here

  private static String getMethodName(final int methodIndex, final ResolvedCode code) {
    if (methodIndex >= code.getData().getMethodInfos().size()) {
      return null;
    }

    final MethodInfo method = code.getData().getMethodInfos().get(methodIndex);

    final int nameIndex = method.getName().value();

    if (nameIndex >= code.getData().getConstantPool().getStrings().size()) {
      return null;
    }
    else {
View Full Code Here

TOP

Related Classes of tv.porst.swfretools.parser.structures.MethodInfo

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.