Package org.eclipse.steady.java.sign
Class ASTConstructBodySignature
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- ch.uzh.ifi.seal.changedistiller.treedifferencing.Node
-
- org.eclipse.steady.java.sign.ASTSignature
-
- org.eclipse.steady.java.sign.ASTConstructBodySignature
-
- All Implemented Interfaces:
Serializable,Cloneable,MutableTreeNode,TreeNode,Signature
public class ASTConstructBodySignature extends ASTSignature
ASTConstructBodySignature class.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.steady.java.sign.ASTSignature
_construct, fCompilation, fRoot, sInjector, sMethodBodyConverter
-
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
-
Constructor Summary
Constructors Constructor Description ASTConstructBodySignature(ch.uzh.ifi.seal.changedistiller.model.classifiers.EntityType fLabel, String fValue)Constructor for ASTConstructBodySignature.ASTConstructBodySignature(Construct _construct)Constructor for ASTConstructBodySignature.ASTConstructBodySignature(ASTConstructBodySignature copy)Constructor for ASTConstructBodySignature.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ch.uzh.ifi.seal.changedistiller.treedifferencing.NodeconvertConstructBody(String methodName)convertConstructBody.protected StringgetSourceCodeWithSnippets(String... snippets)getSourceCodeWithSnippets.voidprepareCompilationFromFile(String _file)Returns the generatedJavaCompilationfrom the file identified by the given filename.voidprepareCompilationFromSource(String src)prepareCompilationFromSource.SignaturetoASTSignature(String json)Helper method for building a JSON element of a Node in the ASTStringtoJson()StringtoRTEDString()toRTEDString.-
Methods inherited from class org.eclipse.steady.java.sign.ASTSignature
createRootNode, getFirstChild, getFirstLeaf, getLastChild, getRoot, getTreeString, setRoot
-
Methods inherited from class ch.uzh.ifi.seal.changedistiller.treedifferencing.Node
addAssociatedNode, disableMatched, enableInOrder, enableMatched, enableOutOfOrder, getAssociatedNodes, getEntity, getLabel, getValue, isInOrder, isLeafDescendant, isMatched, print, setEntity, setLabel, setValue, toString
-
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getIndex, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
-
-
-
-
Constructor Detail
-
ASTConstructBodySignature
public ASTConstructBodySignature(Construct _construct)
Constructor for ASTConstructBodySignature.
- Parameters:
_construct- aConstructobject.
-
ASTConstructBodySignature
public ASTConstructBodySignature(ASTConstructBodySignature copy)
Constructor for ASTConstructBodySignature.
- Parameters:
copy- aASTConstructBodySignatureobject.
-
-
Method Detail
-
prepareCompilationFromFile
public void prepareCompilationFromFile(String _file)
Returns the generatedJavaCompilationfrom the file identified by the given filename.- Parameters:
_file- aStringobject.
-
prepareCompilationFromSource
public void prepareCompilationFromSource(String src)
prepareCompilationFromSource.
- Parameters:
src- aStringobject.
-
getSourceCodeWithSnippets
protected String getSourceCodeWithSnippets(String... snippets)
getSourceCodeWithSnippets.
- Specified by:
getSourceCodeWithSnippetsin classASTSignature- Parameters:
snippets- aStringobject.- Returns:
- a
Stringobject.
-
convertConstructBody
public ch.uzh.ifi.seal.changedistiller.treedifferencing.Node convertConstructBody(String methodName)
convertConstructBody.
- Parameters:
methodName- aStringobject.- Returns:
- a
Nodeobject.
-
toASTSignature
public Signature toASTSignature(String json)
Helper method for building a JSON element of a Node in the AST
-
toJson
public String toJson()
-
-