Skip navigation links
A B C E F G H I J M N O P R S T U W 

A

AbstractRuntimeObjectModel - Class in org.apache.sling.scripting.sightly.render
Default abstract implementation of RuntimeObjectModel.
AbstractRuntimeObjectModel() - Constructor for class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
 
addSubTemplate(String, RenderUnit) - Method in class org.apache.sling.scripting.sightly.java.compiler.RenderUnit
 
allowImport(String) - Method in interface org.apache.sling.scripting.sightly.java.compiler.JavaImportsAnalyzer
Analyses the provided importedClass and decides if this class should be an explicit import or not in the generated HTL Java class.

B

build(ClassInfo) - Method in class org.apache.sling.scripting.sightly.java.compiler.GlobalShadowCheckBackendCompiler
 
build(ClassInfo) - Method in class org.apache.sling.scripting.sightly.java.compiler.JavaClassBackendCompiler
Provided the class information, this method will build the source code for the generated Java class.

C

call(RenderContext, Object...) - Method in interface org.apache.sling.scripting.sightly.extension.RuntimeExtension
Call the RuntimeExtension
call(String, Object...) - Method in interface org.apache.sling.scripting.sightly.render.RenderContext
Call one of the registered RuntimeExtensions.
callUnit(PrintWriter, RenderContext, Object, Object) - Method in class org.apache.sling.scripting.sightly.java.compiler.RenderUnit
 
ClassInfo - Interface in org.apache.sling.scripting.sightly.java.compiler
This interface provides information about classes that will be generated by the JavaClassBackendCompiler.
collectionToString(Collection<?>) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
Deprecated.
see ObjectModel.collectionToString(Collection)
CompilationOutput - Interface in org.apache.sling.scripting.sightly.java.compiler
The CompilationOutput encapsulates the result of a compile operation as processed by the JavaClassBackendCompiler.

E

extractMethodInheritanceChain(Class, Method) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
Deprecated.
see ObjectModel.findBeanMethod(Class, String) (Class, Method)}

F

failure() - Static method in class org.apache.sling.scripting.sightly.use.ProviderOutcome
Create a failed outcome without a specific cause.
failure(Throwable) - Static method in class org.apache.sling.scripting.sightly.use.ProviderOutcome
Create a failed outcome with the given cause.
findMethod(Class<?>, String) - Static method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
Deprecated.
see ObjectModel.findBeanMethod(Class, String)
FluentMap() - Constructor for class org.apache.sling.scripting.sightly.java.compiler.RenderUnit.FluentMap
 
fromIterator(Iterator<Object>) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
Deprecated.
see ObjectModel.fromIterator(Iterator)

G

getBindings() - Method in interface org.apache.sling.scripting.sightly.render.RenderContext
Returns the map of script bindings available to HTL scripts.
getCause() - Method in class org.apache.sling.scripting.sightly.use.ProviderOutcome
Returns the cause for this failure outcome or null if this outcome is a success or no cause has been defined with the ProviderOutcome.failure(Throwable) method.
getClassMethod(Class<?>, Method) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
Deprecated.
see ObjectModel.findBeanMethod(Class, String) (Class, Method)}
getField(Object, String) - Static method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
Deprecated.
see ObjectModel.getField(Object, String)
getFullyQualifiedClassName() - Method in interface org.apache.sling.scripting.sightly.java.compiler.ClassInfo
Returns the fully qualified class name.
getIndex(Object, int) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
Deprecated.
see ObjectModel.getIndex(Object, int)
getIndexSafe(List, int) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
Deprecated.
see ObjectModel.getIndex(Object, int)
getMainBody() - Method in interface org.apache.sling.scripting.sightly.java.compiler.CompilationOutput
Provides the generated class' main body section.
getMapProperty(Map, String) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
Deprecated.
getObjectModel() - Method in interface org.apache.sling.scripting.sightly.render.RenderContext
Provides the RuntimeObjectModel that will be used for resolving objects' properties or type conversion / coercion.
getObjectNoArgMethod(Object, String) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
Deprecated.
see ObjectModel.invokeBeanMethod(Object, String)
getObjectProperty(Object, String) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
Deprecated.
see ObjectModel.resolveProperty(Object, Object)
getPackageName() - Method in interface org.apache.sling.scripting.sightly.java.compiler.ClassInfo
Returns the class' package name.
getProperty(String) - Method in class org.apache.sling.scripting.sightly.java.compiler.RenderUnit
 
