| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.util.Collection<JNode>> |
JPatternDictionary.markupMap |
protected java.util.Map<JNode,java.lang.String> |
JPatternDictionary.nodeIdentifierMap |
protected java.util.Map<JNode,java.util.List<JNode>> |
JMerger.orderedSourceChildrenMap |
protected java.util.Map<JNode,java.util.List<JNode>> |
JMerger.orderedSourceChildrenMap |
protected java.util.Map<JNode,JNode> |
JMerger.sourceToTargetMap |
protected java.util.Map<JNode,JNode> |
JMerger.sourceToTargetMap |
protected java.util.Map<JNode,JNode> |
JMerger.targetToSourceMap |
protected java.util.Map<JNode,JNode> |
JMerger.targetToSourceMap |
| Modifier and Type | Method and Description |
|---|---|
protected JNode |
JMerger.convertTarget(JAbstractType targetAbstractType,
java.lang.Class<? extends JAbstractType> sourceClass)
Converts the target abstract type to be compatible with the given source node class
|
JNode |
JPatternDictionary.getNode(java.lang.String nodeIdentifier) |
protected JNode |
JMerger.insertClone(JNode sourceNode) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.util.Collection<JNode>> |
JPatternDictionary.getMarkupMap() |
java.util.Map<java.lang.String,? extends JNode> |
JPatternDictionary.getNodeMap(JNode node) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
JMerger.applyPullRules(JNode sourceNode,
JNode targetNode) |
protected void |
JMerger.applySortRules(JNode sourceNode) |
protected boolean |
JMerger.applySweepRules(JNode targetNode) |
protected boolean |
JMerger.areCompatible(JNode sourceNode,
JNode targetNode)
Checks if two nodes are compatible and can be merged.
|
protected boolean |
JMerger.PullTargetVisitor.basicVisit(JNode node) |
protected boolean |
JMerger.PushSourceVisitor.basicVisit(JNode node) |
protected void |
JPatternDictionary.beforeVisit(JNode node) |
protected java.lang.String |
JPatternDictionary.checkSelection(java.lang.String selection,
JControlModel.DictionaryPattern dictionaryPattern,
JNode node)
Checks the selection to fix the problem with facade implementations that assign
wrong javadoc to the node.
|
protected void |
JMerger.PullTargetVisitor.doPull(JNode source,
JNode target) |
protected boolean |
JMerger.PushSourceVisitor.doPush(JNode sourceNode)
Returns whether the children should be visited (i.e., when the source is not in the target).
|
protected java.lang.String |
JPatternDictionary.getDefaultNodeIdentifier(JNode node) |
java.lang.String |
JPatternDictionary.getNodeIdentifier(JNode node) |
java.util.Map<java.lang.String,? extends JNode> |
JPatternDictionary.getNodeMap(JNode node) |
protected JNode |
JMerger.insertClone(JNode sourceNode) |
boolean |
JPatternDictionary.isMarkedUp(java.util.regex.Pattern markupPattern,
JNode node) |
boolean |
JPatternDictionary.isMarkedUp(java.util.regex.Pattern markupPattern,
java.util.regex.Pattern parentMarkupPattern,
JNode node)
Determines if the node is marked up based on the node and parent markup.
|
protected boolean |
JMerger.isPushMarkedUp(JNode node)
Checks if the node is marked up for pushing.
|
protected void |
JMerger.map(JNode sourceNode,
JNode targetNode)
Maps the specified source and target nodes.
|
protected void |
JMerger.mapChildren(JNode sourceNode,
JNode targetNode) |
protected void |
JPatternDictionary.markupNode(java.lang.String selection,
JControlModel.DictionaryPattern dictionaryPattern,
JNode node)
Matches pattern in dictionary pattern against selection, and marks up node
with all matching groups.
|
protected void |
JPatternDictionary.markupNode(java.lang.String markup,
JNode node)
Marks up node with the given markup string.
|
protected void |
JMerger.PullTargetVisitor.visit(JNode target) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
JAbstractType
|
interface |
JAnnotation
Annotation as defined by JLS3 9.7.
|
interface |
JAnnotationType
Annotation type declaration as defined by JLS3 9.6.
|
interface |
JAnnotationTypeMember
Annotation type element in the following format (JLS3 9.6):
|
interface |
JCompilationUnit
Represents an entire Java compilation unit (
.java source file). |
interface |
JEnum
Enumeration declaration as described in JLS3 8.9.
|
interface |
JEnumConstant
Enum constant as described in JLS3 8.9.
|
interface |
JField
Represents a field declaration.
|
interface |
JImport
Represents an import declaration in Java compilation unit.
|
interface |
JInitializer
Represents an initializer.
|
interface |
JMember
An
JMember defines functionality common to nodes, which
can be members of types. |
interface |
JMethod
Represents a method declaration.
|
interface |
JPackage
Represents a package declaration.
|
interface |
JType
Represents a source type in a compilation unit, either as a top-level type or a member type.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractJNode |
| Modifier and Type | Field and Description |
|---|---|
protected JNode |
FacadeVisitor.rootNode |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.Object,JNode> |
FacadeHelper.objectToNodeMap |
| Modifier and Type | Method and Description |
|---|---|
<T extends JNode> |
FacadeHelper.getChildren(JNode node,
java.lang.Class<T> cls)
Returns a list with the children of the specified node that are instances of
the given class.
|
| Modifier and Type | Method and Description |
|---|---|
abstract JNode |
FacadeHelper.cloneNode(java.lang.Object context,
JNode node)
Clones the specified node, returning an object that is related to
the given context.
|
JNode |
FacadeHelper.convertToNode(java.lang.Object object) |
protected abstract JNode |
FacadeHelper.doConvertToNode(java.lang.Object object) |
JNode |
FacadeHelper.getFirstChild(JNode node)
Returns the first child of the specified node.
|
JNode |
FacadeHelper.getNext(JNode node)
Returns the sibling node immediately following the specified node.
|
JNode |
JNode.getParent()
Returns the parent of this node.
|
JNode |
FacadeHelper.getPrevious(JNode node)
Returns the sibling node immediately preceding the specified node.
|
protected JNode |
FacadeVisitor.getRootNode() |
protected JNode |
FacadeHelper.getSibiling(JNode node,
int pos)
Returns the sibling of the specified node that is located
in a specific position relative to the node.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<JNode> |
JNode.getChildren()
Returns the children of this node.
|
java.util.List<JNode> |
AbstractJNode.getChildren() |
protected java.util.Map<java.lang.Object,JNode> |
FacadeHelper.getObjectToNodeMap() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
FacadeHelper.addChild(JNode node,
JNode child)
Adds the given orphan node (document fragment) as the last child of the
specified node.
|
protected void |
FacadeVisitor.afterVisit(JNode node) |
protected void |
FacadeVisitor.afterVisitChildren(JNode node) |
protected boolean |
FacadeVisitor.basicVisit(JNode node) |
protected void |
FacadeVisitor.beforeVisit(JNode node) |
abstract JNode |
FacadeHelper.cloneNode(java.lang.Object context,
JNode node)
Clones the specified node, returning an object that is related to
the given context.
|
void |
FacadeHelper.commentOut(JNode node)
Comment out the node and its children.
|
protected boolean |
FacadeVisitor.dispatch(JNode node) |
void |
FacadeHelper.dispose(JNode node)
Disposes the node and its children.
|
protected void |
FacadeHelper.disposeNode(JNode node)
Disposes a single node.
|
<T extends JNode> |
FacadeHelper.getChildren(JNode node,
java.lang.Class<T> cls)
Returns a list with the children of the specified node that are instances of
the given class.
|
JCompilationUnit |
FacadeHelper.getCompilationUnit(JNode node)
Returns the compilation unit of the specified node.
|
abstract java.lang.Object |
FacadeHelper.getContext(JNode node)
Returns the context of a node.
|
JNode |
FacadeHelper.getFirstChild(JNode node)
Returns the first child of the specified node.
|
JNode |
FacadeHelper.getNext(JNode node)
Returns the sibling node immediately following the specified node.
|
JPackage |
FacadeHelper.getPackage(JNode node)
Returns the package of the specified node.
|
JNode |
FacadeHelper.getPrevious(JNode node)
Returns the sibling node immediately preceding the specified node.
|
protected JNode |
FacadeHelper.getSibiling(JNode node,
int pos)
Returns the sibling of the specified node that is located
in a specific position relative to the node.
|
boolean |
FacadeHelper.insertSibling(JNode node,
JNode newSibling,
boolean before)
Inserts the given orphan node as a sibling of the specified node, immediately
before or after it.
|
boolean |
FacadeHelper.isDisposed(JNode node)
Returns
true if a node is
disposed. |
boolean |
FacadeHelper.remove(JNode node)
Separates the specified node from its parent and siblings, maintaining any ties
that this node has to the underlying document fragment.
|
void |
FacadeVisitor.start(JNode node) |
protected void |
FacadeVisitor.visit(JNode node) |
protected void |
FacadeVisitor.visitChildren(JNode node) |
| Modifier and Type | Class and Description |
|---|---|
class |
ASTJAbstractType<T extends AbstractTypeDeclaration> |
class |
ASTJAnnotation
Wraps
Annotation object. |
class |
ASTJAnnotationType
Wraps
AnnotationTypeDeclaration object. |
class |
ASTJAnnotationTypeMember |
class |
ASTJCompilationUnit
Wraps
CompilationUnit object. |
class |
ASTJEnum |
class |
ASTJEnumConstant |
class |
ASTJField
Represents a single variable in a field declaration.
|
class |
ASTJImport
Wraps
ImportDeclaration object. |
class |
ASTJInitializer
Wraps
Initializer object. |
class |
ASTJMember<T extends BodyDeclaration>
Each
ASTJMember has a reference to BodyDeclaration as a wrapped object. |
class |
ASTJMethod
Wraps
MethodDeclaration object. |
class |
ASTJNode<T extends ASTNode>
Each subclass of
ASTJNode wraps subclass of ASTNode. |
class |
ASTJPackage
Wraps
PackageDeclaration object. |
class |
ASTJType
Wraps
TypeDeclaration object. |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<JNode> |
ASTNodeConverter.EnumToTypeConverter.enumChildren
List of children of the enum
|
protected java.util.List<JNode> |
ASTNodeConverter.TypeToEnumConverter.typeChildren
List of children of the type
|
| Modifier and Type | Method and Description |
|---|---|
abstract JNode |
ASTNodeConverter.Converter.convert() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<JNode> |
ASTJMember.getAnnotationList() |
java.util.List<JNode> |
ASTJMember.getChildren() |
java.util.List<JNode> |
ASTJEnum.getChildren() |
java.util.List<JNode> |
ASTJCompilationUnit.getChildren()
Returns the list of children in order: package declaration (
JPackage), imports (JImport), and types (JType). |
java.util.List<JNode> |
ASTJAbstractType.getChildren()
Returns the list of children.
|
protected java.util.List<JNode> |
ASTJEnum.getEnumConstants() |
protected java.util.List<JNode> |
ASTJAbstractType.getMembers() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ASTFacadeHelper.addChild(JNode node,
JNode child) |
ASTJNode<?> |
ASTFacadeHelper.cloneNode(java.lang.Object context,
JNode node)
Creates a copy of the node to be inserted in the tree that context node belongs to.
|
void |
ASTFacadeHelper.commentOut(JNode node) |
java.lang.Object |
ASTFacadeHelper.getContext(JNode node) |
boolean |
ASTFacadeHelper.insertSibling(JNode node,
JNode newSibling,
boolean before) |
protected void |
ASTNodeConverter.Converter.moveChildren(JNode source,
JNode target)
Removes children from the source node and adds them to the target node.
|
boolean |
ASTFacadeHelper.remove(JNode node)
Removes the given node.
|
protected void |
ASTNodeConverter.Converter.replaceNode(JNode existingNode,
JNode newNode)
Replaces existing node by new node.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JDOMJCompilationUnit |
class |
JDOMJField |
class |
JDOMJImport |
class |
JDOMJInitializer |
class |
JDOMJMember |
class |
JDOMJMethod |
class |
JDOMJNode |
class |
JDOMJPackage |
class |
JDOMJType |
| Modifier and Type | Method and Description |
|---|---|
JNode |
JDOMFacadeHelper.cloneNode(java.lang.Object context,
JNode node) |
protected JNode |
JDOMFacadeHelper.doConvertToNode(java.lang.Object object) |
JNode |
JDOMFacadeHelper.getFirstChild(JNode node) |
JNode |
JDOMFacadeHelper.getNext(JNode node) |
JNode |
JDOMJNode.getParent() |
JNode |
JDOMFacadeHelper.getPrevious(JNode node) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
JDOMFacadeHelper.addChild(JNode node,
JNode child) |
JNode |
JDOMFacadeHelper.cloneNode(java.lang.Object context,
JNode node) |
java.lang.Object |
JDOMFacadeHelper.getContext(JNode node) |
JNode |
JDOMFacadeHelper.getFirstChild(JNode node) |
static IDOMNode |
JDOMFacadeHelper.getIDOMNode(JNode node) |
JNode |
JDOMFacadeHelper.getNext(JNode node) |
JNode |
JDOMFacadeHelper.getPrevious(JNode node) |
boolean |
JDOMFacadeHelper.insertSibling(JNode node,
JNode sibiling,
boolean before) |
boolean |
JDOMFacadeHelper.remove(JNode node) |
Copyright © 2019. Licensed under the Eclipse Public License v2.0. All rights reserved.
Submit a bug or feature