Package org.apache.tapestry5.ioc.internal.util

Examples of org.apache.tapestry5.ioc.internal.util.LocationImpl


        if (cachedLocation != null && cachedLocation.getLine() != lineNumber)
            cachedLocation = null;

        if (cachedLocation == null)
            cachedLocation = new LocationImpl(resource, lineNumber);

        return cachedLocation;
    }
View Full Code Here


    @Test
    public void to_string()
    {
        Resource r = new ClasspathResource("foo/pages/MyPage.tml");
        Location l = new LocationImpl(r, 23);

        BlockImpl block = new BlockImpl(l, "test block");

        assertEquals(block.toString(), "Block[test block, at classpath:foo/pages/MyPage.tml, line 23]");
    }
View Full Code Here

            if (cachedLocation == null)
            {
                // lineOffset accounts for the extra line when a doctype is injected. The line number reported
                // from the XML parser inlcudes the phantom doctype line, the lineOffset is used to subtract one
                // to get the real line number.
                cachedLocation = new LocationImpl(resource, line + lineOffset);
            }

            return cachedLocation;
        }
View Full Code Here

            if (cachedLocation == null)
            {
                // lineOffset accounts for the extra line when a doctype is injected. The line number reported
                // from the XML parser inlcudes the phantom doctype line, the lineOffset is used to subtract one
                // to get the real line number.
                cachedLocation = new LocationImpl(resource, line + lineOffset);
            }

            return cachedLocation;
        }
View Full Code Here

        if (cachedLocation != null && cachedLocation.getLine() != lineNumber)
            cachedLocation = null;

        if (cachedLocation == null)
            cachedLocation = new LocationImpl(resource, lineNumber);

        return cachedLocation;
    }
View Full Code Here

    private Location getCurrentLocation()
    {
        if (locator == null) return null;

        return new LocationImpl(templateResource, locator.getLineNumber(), locator
                .getColumnNumber());
    }
View Full Code Here

    @Test
    public void to_string()
    {
        Resource r = new ClasspathResource("foo/pages/MyPage.tml");
        Location l = new LocationImpl(r, 23);

        BlockImpl block = new BlockImpl(l, "test block");

        assertEquals(block.toString(), "Block[test block, at classpath:foo/pages/MyPage.tml, line 23]");
    }
View Full Code Here

            if (cachedLocation == null)
            {
                // lineOffset accounts for the extra line when a doctype is injected. The line number reported
                // from the XML parser inlcudes the phantom doctype line, the lineOffset is used to subtract one
                // to get the real line number.
                cachedLocation = new LocationImpl(resource, line + lineOffset);
            }

            return cachedLocation;
        }
View Full Code Here

    private Location getCurrentLocation()
    {
        if (locator == null) return null;

        return new LocationImpl(templateResource, locator.getLineNumber(), locator
                .getColumnNumber());
    }
View Full Code Here

    @Primary
    private StackTraceElementAnalyzer frameAnalyzer;

    void setupRender()
    {
        ExceptionAnalysis analysis = analyzer.analyze(exception);

        stack = analysis.getExceptionInfos();

        toggleId = renderSupport.allocateClientId("toggleStack");
    }
View Full Code Here

TOP

Related Classes of org.apache.tapestry5.ioc.internal.util.LocationImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.