getProperty(String) - Method in interface org.apache.sling.scripting.sightly.Record
Gets the value of a specified property.
getProperty(Object, Object) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
 
getPropertyNames() - Method in class org.apache.sling.scripting.sightly.java.compiler.RenderUnit
 
getPropertyNames() - Method in interface org.apache.sling.scripting.sightly.Record
Gets the set of names for this record's properties.
getResult() - Method in class org.apache.sling.scripting.sightly.use.ProviderOutcome
Get the result in this outcome.
getSimpleClassName() - Method in interface org.apache.sling.scripting.sightly.java.compiler.ClassInfo
Returns the class simple name.
getSubTemplates() - Method in interface org.apache.sling.scripting.sightly.java.compiler.CompilationOutput
Provides the sub-templates (data-sly-template) code sections.
GlobalShadowCheckBackendCompiler - Class in org.apache.sling.scripting.sightly.java.compiler
Wrapping BackendCompiler that checks for global bindings shadowing.
GlobalShadowCheckBackendCompiler(BackendCompiler, Set<String>) - Constructor for class org.apache.sling.scripting.sightly.java.compiler.GlobalShadowCheckBackendCompiler
 

H

handle(CommandStream) - Method in class org.apache.sling.scripting.sightly.java.compiler.GlobalShadowCheckBackendCompiler
 
handle(CommandStream) - Method in class org.apache.sling.scripting.sightly.java.compiler.JavaClassBackendCompiler
 

I

init(Bindings) - Method in interface org.apache.sling.scripting.sightly.pojo.Use
Called to initialize the Java object with the current Java Scripting API bindings.
isCollection(Object) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
 
isCollection(Object) - Method in interface org.apache.sling.scripting.sightly.render.RuntimeObjectModel
Checks if an object is a Collection or is backed by one.
isDate(Object) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
 
isDate(Object) - Method in interface org.apache.sling.scripting.sightly.render.RuntimeObjectModel
Checks if the provided object represents a date or calendar.
isFailure() - Method in class org.apache.sling.scripting.sightly.use.ProviderOutcome
Check whether the outcome is a failure
isJavaKeyword(String) - Static method in class org.apache.sling.scripting.sightly.java.compiler.JavaEscapeUtils
Test whether the argument is a Java keyword.
isMethodAllowed(Method) - Static method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
Deprecated.
see ObjectModel.isMethodAllowed(Method)
isNumber(Object) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
 
isNumber(Object) - Method in interface org.apache.sling.scripting.sightly.render.RuntimeObjectModel
Checks if the provided object represents a number or not.
isPrimitive(Object) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
 
isPrimitive(Object) - Method in interface org.apache.sling.scripting.sightly.render.RuntimeObjectModel
Checks if the provided object represents a primitive data type or not.
isSuccess() - Method in class org.apache.sling.scripting.sightly.use.ProviderOutcome
Check if the outcome has been successful

J

JavaClassBackendCompiler - Class in org.apache.sling.scripting.sightly.java.compiler
BackendCompiler that generates a Java class.
JavaClassBackendCompiler() - Constructor for class org.apache.sling.scripting.sightly.java.compiler.JavaClassBackendCompiler
 
JavaClassBackendCompiler(JavaImportsAnalyzer) - Constructor for class org.apache.sling.scripting.sightly.java.compiler.JavaClassBackendCompiler
 
