Class EntityDescriptor

java.lang.Object
com.google.gwt.core.ext.soyc.coderef.EntityDescriptor
Direct Known Subclasses:
ClassDescriptor, MemberDescriptor

public abstract class EntityDescriptor extends Object
The abstraction of any possible entity in the code that is register by soyc: classes, methods and fields. It includes all contributed sizes per fragment.
  • Field Details

    • name

      protected final String name
    • obfuscatedNames

      protected final Set<String> obfuscatedNames
      Stores obfuscated names. An entity can have several obfuscated names, because it can be presented in several forms, eg. in methods: original and its static version.
    • fragments

      protected final List<EntityDescriptor.Fragment> fragments
  • Constructor Details

    • EntityDescriptor

      public EntityDescriptor(String name)
  • Method Details

    • addFragment

      public void addFragment(EntityDescriptor.Fragment fragment)
    • getFragments

      public Collection<EntityDescriptor.Fragment> getFragments()
      Returns the list of sizes per fragment contributed by this entity.
    • getFullName

      public abstract String getFullName()
      Returns the full qualified name.
    • getName

      public String getName()
      Returns the name of the entity. For instance, class entities return the short name JType.getShortName(), fields return the field name, and methods return the method name without its signature.
    • getObfuscatedNames

      public Set<String> getObfuscatedNames()
    • addObfuscatedName

      public void addObfuscatedName(String obfuscatedName)