Examples of Package


Examples of ceylon.language.meta.declaration.Package

        } else if (at('.')) {
           packageName = packageName();
        } else {
            packageName = module.getName() + '.' + packageName();
        }
        Package package_ = makePackage(module, packageName);
        if (atEnd()) {
            return package_;
        }
        return declaration(package_);
    }
View Full Code Here

Examples of cn.com.zjtelecom.smgp.message.Package

        in.read(Message);

        this.LastActiveTime = DateUtil.getTimeStampL();
        // debug
        // System.out.println(Hex.rhex(Message));
        Package mpackage = new Package(Message);

        // ���ò���
        int SequenceId = mpackage.SequenceId;

        if (this.hasLogin || mpackage.ReqestId == RequestId.ActiveTest
View Full Code Here

Examples of com.android.sdklib.internal.repository.packages.Package

        HashSet<File> visited = new HashSet<File>();

        monitor.setProgressMax(11);

        File dir = null;
        Package pkg = null;

        if ((parseFilter & PARSE_DOCS) != 0) {
            dir = new File(osSdkRoot, SdkConstants.FD_DOCS);
            pkg = scanDoc(dir, monitor);
            if (pkg != null) {
                packages.add(pkg);
                visited.add(dir);
            }
        }
        monitor.incProgress(1);

        if ((parseFilter & PARSE_TOOLS) != 0) {
            dir = new File(osSdkRoot, SdkConstants.FD_TOOLS);
            pkg = scanTools(dir, monitor);
            if (pkg != null) {
                packages.add(pkg);
                visited.add(dir);
            }
        }
        monitor.incProgress(1);

        if ((parseFilter & PARSE_PLATFORM_TOOLS) != 0) {
            dir = new File(osSdkRoot, SdkConstants.FD_PLATFORM_TOOLS);
            pkg = scanPlatformTools(dir, monitor);
            if (pkg != null) {
                packages.add(pkg);
                visited.add(dir);
            }
        }
        monitor.incProgress(1);

        if ((parseFilter & PARSE_BUILD_TOOLS) != 0) {
            scanBuildTools(sdkManager, visited, packages, monitor);
        }
        monitor.incProgress(1);

        // for platforms, add-ons and samples, rely on the SdkManager parser
        if ((parseFilter & (PARSE_ADDONS | PARSE_PLATFORMS)) != 0) {
            File samplesRoot = new File(osSdkRoot, SdkConstants.FD_SAMPLES);

            for(IAndroidTarget target : sdkManager.getTargets()) {
                Properties props = parseProperties(new File(target.getLocation(),
                        SdkConstants.FN_SOURCE_PROP));

                try {
                    pkg = null;
                    if (target.isPlatform() && (parseFilter & PARSE_PLATFORMS) != 0) {
                        pkg = PlatformPackage.create(target, props);

                        if (samplesRoot.isDirectory()) {
                            // Get the samples dir for a platform if it is located in the new
                            // root /samples dir. We purposely ignore "old" samples that are
                            // located under the platform dir.
                            File samplesDir = new File(target.getPath(IAndroidTarget.SAMPLES));
                            if (samplesDir.exists() &&
                                    samplesDir.getParentFile().equals(samplesRoot)) {
                                Properties samplesProps = parseProperties(
                                        new File(samplesDir, SdkConstants.FN_SOURCE_PROP));
                                if (samplesProps != null) {
                                    Package pkg2 = SamplePackage.create(target, samplesProps);
                                    packages.add(pkg2);
                                }
                                visited.add(samplesDir);
                            }
                        }
                    } else if ((parseFilter & PARSE_ADDONS) != 0) {
                        pkg = AddonPackage.create(target, props);
                    }

                    if (pkg != null) {
                        for (ISystemImage systemImage : target.getSystemImages()) {
                            if (systemImage.getLocationType() == LocationType.IN_SYSTEM_IMAGE) {
                                File siDir = systemImage.getLocation();
                                if (siDir.isDirectory()) {
                                    Properties siProps = parseProperties(
                                            new File(siDir, SdkConstants.FN_SOURCE_PROP));
                                    Package pkg2 = new SystemImagePackage(
                                            target.getVersion(),
                                            0 /*rev*/,   // this will use the one from siProps
                                            systemImage.getAbiType(),
                                            siProps,
                                            siDir.getAbsolutePath());
View Full Code Here

Examples of com.bring.api.shippingguide.request.Package

        // Initialize library
        String clientId = "www.mywebshop.com";
        BringService bringService = new BringService(clientId);

        // Prepare query
        Package packet = new Package();
        packet.withWeightInGrams("4233");

        Shipment shipment = new Shipment();
        shipment.withFromPostalCode("1409");
        shipment.withToPostalCode("7050");
        shipment.addPackage(packet);
View Full Code Here

Examples of com.dotcms.repackage.org.drools.rule.Package

     
        final PackageBuilder builder = new PackageBuilder();
       
        builder.addPackageFromXml(source);
       
        final Package pkg = builder.getPackage();
       
        final RuleBase ruleBase = RuleBaseFactory.newRuleBase();
        ruleBase.addPackage(pkg);
        return ruleBase;
    }
View Full Code Here

Examples of com.google.eclipse.protobuf.protobuf.Package

  private QualifiedName addPackage(EObject obj, QualifiedName qualifiedName) {
    if (qualifiedName == null || obj instanceof Package) {
      return qualifiedName;
    }
    Package p = modelObjects.packageOf(obj);
    if (p == null) {
      return qualifiedName;
    }
    List<String> segments = packages.segmentsOf(p);
    if (segments.isEmpty()) {
View Full Code Here

Examples of com.ibm.ivj.util.base.Package

    public void scanProject(Project project) {
        try {
            Package[] packages = project.getPackages();
            if (packages != null) {
                for (int i = 0; i < packages.length; i++) {
                    Package item = packages[i];
                    // replace '.' by file seperator because the patterns are
                    // using file seperator syntax (and we can use the match
                    // methods this way).
                    String name =
                        project.getName()
                        + File.separator
                        + item.getName().replace('.', File.separatorChar);
                    if (isIncluded(name) && !isExcluded(name)) {
                        packagesIncluded.addElement(item);
                    }
                }
            }
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.Package

    /** Tells whether a declaration is in the specified package. */
    boolean isImported(final Package p2, final Declaration d) {
        if (d == null) {
            return false;
        }
        Package p1 = d.getUnit().getPackage();
        if (p2 == null)return p1 != null;
        if (p1.getModule()== null)return p2.getModule()!=null;
        return !p1.getModule().equals(p2.getModule());
    }
View Full Code Here

Examples of com.salas.bb.plugins.domain.Package

        // Load, initialize and populate the list
        List<File> packages = getPackages();
        for (File pckg : packages)
        {
            Package p = load(pckg);
            if (p != null)
            {
                try
                {
                    p.initialize();
                } catch (Throwable e)
                {
                    LOG.log(Level.SEVERE, "Failed to initailize the action.", e);
                }
                enabledPackages.add(p);
View Full Code Here

Examples of com.salesforce.ide.api.metadata.types.Package

        // find manifest file for package
        IFile manfiestFile = getPackageManifestFile(project);

        // generate package object by parsing package file
        Package packageManifest = null;

        if (manfiestFile != null && manfiestFile.exists()) {
            if (logger.isDebugEnabled()) {
                logger.debug("Found existing existing package manifest.");
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.