JavaEscapeUtils - Class in org.apache.sling.scripting.sightly.java.compiler
The JavaEscapeUtils provides useful methods for escaping or transforming invalid Java tokens to valid ones that could be used in generated Java source code.
JavaEscapeUtils() - Constructor for class org.apache.sling.scripting.sightly.java.compiler.JavaEscapeUtils
 
JavaImportsAnalyzer - Interface in org.apache.sling.scripting.sightly.java.compiler
The JavaImportsAnalyzer allows checking imports in generated HTL Java classes, in order to optimise dependencies.

M

makeJavaIdentifier(String) - Static method in class org.apache.sling.scripting.sightly.java.compiler.JavaEscapeUtils
Converts the given identifier to a legal Java identifier
makeJavaPackage(String) - Static method in class org.apache.sling.scripting.sightly.java.compiler.JavaEscapeUtils
Converts the given scriptName to a Java package or fully-qualified class name
mangleChar(char) - Static method in class org.apache.sling.scripting.sightly.java.compiler.JavaEscapeUtils
Mangle the specified character to create a legal Java class name.

N

NAME - Static variable in interface org.apache.sling.scripting.sightly.extension.RuntimeExtension
For OSGi environments this is the name of the service registration property indicating the RuntimeExtension name.
notNullOrFailure(Object) - Static method in class org.apache.sling.scripting.sightly.use.ProviderOutcome
If the given obj is not null return a successful outcome, with the given result.

O

obj() - Method in class org.apache.sling.scripting.sightly.java.compiler.RenderUnit
 
objectToString(Object) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
Deprecated.
see ObjectModel.toString(Object)
obtainCollection(Object) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
Deprecated.
see ObjectModel.toCollection(Object)
org.apache.sling.scripting.sightly - package org.apache.sling.scripting.sightly
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
org.apache.sling.scripting.sightly.extension - package org.apache.sling.scripting.sightly.extension
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
org.apache.sling.scripting.sightly.java.compiler - package org.apache.sling.scripting.sightly.java.compiler
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
org.apache.sling.scripting.sightly.pojo - package org.apache.sling.scripting.sightly.pojo
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
org.apache.sling.scripting.sightly.render - package org.apache.sling.scripting.sightly.render
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
org.apache.sling.scripting.sightly.use - package org.apache.sling.scripting.sightly.use
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.

P

PRIMITIVE_CLASSES - Static variable in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
A Set that stores all the supported primitive classes.
provide(String, RenderContext, Bindings) - Method in interface org.apache.sling.scripting.sightly.use.UseProvider
Provide an instance based on the given identifier
ProviderOutcome - Class in org.apache.sling.scripting.sightly.use
Result returned by a UseProvider.

R

Record<T> - Interface in org.apache.sling.scripting.sightly
A Record is a key-value immutable object understood by the HTL runtime, used for abstracting complex objects like Sightly templates (declared with the data-sly-template block element) or objects that need to be translated from Java to JavaScript and back.
render(PrintWriter, RenderContext, Bindings) - Method in class org.apache.sling.scripting.sightly.java.compiler.RenderUnit
Render the main script template
render(PrintWriter, Bindings, Bindings, RenderContext) - Method in class org.apache.sling.scripting.sightly.java.compiler.RenderUnit
 
RenderContext - Interface in org.apache.sling.scripting.sightly.render
The RenderContext defines the context for executing HTL scripts.
RenderUnit - Class in org.apache.sling.scripting.sightly.java.compiler
Basic unit of rendering.
RenderUnit() - Constructor for class org.apache.sling.scripting.sightly.java.compiler.RenderUnit
 
RenderUnit.FluentMap - Class in org.apache.sling.scripting.sightly.java.compiler
 
resolveProperty(Object, Object) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
 
