Class PackageDescriptor

java.lang.Object
com.google.gwt.core.ext.soyc.coderef.PackageDescriptor

public class PackageDescriptor extends Object
It contains all packages and they reference to classes ClassDescriptor.
  • Field Details

  • Constructor Details

    • PackageDescriptor

      public PackageDescriptor(String packageName, String longPackageName)
  • Method Details

    • from

      public static PackageDescriptor from(Map<String,ClassDescriptor> codeModel)
      Creates a package descriptor from a code model (mapping between class names and class descriptors).
    • getAllClassesByName

      public Map<String,ClassDescriptor> getAllClassesByName()
      Returns all classes in this package and its subpackages in a form of mapping between qualified class name and class descriptor.
    • addClass

      public void addClass(ClassDescriptor cls)
    • addPackage

      public void addPackage(PackageDescriptor pkg)
    • getClasses

      public Collection<ClassDescriptor> getClasses()
      Returns the list of classes in this packages without including subpackages.
    • getName

      public String getName()
    • getPackages

      public Collection<PackageDescriptor> getPackages()
      Returns the list of subpackages.