Class CompiledScript


  • @Deprecated
    public class CompiledScript
    extends java.lang.Object
    Deprecated.
    This class is not thread safe. Use CompiledBase instead and either pass image specific variables as parameters to your methods or look-up the image specific variables using the get() method of CompiledBase, but don't store any such variables as class level variables.
    Provides variables that are usually available as implicit objects in scripts Subclass this class to provide simple conversion of scripts to fast compiled scripts.
    Since:
    v5.2
    • Field Detail

      • generator

        public java.lang.String generator
        Deprecated.
      • generatorUrl

        public java.lang.String generatorUrl
        Deprecated.
      • internalVersion

        public java.lang.String internalVersion
        Deprecated.
      • styleFile

        public java.lang.String styleFile
        Deprecated.
      • skin

        public java.lang.String skin
        Deprecated.
      • style

        public java.lang.String style
        Deprecated.
      • maxImageWidth

        public int maxImageWidth
        Deprecated.
      • maxImageHeight

        public int maxImageHeight
        Deprecated.
      • maxThumbWidth

        public int maxThumbWidth
        Deprecated.
      • maxThumbHeight

        public int maxThumbHeight
        Deprecated.
      • rows

        public int rows
        Deprecated.
      • cols

        public int cols
        Deprecated.
      • application

        public java.util.Map application
        Deprecated.
      • album

        public java.util.Map album
        Deprecated.
      • engine

        public AlbumBean engine
        Deprecated.
      • programDirectory

        public java.io.File programDirectory
        Deprecated.
      • skinDirectory

        public java.io.File skinDirectory
        Deprecated.
      • resDirectory

        public java.io.File resDirectory
        Deprecated.
      • skinResDirectory

        public java.io.File skinResDirectory
        Deprecated.
      • rootImageDirectory

        public java.io.File rootImageDirectory
        Deprecated.
      • rootOutputDirectory

        public java.io.File rootOutputDirectory
        Deprecated.
      • fileVariables

        public java.util.Map fileVariables
        Deprecated.
      • currentDate

        public java.lang.String currentDate
        Deprecated.
      • totalAlbumImages

        public int totalAlbumImages
        Deprecated.
      • textEncoding

        public java.lang.String textEncoding
        Deprecated.
      • files

        public java.io.File[] files
        Deprecated.
      • currentObjects

        public AlbumObject[] currentObjects
        Deprecated.
      • currentObject

        public AlbumObject currentObject
        Deprecated.
      • category

        public Category category
        Deprecated.
      • currentFolder

        public AlbumObject currentFolder
        Deprecated.
      • rootFolder

        public AlbumObject rootFolder
        Deprecated.
      • currentFile

        public java.io.File currentFile
        Deprecated.
      • resPath

        public java.lang.String resPath
        Deprecated.
      • out

        public java.io.PrintWriter out
        Deprecated.
      • current

        public java.util.Map current
        Deprecated.
      • local

        public java.util.Map local
        Deprecated.
      • previous

        public java.util.Map previous
        Deprecated.
      • next

        public java.util.Map next
        Deprecated.
      • meta

        public java.util.Map meta
        Deprecated.
      • outputDirectory

        public java.io.File outputDirectory
        Deprecated.
      • imageDirectory

        public java.io.File imageDirectory
        Deprecated.
      • totalIndexes

        public int totalIndexes
        Deprecated.
      • indexNum

        public int indexNum
        Deprecated.
      • nextIndexPage

        public java.lang.String nextIndexPage
        Deprecated.
      • previousIndexPage

        public java.lang.String previousIndexPage
        Deprecated.
      • parentIndexPage

        public java.lang.String parentIndexPage
        Deprecated.
      • firstIndexPage

        public java.lang.String firstIndexPage
        Deprecated.
      • lastIndexPage

        public java.lang.String lastIndexPage
        Deprecated.
      • rootPath

        public java.lang.String rootPath
        Deprecated.
      • language

        public java.lang.String language
        Deprecated.
      • imageNum

        public int imageNum
        Deprecated.
      • totalImages

        public int totalImages
        Deprecated.
      • nextPage

        public java.lang.String nextPage
        Deprecated.
      • currentPage

        public java.lang.String currentPage
        Deprecated.
      • previousPage

        public java.lang.String previousPage
        Deprecated.
      • originalPath

        public java.lang.String originalPath
        Deprecated.
      • thumbPath

        public java.lang.String thumbPath
        Deprecated.
      • closeupPath

        public java.lang.String closeupPath
        Deprecated.
      • imagePath

        public java.lang.String imagePath
        Deprecated.
      • iconPath

        public java.lang.String iconPath
        Deprecated.
      • originalWidth

        public int originalWidth
        Deprecated.
      • originalHeight

        public int originalHeight
        Deprecated.
      • imageWidth

        public int imageWidth
        Deprecated.
      • imageHeight

        public int imageHeight
        Deprecated.
      • thumbWidth

        public int thumbWidth
        Deprecated.
      • thumbHeight

        public int thumbHeight
        Deprecated.
      • fileName

        public java.lang.String fileName
        Deprecated.
      • label

        public java.lang.String label
        Deprecated.
    • Constructor Detail

      • CompiledScript

        protected CompiledScript​(AlbumBean engine)
        Deprecated.
        Make subclass call this constructor
    • Method Detail

      • updateVars

        public void updateVars()
        Deprecated.
        Optional method to call in order to also update the variables that are specific to a certain context, for instance "out", "current", "meta" and "outputDirectory" For maximum performance, only call if needed.
        Throws:
        java.lang.RuntimeException
      • get

        public final java.lang.Object get​(java.lang.String variable)
        Deprecated.
        Get the value of a variable that is defined in scripting scope
        Parameters:
        variable -
        Returns: