Package de.intarsys.tools.functor
Class Declaration
java.lang.Object
de.intarsys.tools.functor.Declaration
- All Implemented Interfaces:
IDeclaration
- Direct Known Subclasses:
DeclarationBlock,DeclarationElement
A common superclass for implementing
IDeclaration.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAn optional declaration context.booleanisBlock()trueif this declaration has child elements itself.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.intarsys.tools.functor.IDeclaration
accept
-
Constructor Details
-
Declaration
-
-
Method Details
-
getDeclarationContext
Description copied from interface:IDeclarationAn optional declaration context. This may be for example the object that will launch theIFunctorCalllater and has parsed some declarations on startup.- Specified by:
getDeclarationContextin interfaceIDeclaration- Returns:
- An optional declaration context.
-
isBlock
public boolean isBlock()Description copied from interface:IDeclarationtrueif this declaration has child elements itself.A
IDeclarationElementmay be aIDeclarationBlock, supporting nested declarations. You should not use "instanceof IDeclarationBlock" to check this behavior but this method.- Specified by:
isBlockin interfaceIDeclaration- Returns:
trueif this declaration has child elements itself.
-