/** * * Copyright (c) 2014, the Railo Company Ltd. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see <http://www.gnu.org/licenses/>. * **/ package lucee.transformer.cfml; import lucee.runtime.config.Config; import lucee.transformer.Factory; import lucee.transformer.bytecode.Root; import lucee.transformer.cfml.evaluator.EvaluatorPool; import lucee.transformer.library.function.FunctionLib; import lucee.transformer.library.tag.TagLib; import lucee.transformer.library.tag.TagLibTag; import lucee.transformer.util.SourceCode; public abstract class Data { public final SourceCode srcCode; public final TransfomerSettings settings; public final TagLib[][] tlibs; public final FunctionLib[] flibs; public final Root root; public final TagLibTag[] scriptTags; public final EvaluatorPool ep; public final Factory factory; public final Config config; public Data(Factory factory,Root root,SourceCode cfml,EvaluatorPool ep,TransfomerSettings settings,TagLib[][] tlibs,FunctionLib[] flibs,TagLibTag[] scriptTags) { this.root = root; this.srcCode = cfml; this.settings = settings; this.tlibs = tlibs; this.flibs = flibs; this.scriptTags = scriptTags; this.ep = ep; this.factory = factory; this.config=factory.getConfig(); } }