1 package com
.metaweb
.util
.javascript
.DOM
;
3 import org
.mozilla
.javascript
.Context
;
4 import org
.mozilla
.javascript
.Function
;
5 import org
.mozilla
.javascript
.Scriptable
;
6 import org
.mozilla
.javascript
.ScriptableObject
;
7 import org
.w3c
.dom
.Comment
;
9 public class JSComment
extends JSCharacterData
{
11 private static final long serialVersionUID
= 3986856046009222637L;
13 public JSComment() { }
15 public JSComment(Comment comment
, Scriptable scope
) {
20 public static Scriptable
jsConstructor(Context cx
, Object
[] args
, Function ctorObj
, boolean inNewExpr
) {
21 Scriptable scope
= ScriptableObject
.getTopLevelScope(ctorObj
);
22 return new JSComment(((JSComment
)args
[1]).getWrapped(), (Scriptable
)args
[0]);
25 public String
getClassName() {
29 public Comment
getWrapped() {
30 return ((Comment
)_wrapped
);