Package de.intarsys.tools.functor
Class Declaration
- java.lang.Object
-
- de.intarsys.tools.functor.Declaration
-
- All Implemented Interfaces:
IDeclaration
- Direct Known Subclasses:
DeclarationBlock
,DeclarationElement
public abstract class Declaration extends java.lang.Object implements IDeclaration
A common superclass for implementingIDeclaration
.
-
-
Constructor Summary
Constructors Constructor Description Declaration(java.lang.Object declarationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getDeclarationContext()
An optional declaration context.boolean
isBlock()
true
if this declaration has child elements itself.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.intarsys.tools.functor.IDeclaration
accept
-
-
-
-
Method Detail
-
getDeclarationContext
public java.lang.Object getDeclarationContext()
Description copied from interface:IDeclaration
An optional declaration context. This may be for example the object that will launch theIFunctorCall
later and has parsed some declarations on startup.- Specified by:
getDeclarationContext
in interfaceIDeclaration
- 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 aIDeclarationBlock
, supporting nested declarations. You should not use "instanceof IDeclarationBlock" to check this behavior but this method.- Specified by:
isBlock
in interfaceIDeclaration
- Returns:
true
if this declaration has child elements itself.
-
-