Class AbstractCodeUnit

All Implemented Interfaces:
IUnitCreator, IUserDataSupport, ICodeUnit, IAddressableUnit, IBinaryUnit, IInteractiveUnit, IUnit, IEventSource

@Ser public abstract class AbstractCodeUnit extends AbstractInteractiveBinaryUnit implements ICodeUnit
Skeleton of a code unit.
  • Constructor Details

    • AbstractCodeUnit

      public AbstractCodeUnit(String name, String formatType, IInput input, IUnitProcessor unitProcessor, IUnitCreator parent, IPropertyDefinitionManager pdm)
      Create a code unit.
      Parameters:
      name - unit name
      formatType - format type
      input - input object
      unitProcessor - unit processor
      parent - parent unit creator
      pdm - property definition manager
  • Method Details

    • getStrings

      public List<? extends ICodeString> getStrings()
      The skeleton implementation returns an empty list.
      Specified by:
      getStrings in interface ICodeUnit
      Returns:
      code strings
    • getPackages

      public List<? extends ICodePackage> getPackages()
      The skeleton implementation returns an empty list.
      Specified by:
      getPackages in interface ICodeUnit
      Returns:
      code packages
    • getTypes

      public List<? extends ICodeType> getTypes()
      The skeleton implementation returns an empty list.
      Specified by:
      getTypes in interface ICodeUnit
      Returns:
      code types
    • getClasses

      public List<? extends ICodeClass> getClasses()
      The skeleton implementation returns an empty list.
      Specified by:
      getClasses in interface ICodeUnit
      Returns:
      code classes
    • getFields

      public List<? extends ICodeField> getFields()
      The skeleton implementation returns an empty list.
      Specified by:
      getFields in interface ICodeUnit
      Returns:
      code fields
    • getMethods

      public List<? extends ICodeMethod> getMethods()
      The skeleton implementation returns an empty list.
      Specified by:
      getMethods in interface ICodeUnit
      Returns:
      code methods
    • getClass

      public ICodeClass getClass(String fqname)
      The skeleton implementation returns en empty list.
      Specified by:
      getClass in interface ICodeUnit
      Parameters:
      fqname - fully-qualified class name
      Returns:
      matching class, or null
    • getField

      public ICodeField getField(String fqname)
      The skeleton implementation returns null.
      Specified by:
      getField in interface ICodeUnit
      Parameters:
      fqname - fully-qualified field name
      Returns:
      matching field, or null
    • getMethod

      public ICodeMethod getMethod(String fqname)
      The skeleton implementation returns null.
      Specified by:
      getMethod in interface ICodeUnit
      Parameters:
      fqname - fully-qualified method name
      Returns:
      matching method, or null