Class Declaration

java.lang.Object
de.intarsys.tools.functor.Declaration
All Implemented Interfaces:
IDeclaration
Direct Known Subclasses:
DeclarationBlock, DeclarationElement

public abstract class Declaration extends Object implements IDeclaration
A common superclass for implementing IDeclaration.
  • Constructor Details

    • Declaration

      public Declaration(Object declarationContext)
  • Method Details

    • getDeclarationContext

      public Object getDeclarationContext()
      Description copied from interface: IDeclaration
      An optional declaration context. This may be for example the object that will launch the IFunctorCall later and has parsed some declarations on startup.
      Specified by:
      getDeclarationContext in interface IDeclaration
      Returns:
      An optional declaration context.
    • isBlock

      public boolean isBlock()
      Description copied from interface: IDeclaration
      true if this declaration has child elements itself.

      A IDeclarationElement may be a IDeclarationBlock, supporting nested declarations. You should not use "instanceof IDeclarationBlock" to check this behavior but this method.

      Specified by:
      isBlock in interface IDeclaration
      Returns:
      true if this declaration has child elements itself.