Class Element
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.handly.model.impl.support.Element
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
,IElement
,IElementImpl
,IElementImplExtension
,IElementImplSupport
,IModelManager.Provider
- Direct Known Subclasses:
SourceConstruct
,SourceFile
public abstract class Element
extends org.eclipse.core.runtime.PlatformObject
implements IElementImplSupport
Provides a skeletal implementation of
IElementImplExtension
to minimize the effort required to implement that interface. Clients might
as well implement ("mix in") IElementImplSupport
directly if extending
this class is not possible/desirable for some reason.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.handly.model.impl.IElementImplExtension
IElementImplExtension.CloseHint
-
Field Summary
Fields inherited from interface org.eclipse.handly.model.impl.IElementImplExtension
CLOSE_HINT, FORCE_OPEN
Fields inherited from interface org.eclipse.handly.model.impl.support.IElementImplSupport
NEW_ELEMENTS, NO_BODY
-
Constructor Summary
-
Method Summary
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.handly.model.impl.IElementImpl
equalsAndSameParentChain_, fetchChildren_, fetchChildrenOfType_, getChildrenOfType_, getHandleMemento_, getLocationUri_, getResource_, getRoot_, toDisplayString_
Methods inherited from interface org.eclipse.handly.model.impl.IElementImplExtension
close_, getBody_, getBody_, getChildren_
Methods inherited from interface org.eclipse.handly.model.impl.support.IElementImplSupport
buildStructure_, canEqual_, close_, defaultEquals_, defaultHashCode_, exists_, findBody_, getChildrenFromBody_, getElementManager_, getModel_, isOpenable_, newDoesNotExistException_, open_, openParent_, peekAtBody_, remove_, removing_, toString_, toStringAncestors_, toStringBody_, toStringChildren_, toStringName_, validateExistence_
Methods inherited from interface org.eclipse.handly.model.impl.support.IModelManager.Provider
getModelManager_
-
Constructor Details
-
Element
Constructs a handle for an element with the given parent element and the given name.- Parameters:
parent
- the parent of the element, ornull
if the element has no parentname
- the name of the element, ornull
if the element has no name
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
getName_
Description copied from interface:IElementImpl
Returns the name of this element, ornull
if this element has no name. This is a handle-only method.- Specified by:
getName_
in interfaceIElementImpl
- Returns:
- the element name, or
null
if this element has no name
-
getParent_
Description copied from interface:IElementImpl
Returns the element directly containing this element, ornull
if this element has no parent. This is a handle-only method.- Specified by:
getParent_
in interfaceIElementImpl
- Returns:
- the parent element, or
null
if this element has no parent
-