Package org.aspectj.org.eclipse.jdt.internal.compiler.env

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.env.IBinaryType


*/
public IBinaryType getBinaryTypeInfo(IFile file) throws JavaModelException {
  JavaElement pkg = (JavaElement) getParent();
  if (pkg instanceof JarPackageFragment) {
    try {
      IBinaryType info = getJarBinaryTypeInfo((PackageFragment) pkg);
      if (info == null) {
        throw newNotPresentException();
      }
      return info;
    } catch (ClassFormatException cfe) {
View Full Code Here


    method = type.getMethod(new String(bindingSelector), parameterTypes);
  }
  if (method == null || knownMethods.addIfNotIncluded(method) == null) return;

  IResource resource = type.getResource();
  IBinaryType info = null;
  if (isBinary) {
    if (resource == null)
      resource = type.getJavaProject().getProject();
    info = locator.getBinaryInfo((org.aspectj.org.eclipse.jdt.internal.core.ClassFile)type.getClassFile(), resource);
    locator.reportBinaryMemberDeclaration(resource, method, methodBinding, info, SearchMatch.A_ACCURATE);
View Full Code Here

    char[][] cname = CharOperation.splitOn('.',name.toCharArray());
    NameEnvironmentAnswer answer = nameEnv.findType(cname);
    if (answer == null || !answer.isBinaryType()) {
      return null;
    } else {
      IBinaryType binType = answer.getBinaryType();
      // XXX - but better than the alternative hacks
      if (binType instanceof ClassFileReader) {
        ClassFileReader cfr = (ClassFileReader) binType;
        cf = new ClassFileReaderBackedClassFile(cfr);
      } else {
        throw new IllegalArgumentException(
            "I'm only geared up to handle ClassFileReaders, and you gave me a " +
            binType.getClass().getName());
      }
      return cf;
    }
  }
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.internal.compiler.env.IBinaryType

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.