Package org.intocps.maestro.ast
Class ABasicBlockStm
- java.lang.Object
-
- org.intocps.maestro.ast.node.Node
-
- org.intocps.maestro.ast.node.PStmBase
-
- org.intocps.maestro.ast.node.SBlockStmBase
-
- org.intocps.maestro.ast.ABasicBlockStm
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<org.intocps.maestro.ast.node.INode>,org.intocps.maestro.ast.node.INode,org.intocps.maestro.ast.node.PStm,org.intocps.maestro.ast.node.SBlockStm
public class ABasicBlockStm extends org.intocps.maestro.ast.node.SBlockStmBaseGenerated file by AST Creator- Author:
- Kenneth Lausdahl
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ABasicBlockStm()Creates a new default constructorABasicBlockStmnode with no children.ABasicBlockStm(List<? extends org.intocps.maestro.ast.node.PStm> body_)Deprecated.This method should not be used, use AstFactory instead.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(org.intocps.maestro.ast.analysis.intf.IAnalysis caller)Calls theIAnalysis.caseABasicBlockStm(ABasicBlockStm)of theIAnalysiscaller.<A> Aapply(org.intocps.maestro.ast.analysis.intf.IAnswer<A> caller)Calls theIAnswer.caseABasicBlockStm(ABasicBlockStm)of theIAnswercaller.<Q> voidapply(org.intocps.maestro.ast.analysis.intf.IQuestion<Q> caller, Q question)Calls theIQuestion.caseABasicBlockStm(ABasicBlockStm, Object)of theIQuestioncaller.<Q,A>
Aapply(org.intocps.maestro.ast.analysis.intf.IQuestionAnswer<Q,A> caller, Q question)Calls theIQuestionAnswer.caseABasicBlockStm(ABasicBlockStm, Object)of theIQuestionAnswercaller.ABasicBlockStmclone()Returns a deep clone of thisABasicBlockStmnode.ABasicBlockStmclone(Map<org.intocps.maestro.ast.node.INode,org.intocps.maestro.ast.node.INode> oldToNewMap)Creates a deep clone of thisABasicBlockStmnode 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 valueinthashCode()Forwarding hashCode call toObject.hashCode().voidremoveChild(org.intocps.maestro.ast.node.INode child)StringtoString()-
Methods inherited from class org.intocps.maestro.ast.node.Node
cloneList, cloneList, cloneListExternal, cloneListExternal, cloneListList, cloneListList, cloneNode, cloneNode, compareTo, getAllFields, getAncestor, parent, parent, replaceChild
-
-
-
-
Constructor Detail
-
ABasicBlockStm
public ABasicBlockStm(List<? extends org.intocps.maestro.ast.node.PStm> body_)
Deprecated.This method should not be used, use AstFactory instead. The basic child nodes are removed from their previous parents.Creates a new complete constructorABasicBlockStmnode with the given nodes as children.
-
ABasicBlockStm
public ABasicBlockStm()
Creates a new default constructorABasicBlockStmnode with no children.
-
-
Method Detail
-
removeChild
public void removeChild(org.intocps.maestro.ast.node.INode child)
Removes theINodechildas a child of thisABasicBlockStmnode. 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- Specified by:
removeChildin interfaceorg.intocps.maestro.ast.node.PStm- Specified by:
removeChildin interfaceorg.intocps.maestro.ast.node.SBlockStm- Overrides:
removeChildin classorg.intocps.maestro.ast.node.SBlockStmBase- Parameters:
child- the child node to be removed from thisABasicBlockStmnode- Throws:
RuntimeException- ifchildis not a child of thisABasicBlockStmnode
-
getChildren
public 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- Specified by:
getChildrenin interfaceorg.intocps.maestro.ast.node.PStm- Specified by:
getChildrenin interfaceorg.intocps.maestro.ast.node.SBlockStm- Overrides:
getChildrenin classorg.intocps.maestro.ast.node.SBlockStmBase- Parameters:
includeInheritedFields- if true all inherited fields are included- Returns:
- a a map of names to values of all fields
-
toString
public String toString()
- Specified by:
toStringin interfaceorg.intocps.maestro.ast.node.PStm- Specified by:
toStringin interfaceorg.intocps.maestro.ast.node.SBlockStm- Overrides:
toStringin classorg.intocps.maestro.ast.node.SBlockStmBase
-
equals
public boolean equals(Object o)
Essentially this.toString().equals(o.toString()).- Specified by:
equalsin interfaceorg.intocps.maestro.ast.node.PStm- Specified by:
equalsin interfaceorg.intocps.maestro.ast.node.SBlockStm- Overrides:
equalsin classorg.intocps.maestro.ast.node.SBlockStmBase
-
clone
public ABasicBlockStm clone()
Returns a deep clone of thisABasicBlockStmnode.- Specified by:
clonein interfaceorg.intocps.maestro.ast.node.INode- Specified by:
clonein interfaceorg.intocps.maestro.ast.node.PStm- Specified by:
clonein interfaceorg.intocps.maestro.ast.node.SBlockStm- Specified by:
clonein classorg.intocps.maestro.ast.node.SBlockStmBase- Returns:
- a deep clone of this
ABasicBlockStmnode
-
hashCode
public int hashCode()
Forwarding hashCode call toObject.hashCode().- Specified by:
hashCodein interfaceorg.intocps.maestro.ast.node.PStm- Specified by:
hashCodein interfaceorg.intocps.maestro.ast.node.SBlockStm- Overrides:
hashCodein classorg.intocps.maestro.ast.node.SBlockStmBase
-
clone
public ABasicBlockStm clone(Map<org.intocps.maestro.ast.node.INode,org.intocps.maestro.ast.node.INode> oldToNewMap)
Creates a deep clone of thisABasicBlockStmnode while putting all old node-new node relations in the mapoldToNewMap.- Specified by:
clonein interfaceorg.intocps.maestro.ast.node.INode- Specified by:
clonein interfaceorg.intocps.maestro.ast.node.PStm- Specified by:
clonein interfaceorg.intocps.maestro.ast.node.SBlockStm- Specified by:
clonein classorg.intocps.maestro.ast.node.SBlockStmBase- Parameters:
oldToNewMap- the map filled with the old node-new node relation- Returns:
- a deep clone of this
ABasicBlockStmnode
-
apply
public void apply(org.intocps.maestro.ast.analysis.intf.IAnalysis caller) throws org.intocps.maestro.ast.analysis.AnalysisExceptionCalls theIAnalysis.caseABasicBlockStm(ABasicBlockStm)of theIAnalysiscaller.- Specified by:
applyin interfaceorg.intocps.maestro.ast.node.INode- Specified by:
applyin classorg.intocps.maestro.ast.node.Node- Parameters:
caller- theIAnalysisto which thisABasicBlockStmnode is applied- Throws:
org.intocps.maestro.ast.analysis.AnalysisException
-
apply
public <A> A apply(org.intocps.maestro.ast.analysis.intf.IAnswer<A> caller) throws org.intocps.maestro.ast.analysis.AnalysisExceptionCalls theIAnswer.caseABasicBlockStm(ABasicBlockStm)of theIAnswercaller.- Specified by:
applyin interfaceorg.intocps.maestro.ast.node.INode- Specified by:
applyin classorg.intocps.maestro.ast.node.Node- Parameters:
caller- theIAnswerto which thisABasicBlockStmnode is applied- Returns:
- the answer as returned from
caller - Throws:
org.intocps.maestro.ast.analysis.AnalysisException
-
apply
public <Q> void apply(org.intocps.maestro.ast.analysis.intf.IQuestion<Q> caller, Q question) throws org.intocps.maestro.ast.analysis.AnalysisExceptionCalls theIQuestion.caseABasicBlockStm(ABasicBlockStm, Object)of theIQuestioncaller.- Specified by:
applyin interfaceorg.intocps.maestro.ast.node.INode- Specified by:
applyin classorg.intocps.maestro.ast.node.Node- Parameters:
caller- theIQuestionto which thisABasicBlockStmnode is appliedquestion- the question provided tocaller- Throws:
org.intocps.maestro.ast.analysis.AnalysisException
-
apply
public <Q,A> A apply(org.intocps.maestro.ast.analysis.intf.IQuestionAnswer<Q,A> caller, Q question) throws org.intocps.maestro.ast.analysis.AnalysisExceptionCalls theIQuestionAnswer.caseABasicBlockStm(ABasicBlockStm, Object)of theIQuestionAnswercaller.- Specified by:
applyin interfaceorg.intocps.maestro.ast.node.INode- Specified by:
applyin classorg.intocps.maestro.ast.node.Node- Parameters:
caller- theIQuestionAnswerto which thisABasicBlockStmnode is appliedquestion- the question provided tocaller- Returns:
- the answer as returned from
answer - Throws:
org.intocps.maestro.ast.analysis.AnalysisException
-
-