Package org.mozilla.javascript.ast
Class AstNode.PositionComparator
- java.lang.Object
-
- org.mozilla.javascript.ast.AstNode.PositionComparator
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Comparator<AstNode>
- Enclosing class:
- AstNode
public static class AstNode.PositionComparator extends java.lang.Object implements java.util.Comparator<AstNode>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PositionComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(AstNode n1, AstNode n2)
Sorts nodes by (relative) start position.
-