Package org.intocps.maestro.ast
Class ANotUnaryExp
java.lang.Object
org.intocps.maestro.ast.node.Node
org.intocps.maestro.ast.node.PExpBase
org.intocps.maestro.ast.node.SUnaryExpBase
org.intocps.maestro.ast.ANotUnaryExp
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<org.intocps.maestro.ast.node.INode>,org.intocps.maestro.ast.node.INode,org.intocps.maestro.ast.node.PExp,org.intocps.maestro.ast.node.SUnaryExp
public class ANotUnaryExp
extends org.intocps.maestro.ast.node.SUnaryExpBase
Generated file by AST Creator
- Author:
- Kenneth Lausdahl
- See Also:
-
Field Summary
Fields inherited from class org.intocps.maestro.ast.node.SUnaryExpBase
_expFields inherited from class org.intocps.maestro.ast.node.Node
_visitedNodes -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new default constructorANotUnaryExpnode with no children.ANotUnaryExp(org.intocps.maestro.ast.node.PExp exp_) Deprecated.This method should not be used, use AstFactory instead. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.intocps.maestro.ast.analysis.intf.IAnalysis caller) Calls theIAnalysis.caseANotUnaryExp(ANotUnaryExp)of theIAnalysiscaller.<A> Aapply(org.intocps.maestro.ast.analysis.intf.IAnswer<A> caller) Calls theIAnswer.caseANotUnaryExp(ANotUnaryExp)of theIAnswercaller.<Q> voidapply(org.intocps.maestro.ast.analysis.intf.IQuestion<Q> caller, Q question) Calls theIQuestion.caseANotUnaryExp(ANotUnaryExp, Object)of theIQuestioncaller.<Q,A> A apply(org.intocps.maestro.ast.analysis.intf.IQuestionAnswer<Q, A> caller, Q question) Calls theIQuestionAnswer.caseANotUnaryExp(ANotUnaryExp, Object)of theIQuestionAnswercaller.clone()Returns a deep clone of thisANotUnaryExpnode.Creates a deep clone of thisANotUnaryExpnode 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 valueinthashCode()Forwarding hashCode call toObject.hashCode().voidremoveChild(org.intocps.maestro.ast.node.INode child) toString()Methods inherited from class org.intocps.maestro.ast.node.SUnaryExpBase
getExp, setExpMethods inherited from class org.intocps.maestro.ast.node.Node
cloneList, cloneList, cloneListExternal, cloneListExternal, cloneListList, cloneListList, cloneNode, cloneNode, compareTo, getAllFields, getAncestor, parent, parent, replaceChildMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.intocps.maestro.ast.node.INode
getAncestor, parent, parent, replaceChild
-
Constructor Details
-
ANotUnaryExp
public ANotUnaryExp(org.intocps.maestro.ast.node.PExp exp_) Deprecated.This method should not be used, use AstFactory instead. The basic child nodes are removed from their previous parents.Creates a new complete constructorANotUnaryExpnode with the given nodes as children. -
ANotUnaryExp
public ANotUnaryExp()Creates a new default constructorANotUnaryExpnode with no children.
-
-
Method Details
-
removeChild
public void removeChild(org.intocps.maestro.ast.node.INode child) Removes theINodechildas a child of thisANotUnaryExpnode. 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.PExp- Specified by:
removeChildin interfaceorg.intocps.maestro.ast.node.SUnaryExp- Overrides:
removeChildin classorg.intocps.maestro.ast.node.SUnaryExpBase- Parameters:
child- the child node to be removed from thisANotUnaryExpnode- Throws:
RuntimeException- ifchildis not a child of thisANotUnaryExpnode
-
equals
Essentially this.toString().equals(o.toString()).- Specified by:
equalsin interfaceorg.intocps.maestro.ast.node.PExp- Specified by:
equalsin interfaceorg.intocps.maestro.ast.node.SUnaryExp- Overrides:
equalsin classorg.intocps.maestro.ast.node.SUnaryExpBase
-
toString
- Specified by:
toStringin interfaceorg.intocps.maestro.ast.node.PExp- Specified by:
toStringin interfaceorg.intocps.maestro.ast.node.SUnaryExp- Overrides:
toStringin classorg.intocps.maestro.ast.node.SUnaryExpBase
-
clone
public ANotUnaryExp clone(Map<org.intocps.maestro.ast.node.INode, org.intocps.maestro.ast.node.INode> oldToNewMap) Creates a deep clone of thisANotUnaryExpnode 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.PExp- Specified by:
clonein interfaceorg.intocps.maestro.ast.node.SUnaryExp- Specified by:
clonein classorg.intocps.maestro.ast.node.SUnaryExpBase- Parameters:
oldToNewMap- the map filled with the old node-new node relation- Returns:
- a deep clone of this
ANotUnaryExpnode
-
hashCode
public int hashCode()Forwarding hashCode call toObject.hashCode().- Specified by:
hashCodein interfaceorg.intocps.maestro.ast.node.PExp- Specified by:
hashCodein interfaceorg.intocps.maestro.ast.node.SUnaryExp- Overrides:
hashCodein classorg.intocps.maestro.ast.node.SUnaryExpBase
-
clone
Returns a deep clone of thisANotUnaryExpnode.- Specified by:
clonein interfaceorg.intocps.maestro.ast.node.INode- Specified by:
clonein interfaceorg.intocps.maestro.ast.node.PExp- Specified by:
clonein interfaceorg.intocps.maestro.ast.node.SUnaryExp- Specified by:
clonein classorg.intocps.maestro.ast.node.SUnaryExpBase- Returns:
- a deep clone of this
ANotUnaryExpnode
-
getChildren
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.PExp- Specified by:
getChildrenin interfaceorg.intocps.maestro.ast.node.SUnaryExp- Overrides:
getChildrenin classorg.intocps.maestro.ast.node.SUnaryExpBase- Parameters:
includeInheritedFields- if true all inherited fields are included- Returns:
- a a map of names to values of all fields
-
apply
public void apply(org.intocps.maestro.ast.analysis.intf.IAnalysis caller) throws org.intocps.maestro.ast.analysis.AnalysisException Calls theIAnalysis.caseANotUnaryExp(ANotUnaryExp)of theIAnalysiscaller.- Specified by:
applyin interfaceorg.intocps.maestro.ast.node.INode- Specified by:
applyin classorg.intocps.maestro.ast.node.Node- Parameters:
caller- theIAnalysisto which thisANotUnaryExpnode 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.AnalysisException Calls theIAnswer.caseANotUnaryExp(ANotUnaryExp)of theIAnswercaller.- Specified by:
applyin interfaceorg.intocps.maestro.ast.node.INode- Specified by:
applyin classorg.intocps.maestro.ast.node.Node- Parameters:
caller- theIAnswerto which thisANotUnaryExpnode 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.AnalysisException Calls theIQuestion.caseANotUnaryExp(ANotUnaryExp, 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 thisANotUnaryExpnode 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.caseANotUnaryExp(ANotUnaryExp, 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 thisANotUnaryExpnode is appliedquestion- the question provided tocaller- Returns:
- the answer as returned from
answer - Throws:
org.intocps.maestro.ast.analysis.AnalysisException
-