resolveProperty(Object, Object) - Method in interface org.apache.sling.scripting.sightly.render.RuntimeObjectModel
Resolve a property of a target object and return its value.
RuntimeExtension - Interface in org.apache.sling.scripting.sightly.extension
A RuntimeExtension represents a HTL runtime construct that provides some processing capabilities for the various data-sly-* block elements.
RuntimeObjectModel - Interface in org.apache.sling.scripting.sightly.render
The RuntimeObjectModel provides various utility object inspection & conversion methods that can be applied to runtime objects when executing HTL scripts.

S

SightlyException - Exception in org.apache.sling.scripting.sightly
Exceptions caused by the HTL engine.
SightlyException() - Constructor for exception org.apache.sling.scripting.sightly.SightlyException
 
SightlyException(String) - Constructor for exception org.apache.sling.scripting.sightly.SightlyException
 
SightlyException(String, Throwable) - Constructor for exception org.apache.sling.scripting.sightly.SightlyException
 
SightlyException(Throwable) - Constructor for exception org.apache.sling.scripting.sightly.SightlyException
 
SightlyJavaCompilerException - Exception in org.apache.sling.scripting.sightly.java.compiler
 
SightlyJavaCompilerException() - Constructor for exception org.apache.sling.scripting.sightly.java.compiler.SightlyJavaCompilerException
 
SightlyJavaCompilerException(String) - Constructor for exception org.apache.sling.scripting.sightly.java.compiler.SightlyJavaCompilerException
 
SightlyJavaCompilerException(String, Throwable) - Constructor for exception org.apache.sling.scripting.sightly.java.compiler.SightlyJavaCompilerException
 
SightlyJavaCompilerException(Throwable) - Constructor for exception org.apache.sling.scripting.sightly.java.compiler.SightlyJavaCompilerException
 
SightlyJavaCompilerException(String, Throwable, boolean, boolean) - Constructor for exception org.apache.sling.scripting.sightly.java.compiler.SightlyJavaCompilerException
 
success(Object) - Static method in class org.apache.sling.scripting.sightly.use.ProviderOutcome
Create a successful outcome

T

TO_STRING_METHOD - Static variable in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
 
toBoolean(Object) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
 
toBoolean(Object) - Method in interface org.apache.sling.scripting.sightly.render.RuntimeObjectModel
Convert the given object to a boolean value
toBooleanInternal(Object) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
Deprecated.
see ObjectModel.toBoolean(Object)
toCollection(Object) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
 
toCollection(Object) - Method in interface org.apache.sling.scripting.sightly.render.RuntimeObjectModel
Force the conversion of the object to a collection
toDate(Object) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
 
toDate(Object) - Method in interface org.apache.sling.scripting.sightly.render.RuntimeObjectModel
Convert the given object to a Date object
toMap(Object) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
 
toMap(Object) - Method in interface org.apache.sling.scripting.sightly.render.RuntimeObjectModel
Force the conversion of the target object to a map
toNumber(Object) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
 
toNumber(Object) - Method in interface org.apache.sling.scripting.sightly.render.RuntimeObjectModel
Coerce the object to a numeric value
toString(Object) - Method in class org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel
 
toString(Object) - Method in interface org.apache.sling.scripting.sightly.render.RuntimeObjectModel
Convert the given object to a string.

U

unmangle(String) - Static method in class org.apache.sling.scripting.sightly.java.compiler.JavaEscapeUtils
Provided a mangled string (obtained by calling JavaEscapeUtils.mangleChar(char)) it will will return the character that was mangled.
Use - Interface in org.apache.sling.scripting.sightly.pojo
The Use interface can be implemented by Java objects which are instantiated as part of processing data-sly-use attributes.
UseProvider - Interface in org.apache.sling.scripting.sightly.use
A UseProvider instantiates objects for the Use-API.

W

with(String, Object) - Method in class org.apache.sling.scripting.sightly.java.compiler.RenderUnit.FluentMap
Fluent variant of put.
A B C E F G H I J M N O P R S T U W 
Skip navigation links

Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.