// Copyright 2011 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package org.apache.tapestry5.services.javascript;

/**
 * A contribution to an extensible {@link JavaScriptStack}. Such a stack is created in terms of all the contributions.
 * 
 * @since 5.3
 * @see ExtensibleJavaScriptStack
 */
public class StackExtension
{
    /** The type of extension. */
    public final StackExtensionType type;

    /** The value contributed; will have symbols expanded, then be converted to the appropriate type. */
    public final String value;

    public StackExtension(StackExtensionType type, String value)
    {
        this.type = type;
        this.value = value;
    }

}

@@ -777,23 +777,8 @@
 .%0A *
- %0A * @since 5.3
 %0A * 
@@ -808,16 +808,30 @@
 ptStack%0A
+ * @since 5.3%0A
  */%0Apubl
@@ -859,24 +859,31 @@
 on%0A%7B%0A    /**
+%0A     *
  The type of
@@ -893,16 +893,21 @@
 tension.
+%0A    
  */%0A    
@@ -952,16 +952,23 @@
 %0A    /**
+%0A     *
  The val
@@ -1053,16 +1053,21 @@
 te type.
+%0A    
  */%0A    
@@ -1226,10 +1226,141 @@
 %0A    %7D%0A%0A
+    @Override%0A    public String toString()%0A    %7B%0A        return String.format(%22StackExtension%5B%25s %25s%5D%22, type.name(), value);%0A    %7D%0A%0A
 %7D%0A

Add a toString() to StackExtension