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.INodeGenerated file by AST Creator- Author:
- Kenneth Lausdahl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PDeclarationclone()Returns a deep clone of thisPDeclarationBasenode.PDeclarationclone(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.booleanequals(Object o)Essentially this.toString().equals(o.toString()).Map<String,Object>getChildren(Boolean includeInheritedFields)Creates a map of all field names and their valueLexIdentifiergetName()inthashCode()Forwarding hashCode call toObject.hashCode().voidremoveChild(org.intocps.maestro.ast.node.INode child)voidsetName(LexIdentifier value)Sets the_namechild of thisPDeclarationBasenode.StringtoString()
-
-
-
Method Detail
-
equals
boolean equals(Object o)
Essentially this.toString().equals(o.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
-
getChildren
Map<String,Object> getChildren(Boolean includeInheritedFields)
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
-
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
-
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
-
hashCode
int hashCode()
Forwarding hashCode call toObject.hashCode().
-
setName
void setName(LexIdentifier value)
Sets the_namechild of thisPDeclarationBasenode.- Parameters:
value- the new_namechild of thisPDeclarationBasenode
-
getName
LexIdentifier getName()
- Returns:
- the
LexIdentifiernode which is the_namechild of thisPDeclarationBasenode
-
-