Package org.intocps.maestro.ast
Interface PDeclaration
- All Superinterfaces:
org.intocps.maestro.ast.node.INode
- All Known Implementing Classes:
AFunctionDeclaration,AModuleDeclaration,AVariableDeclaration,PDeclarationBase
public interface PDeclaration
extends org.intocps.maestro.ast.node.INode
Generated file by AST Creator
- Author:
- Kenneth Lausdahl
-
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a deep clone of thisPDeclarationBasenode.Creates a deep clone of thisPDeclarationBasenode while putting all old node-new node relations in the mapoldToNewMap.booleanEssentially this.toString().equals(o.toString()).getChildren(Boolean includeInheritedFields) Creates a map of all field names and their valuegetName()inthashCode()Forwarding hashCode call toObject.hashCode().voidremoveChild(org.intocps.maestro.ast.node.INode child) voidsetName(LexIdentifier value) Sets the_namechild of thisPDeclarationBasenode.toString()Methods inherited from interface org.intocps.maestro.ast.node.INode
apply, apply, apply, apply, getAncestor, parent, parent, replaceChild
-
Method Details
-
equals
Essentially this.toString().equals(o.toString()). -
clone
PDeclaration clone()Returns a deep clone of thisPDeclarationBasenode.- Specified by:
clonein interfaceorg.intocps.maestro.ast.node.INode- Returns:
- a deep clone of this
PDeclarationBasenode
-
toString
String toString() -
removeChild
void removeChild(org.intocps.maestro.ast.node.INode child) Removes theINodechildas a child of thisPDeclarationBasenode. Do not call this method with any graph fields of this node. This will cause any child's with the same reference to be removed unintentionally orRuntimeExceptionwill be thrown.- Specified by:
removeChildin interfaceorg.intocps.maestro.ast.node.INode- Parameters:
child- the child node to be removed from thisPDeclarationBasenode- Throws:
RuntimeException- ifchildis not a child of thisPDeclarationBasenode
-
hashCode
int hashCode()Forwarding hashCode call toObject.hashCode(). -
clone
PDeclaration clone(Map<org.intocps.maestro.ast.node.INode, org.intocps.maestro.ast.node.INode> oldToNewMap) Creates a deep clone of thisPDeclarationBasenode while putting all old node-new node relations in the mapoldToNewMap.- Specified by:
clonein interfaceorg.intocps.maestro.ast.node.INode- Parameters:
oldToNewMap- the map filled with the old node-new node relation- Returns:
- a deep clone of this
PDeclarationBasenode
-
getChildren
Creates a map of all field names and their value- Specified by:
getChildrenin interfaceorg.intocps.maestro.ast.node.INode- Parameters:
includeInheritedFields- if true all inherited fields are included- Returns:
- a a map of names to values of all fields
-
setName
Sets the_namechild of thisPDeclarationBasenode.- Parameters:
value- the new_namechild of thisPDeclarationBasenode
-
getName
LexIdentifier getName()- Returns:
- the
LexIdentifiernode which is the_namechild of thisPDeclarationBasenode
-