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_OPENFields inherited from interface org.eclipse.handly.model.impl.support.IElementImplSupport
NEW_ELEMENTS, NO_BODY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapterMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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, ornullif the element has no parentname- the name of the element, ornullif the element has no name
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
getName_
Description copied from interface:IElementImplReturns the name of this element, ornullif this element has no name. This is a handle-only method.- Specified by:
getName_in interfaceIElementImpl- Returns:
- the element name, or
nullif this element has no name
-
getParent_
Description copied from interface:IElementImplReturns the element directly containing this element, ornullif this element has no parent. This is a handle-only method.- Specified by:
getParent_in interfaceIElementImpl- Returns:
- the parent element, or
nullif this element has no parent
-