Interface Fmi2Builder.ScopeElement<T>
-
- Type Parameters:
T- the type the scoping element encloses
- All Known Subinterfaces:
Fmi2Builder.DynamicActiveScope<T>,Fmi2Builder.IfScope<T>,Fmi2Builder.Scope<T>,Fmi2Builder.Scoping<T>,Fmi2Builder.TryScope<T>,Fmi2Builder.WhileScope<T>
- Enclosing interface:
- Fmi2Builder<S,B,E,SETTINGS>
public static interface Fmi2Builder.ScopeElement<T>Scoping element which defines a scope like a block, if, while etc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <P extends Fmi2Builder.ScopeElement<T>>
PfindParent(Class<P> clz)Find a prent element of a specific typeTgetDeclaration()The declaration node that defined the underlying scopeFmi2Builder.ScopeElement<T>parent()The parent element of this element or null if root
-
-
-
Method Detail
-
parent
Fmi2Builder.ScopeElement<T> parent()
The parent element of this element or null if root- Returns:
- the parent
-
getDeclaration
T getDeclaration()
The declaration node that defined the underlying scope- Returns:
- the scope
-
findParent
<P extends Fmi2Builder.ScopeElement<T>> P findParent(Class<P> clz)
Find a prent element of a specific type- Type Parameters:
P- the type of class- Parameters:
clz- the class type to search for- Returns:
- the parent of the specified type or null
-
-