Package org.eclipse.steady.java.sign
Class ASTSignature
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- ch.uzh.ifi.seal.changedistiller.treedifferencing.Node
-
- org.eclipse.steady.java.sign.ASTSignature
-
- All Implemented Interfaces:
Serializable,Cloneable,MutableTreeNode,TreeNode,Signature
- Direct Known Subclasses:
ASTConstructBodySignature
public abstract class ASTSignature extends ch.uzh.ifi.seal.changedistiller.treedifferencing.Node implements Signature
Abstract ASTSignature class.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Construct_constructprotected ch.uzh.ifi.seal.changedistiller.ast.java.JavaCompilationfCompilationprotected ch.uzh.ifi.seal.changedistiller.treedifferencing.NodefRootprotected static com.google.inject.InjectorsInjectorConstantsInjectorprotected static ch.uzh.ifi.seal.changedistiller.ast.java.JavaMethodBodyConvertersMethodBodyConverterConstantsMethodBodyConverter-
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
-
Constructor Summary
Constructors Constructor Description ASTSignature(ch.uzh.ifi.seal.changedistiller.model.classifiers.EntityType label, String value)Constructor for ASTSignature.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcreateRootNode(ch.uzh.ifi.seal.changedistiller.model.classifiers.EntityType label, String value)createRootNode.ch.uzh.ifi.seal.changedistiller.treedifferencing.NodegetFirstChild()getFirstChild.ch.uzh.ifi.seal.changedistiller.treedifferencing.NodegetFirstLeaf()getFirstLeaf.ch.uzh.ifi.seal.changedistiller.treedifferencing.NodegetLastChild()getLastChild.ch.uzh.ifi.seal.changedistiller.treedifferencing.NodegetRoot()getRoot.protected abstract StringgetSourceCodeWithSnippets(String... snippets)getSourceCodeWithSnippets.protected StringgetTreeString()Prints this Node and its children withvalue ['{' child [, child]* '}'].voidsetRoot(ch.uzh.ifi.seal.changedistiller.treedifferencing.Node n)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
-
-
-
-
Field Detail
-
sMethodBodyConverter
protected static ch.uzh.ifi.seal.changedistiller.ast.java.JavaMethodBodyConverter sMethodBodyConverter
ConstantsMethodBodyConverter
-
sInjector
protected static final com.google.inject.Injector sInjector
ConstantsInjector
-
fCompilation
protected ch.uzh.ifi.seal.changedistiller.ast.java.JavaCompilation fCompilation
-
fRoot
protected ch.uzh.ifi.seal.changedistiller.treedifferencing.Node fRoot
-
_construct
protected Construct _construct
-
-
Method Detail
-
getTreeString
protected String getTreeString()
Prints this Node and its children withvalue ['{' child [, child]* '}'].- Returns:
- a
Stringobject.
-
getFirstLeaf
public ch.uzh.ifi.seal.changedistiller.treedifferencing.Node getFirstLeaf()
getFirstLeaf.
- Overrides:
getFirstLeafin classDefaultMutableTreeNode- Returns:
- a
Nodeobject.
-
getFirstChild
public ch.uzh.ifi.seal.changedistiller.treedifferencing.Node getFirstChild()
getFirstChild.
- Overrides:
getFirstChildin classDefaultMutableTreeNode- Returns:
- a
Nodeobject.
-
getLastChild
public ch.uzh.ifi.seal.changedistiller.treedifferencing.Node getLastChild()
getLastChild.
- Overrides:
getLastChildin classDefaultMutableTreeNode- Returns:
- a
Nodeobject.
-
createRootNode
public void createRootNode(ch.uzh.ifi.seal.changedistiller.model.classifiers.EntityType label, String value)createRootNode.
- Parameters:
label- aEntityTypeobject.value- aStringobject.
-
getSourceCodeWithSnippets
protected abstract String getSourceCodeWithSnippets(String... snippets)
getSourceCodeWithSnippets.
-
getRoot
public ch.uzh.ifi.seal.changedistiller.treedifferencing.Node getRoot()
getRoot.
- Overrides:
getRootin classDefaultMutableTreeNode- Returns:
- a
Nodeobject.
-
setRoot
public void setRoot(ch.uzh.ifi.seal.changedistiller.treedifferencing.Node n)
setRoot.
- Parameters:
n- aNodeobject.
-
-