/external/apache-velocity-engine/velocity-engine-core/src/main/java/org/apache/velocity/app/event/ |
D | EventHandlerUtil.java | 54 public static Object referenceInsert(RuntimeServices rsvc, in referenceInsert() argument 59 value = rsvc.getApplicationEventCartridge().referenceInsert(context, reference, value); in referenceInsert() 63 contextCartridge.setRuntimeServices(rsvc); in referenceInsert() 74 …throw new VelocityException("Exception in event handler.",e, rsvc.getLogContext().getStackTrace()); in referenceInsert() 96 public static Object methodException(RuntimeServices rsvc, in methodException() argument 102 EventCartridge ev = rsvc.getApplicationEventCartridge(); in methodException() 110 contextCartridge.setRuntimeServices(rsvc); in methodException() 120 …throw new VelocityException("Exception in event handler.", ex, rsvc.getLogContext().getStackTrace(… in methodException() 147 public static String includeEvent(RuntimeServices rsvc, in includeEvent() argument 153 …includeResourcePath = rsvc.getApplicationEventCartridge().includeEvent(context, includeResourcePat… in includeEvent() [all …]
|
D | EventCartridge.java | 68 protected RuntimeServices rsvc = null; field in EventCartridge 72 return rsvc == null ? LoggerFactory.getLogger(EventCartridge.class) : rsvc.getLog(); in getLog() 83 if (rsvc == null) in setRuntimeServices() 85 rsvc = rs; in setRuntimeServices() 119 else if (rsvc != rs) in setRuntimeServices() 166 …if (found && rsvc != null && ev instanceof RuntimeServicesAware && !initializedHandlers.contains(e… in addEventHandler() 168 ((RuntimeServicesAware) ev).setRuntimeServices(rsvc); in addEventHandler()
|
/external/apache-velocity-engine/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/ |
D | ASTReference.java | 160 strictEscape = rsvc.getBoolean(RuntimeConstants.RUNTIME_REFERENCES_STRICT_ESCAPE, false); in init() 161 strictRef = rsvc.getBoolean(RuntimeConstants.RUNTIME_REFERENCES_STRICT, false); in init() 162 lookupAlternateLiteral = rsvc.getBoolean(RuntimeConstants.VM_ENABLE_BC_MODE, false); in init() 170 rootString = rsvc.useStringInterning() ? getRoot().intern() : getRoot(); in init() 216 rsvc.getBoolean(RuntimeConstants.RUNTIME_LOG_REFERENCE_LOG_INVALID, true); in init() 222 rsvc.getBoolean(RuntimeConstants.CHECK_EMPTY_OBJECTS, true); in init() 227 rsvc.getBoolean(RuntimeConstants.EVENTHANDLER_INVALIDREFERENCES_QUIET, false); in init() 229 rsvc.getBoolean(RuntimeConstants.EVENTHANDLER_INVALIDREFERENCES_NULL, false); in init() 231 rsvc.getBoolean(RuntimeConstants.EVENTHANDLER_INVALIDREFERENCES_TESTED, false); in init() 291 rsvc.getLogContext().pushLogContext(this, uberInfo); in execute() [all …]
|
D | ASTDirective.java | 117 …while (t != null && (pos = t.image.lastIndexOf(rsvc.getParserConfiguration().getHashChar())) == -1) in init() 144 e, rsvc.getLogContext().getStackTrace()); in init() 150 directive.init(rsvc, context, this); in init() 152 … else if( directiveName.startsWith(String.valueOf(rsvc.getParserConfiguration().getAtChar())) ) in init() 164 ((BlockMacro)directive).init( rsvc, directiveName, context, this ); in init() 170 rsvc.getLogContext().getStackTrace(), in init() 197 ((RuntimeMacro)directive).init( rsvc, directiveName, context, this ); in init() 207 rsvc.getLogContext().getStackTrace(), in init() 222 …if (morePrefix.length() == 0 && rsvc.getSpaceGobbling() == SpaceGobbling.STRUCTURED && isInitializ… in init() 287 SpaceGobbling spaceGobbling = rsvc.getSpaceGobbling(); in render() [all …]
|
D | ASTIdentifier.java | 114 … identifier = rsvc.useStringInterning() ? getFirstToken().image.intern() : getFirstToken().image; in init() 118 strictRef = rsvc.getBoolean(RuntimeConstants.RUNTIME_REFERENCES_STRICT, false); in init() 135 rsvc.getLogContext().pushLogContext(this, uberInfo); in execute() 166 vg = rsvc.getUberspect().getPropertyGet(o, identifier, uberInfo); in execute() 189 throw new VelocityException(msg, e, rsvc.getLogContext().getStackTrace()); in execute() 202 null, rsvc.getLogContext().getStackTrace(), identifier, in execute() 231 … return EventHandlerUtil.methodException(rsvc, context, o.getClass(), vg.getMethodName(), in execute() 246 …ite.getTargetException(), rsvc.getLogContext().getStackTrace(), vg.getMethodName(), getTemplateNam… in execute() 260 …ite.getTargetException(), rsvc.getLogContext().getStackTrace(), vg.getMethodName(), getTemplateNam… in execute() 282 throw new VelocityException(msg, e, rsvc.getLogContext().getStackTrace()); in execute() [all …]
|
D | ASTStringLiteral.java | 97 interpolate = rsvc.getBoolean( in init() 100 …&& ((getFirstToken().image.indexOf(rsvc.getParserConfiguration().getDollarChar()) != -1) || (getFi… in init() 101 .indexOf(rsvc.getParserConfiguration().getHashChar()) != -1)); in init() 152 nodeTree = rsvc.parse(br, template); in init() 158 …throw new TemplateInitException(msg, e, rsvc.getLogContext().getStackTrace(), template.getName(), … in init() 167 nodeTree.init(context, rsvc); in init() 341 throw new VelocityException(msg, e, rsvc.getLogContext().getStackTrace()); in value() 361 …return str != null && (!rsvc.getBoolean(RuntimeConstants.CHECK_EMPTY_OBJECTS, true) || !str.isEmpt… in evaluate()
|
D | ASTSetDirective.java | 119 …while (t != null && (pos = t.image.lastIndexOf(rsvc.getParserConfiguration().getHashChar())) == -1) in init() 135 strictRef = rsvc.getBoolean(RuntimeConstants.RUNTIME_REFERENCES_STRICT, false); in init() 143 if (rsvc.getSpaceGobbling() == SpaceGobbling.BC) in init() 222 rsvc.getLogContext().pushLogContext(this, uberInfo); in render() 224 SpaceGobbling spaceGobbling = rsvc.getSpaceGobbling(); in render() 251 … EventHandlerUtil.invalidSetMethod(rsvc, context, leftReference, rightReference, uberInfo); in render() 263 rsvc.getLogContext().popLogContext(); in render()
|
D | ASTMethod.java | 125 strictRef = rsvc.getBoolean(RuntimeConstants.RUNTIME_REFERENCES_STRICT, false); in init() 126 logOnInvalid = rsvc.getBoolean(RuntimeConstants.RUNTIME_LOG_METHOD_CALL_LOG_INVALID, true); in init() 148 rsvc.getLogContext().pushLogContext(this, uberInfo); in execute() 256 throw new VelocityException(msg, e, rsvc.getLogContext().getStackTrace()); in execute() 261 rsvc.getLogContext().popLogContext(); in execute() 293 …return EventHandlerUtil.methodException( rsvc, context, o.getClass(), methodName, (Exception) t, u… in handleInvocationException() 308 …e, rsvc.getLogContext().getStackTrace(), methodName, getTemplateName(), this.getLine(), this.getCo… in handleInvocationException() 326 …t, rsvc.getLogContext().getStackTrace(), methodName, getTemplateName(), this.getLine(), this.getCo… in handleInvocationException()
|
D | ASTComparisonNode.java | 101 if (rsvc.getBoolean(RuntimeConstants.RUNTIME_REFERENCES_STRICT, false)) in compareNull() 103 throw new VelocityException(msg, null, rsvc.getLogContext().getStackTrace()); in compareNull() 156 if (rsvc.getBoolean(RuntimeConstants.RUNTIME_REFERENCES_STRICT, false)) in compareNonNumber() 158 throw new VelocityException(msg, null, rsvc.getLogContext().getStackTrace()); in compareNonNumber()
|
/external/apache-velocity-engine/velocity-engine-core/src/main/java/org/apache/velocity/runtime/ |
D | VelocimacroFactory.java | 51 private final RuntimeServices rsvc; field in VelocimacroFactory 105 public VelocimacroFactory(final RuntimeServices rsvc) in VelocimacroFactory() argument 107 this.rsvc = rsvc; in VelocimacroFactory() 114 vmManager = new VelocimacroManager(rsvc); in VelocimacroFactory() 128 log = rsvc.getLog("macro"); in initVelocimacro() 148 Object libfiles = rsvc.getProperty(RuntimeConstants.VM_LIBRARY); in initVelocimacro() 155 if (rsvc.getLoaderNameForResource(RuntimeConstants.VM_LIBRARY_DEFAULT) != null) in initVelocimacro() 163 … if (rsvc.getLoaderNameForResource(RuntimeConstants.OLD_VM_LIBRARY_DEFAULT) != null) in initVelocimacro() 205 Template template = rsvc.getTemplate(lib); in initVelocimacro() 222 … throw new VelocityException(msg, e, rsvc.getLogContext().getStackTrace()); in initVelocimacro() [all …]
|
D | VelocimacroManager.java | 59 private RuntimeServices rsvc = null; field in VelocimacroManager 72 VelocimacroManager(RuntimeServices rsvc) in VelocimacroManager() argument 79 this.rsvc = rsvc; in VelocimacroManager() 105 … MacroEntry me = new MacroEntry(vmName, macroBody, macroArgs, definingTemplate.getName(), rsvc); in addVM() 315 RuntimeServices rsvc) in MacroEntry() argument 320 vp.init(rsvc); in MacroEntry()
|
D | ParserPoolImpl.java | 46 public void initialize(RuntimeServices rsvc) in initialize() argument 48 log = rsvc.getLog("parser"); in initialize() 49 max = rsvc.getInt(RuntimeConstants.PARSER_POOL_SIZE, RuntimeConstants.NUMBER_OF_PARSERS); in initialize() 54 pool.put(rsvc.createNewParser()); in initialize()
|
/external/apache-velocity-engine/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/ |
D | ResourceManagerImpl.java | 85 protected RuntimeServices rsvc = null; field in ResourceManagerImpl 106 rsvc = rs; in initialize() 107 log = rsvc.getLog("loader"); in initialize() 128 resourceLoader = ResourceLoaderFactory.getLoader(rsvc, loaderClass); in initialize() 136 throw new VelocityException(msg, null, rsvc.getLogContext().getStackTrace()); in initialize() 139 resourceLoader.commonInit(rsvc, configuration); in initialize() 148 logWhenFound = rsvc.getBoolean(RuntimeConstants.RESOURCE_MANAGER_LOGWHENFOUND, true); in initialize() 154 String cacheClassName = rsvc.getString(RuntimeConstants.RESOURCE_MANAGER_CACHE_CLASS); in initialize() 201 globalCache.initialize(rsvc); in initialize() 214 …Vector<String> resourceLoaderNames = rsvc.getConfiguration().getVector(RuntimeConstants.RESOURCE_L… in assembleResourceLoaderInitializers() [all …]
|
D | ResourceCacheImpl.java | 97 protected RuntimeServices rsvc = null; field in ResourceCacheImpl 107 rsvc = rs; in initialize() 110 rsvc.getInt(RuntimeConstants.RESOURCE_MANAGER_DEFAULTCACHE_SIZE, 89); in initialize() 119 … rsvc.getLog().debug("initialized ({}) with {} cache map.", this.getClass(), cache.getClass()); in initialize()
|
/external/apache-velocity-engine/velocity-engine-core/src/main/java/org/apache/velocity/runtime/directive/ |
D | Macro.java | 120 List<MacroArg> macroArgs = getArgArray(node, rsvc); in init() 122 rsvc.addVelocimacro(macroArgs.get(0).name, node.jjtGetChild(numArgs - 1), in init() 193 private static List<MacroArg> getArgArray(Node node, RuntimeServices rsvc) in getArgArray() argument 227 …if (i > 0 && macroArg.name.startsWith(String.valueOf(rsvc.getParserConfiguration().getDollarChar()… in getArgArray() 239 macroToString(msg, macroArgs, rsvc); in getArgArray() 240 rsvc.getLog("macro").debug(msg.toString()); in getArgArray() 276 …tringBuilder macroToString(final StringBuilder buf, List<MacroArg> macroArgs, RuntimeServices rsvc) in macroToString() argument 280 …ret.append(rsvc.getParserConfiguration().getHashChar()).append(macroArgs.get(0).name).append("( "); in macroToString() 283 ret.append(rsvc.getParserConfiguration().getDollarChar()).append(marg.name); in macroToString()
|
D | RuntimeMacro.java | 134 macroName = rsvc.useStringInterning() ? macroName.intern() : macroName; in init() 146 …if (t.image.startsWith(")") || t.image.startsWith(rsvc.getParserConfiguration().getHashChar() + "e… in init() 148 strictRef = rsvc.getBoolean(RuntimeConstants.RUNTIME_REFERENCES_STRICT, false); in init() 167 rsvc.getLogContext().getStackTrace(), in init() 187 SpaceGobbling spaceGobbling = rsvc.getSpaceGobbling(); in getLiteral() 202 … if (pos == -1) pos = t.image.lastIndexOf(rsvc.getParserConfiguration().getHashChar()); in getLiteral() 217 … if (pos == -1) pos = t.image.lastIndexOf(rsvc.getParserConfiguration().getHashChar()); in getLiteral() 288 Object o = rsvc.getVelocimacro(macroName, renderingTemplate, getTemplate()); in render() 307 o = rsvc.getVelocimacro(macroName, renderingTemplate, macroLibraries.get(i)); in render() 324 null, rsvc.getLogContext().getStackTrace(), in render() [all …]
|
D | Evaluate.java | 94 rsvc.getLogContext().getStackTrace(), in init() 108 rsvc.getLogContext().getStackTrace(), in init() 121 rsvc.getLogContext().getStackTrace(), in init() 176 nodeTree = rsvc.parse(new StringReader(sourceText), template); in render() 182 … throw new ParseErrorException( pex.getMessage(), info, rsvc.getLogContext().getStackTrace() ); in render() 198 nodeTree.init(context, rsvc); in render() 203 … throw new ParseErrorException( pex.getMessage(), info, rsvc.getLogContext().getStackTrace() ); in render() 226 … throw new ParseErrorException( pex.getMessage(), info, rsvc.getLogContext().getStackTrace() ); in render()
|
D | Foreach.java | 111 maxNbrLoops = rsvc.getInt(RuntimeConstants.MAX_NUMBER_LOOPS, in init() 118 rsvc.getBoolean(RuntimeConstants.SKIP_INVALID_ITERATOR, true); in init() 120 if (rsvc.getBoolean(RuntimeConstants.RUNTIME_REFERENCES_STRICT, false)) in init() 124 skipInvalidIterator = rsvc.getBoolean(RuntimeConstants.SKIP_INVALID_ITERATOR, false); in init() 183 i = rsvc.getUberspect().getIterator(iterable, uberInfo); in getIterator() 197 throw new VelocityException(msg, ee, rsvc.getLogContext().getStackTrace()); in getIterator() 204 + " and cannot be iterated by " + rsvc.getUberspect().getClass().getName(); in getIterator() 206 throw new VelocityException(msg, null, rsvc.getLogContext().getStackTrace()); in getIterator()
|
D | Parse.java | 120 this.maxDepth = rsvc.getInt(RuntimeConstants.PARSE_DIRECTIVE_MAXDEPTH, 10); in init() 122 strictRef = rsvc.getBoolean(RuntimeConstants.RUNTIME_REFERENCES_STRICT, false); in init() 150 StringUtils.formatFileString(this), null, rsvc.getLogContext().getStackTrace()); in render() 170 …String arg = EventHandlerUtil.includeEvent( rsvc, context, sourcearg, context.getCurrentTemplateNa… in render() 178 + StringUtils.formatFileString(this), null, rsvc.getLogContext().getStackTrace()); in render() 255 throw new VelocityException(msg, e, rsvc.getLogContext().getStackTrace()); in render() 310 throw new VelocityException(msg, e, rsvc.getLogContext().getStackTrace()); in render() 356 return rsvc.getTemplate(path, encoding); in getTemplate()
|
D | VelocimacroProxy.java | 153 rsvc = rs; in init() 156 strictArguments = rsvc.getBoolean( in init() 160 maxCallDepth = rsvc.getInt(RuntimeConstants.VM_MAX_DEPTH); in init() 163 bodyReference = rsvc.getString(RuntimeConstants.VM_BODY_REFERENCE, "bodyContent"); in init() 165 enableBCmode = rsvc.getBoolean(RuntimeConstants.VM_ENABLE_BC_MODE, false); in init() 228 throw new VelocityException(msg, e, rsvc.getLogContext().getStackTrace()); in render() 307 … + " at " + StringUtils.formatFileString(node), null, rsvc.getLogContext().getStackTrace()); in checkArgumentCount() 346 … throw new MacroOverflowException(out.toString(), null, rsvc.getLogContext().getStackTrace()); in checkDepth() 404 … + StringUtils.formatFileString(node), null, rsvc.getLogContext().getStackTrace()); in handleArgValues()
|
D | Include.java | 127 outputMsgStart = rsvc.getString(RuntimeConstants.ERRORMSG_START); in init() 130 outputMsgEnd = rsvc.getString(RuntimeConstants.ERRORMSG_END ); in init() 180 throw new VelocityException(msg, null, rsvc.getLogContext().getStackTrace()); in render() 228 …String arg = EventHandlerUtil.includeEvent( rsvc, context, sourcearg, context.getCurrentTemplateNa… in renderOutput() 269 throw new VelocityException(msg, e, rsvc.getLogContext().getStackTrace()); in renderOutput() 317 return rsvc.getContent(path, encoding); in getResource()
|
D | Directive.java | 58 protected RuntimeServices rsvc = null; field in Directive 160 rsvc = rs; in init() 161 log = rsvc.getLog("directive." + getName()); in init() 163 provideScope = rsvc.isScopeControlEnabled(getScopeName()); in init()
|
D | BlockMacro.java | 99 key = rsvc.getString(RuntimeConstants.VM_BODY_REFERENCE, "bodyContent"); in init() 102 maxDepth = rsvc.getInt(RuntimeConstants.VM_MAX_DEPTH); in init() 106 macro.init(rsvc, name, context, node); in init()
|
/external/apache-velocity-engine/velocity-engine-core/src/main/java/org/apache/velocity/ |
D | Template.java | 145 data = rsvc.parse( br, this); in process() 168 +getName(), e, rsvc.getLogContext().getStackTrace()); in process() 186 throw new VelocityException(e, rsvc.getLogContext().getStackTrace()); in process() 196 …rceNotFoundException("Unknown resource error for resource " + name, null, rsvc.getLogContext().get… in process() 230 ((SimpleNode)data).init( ica, rsvc); in initDocument() 232 provideScope = rsvc.isScopeControlEnabled(scopeName); in initDocument() 320 Template t = rsvc.getTemplate(macroLibrary); in merge() 337 rsvc.getLog("parser").error("syntax error in template {}: {}", in merge() 368 Logger renderingLog = rsvc.getLog("rendering"); in merge() 374 …ow new VelocityException("IO Error rendering template '" + name + "'", e, rsvc.getLogContext().get… in merge() [all …]
|
/external/apache-velocity-engine/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/ |
D | ResourceLoader.java | 68 protected RuntimeServices rsvc = null; field in ResourceLoader 81 this.rsvc = rs; in commonInit() 83 …log = rsvc.getLog("loader." + (loaderName == null ? this.getClass().getSimpleName() : loaderName)); in commonInit() 302 encoding = rsvc.getString(RuntimeConstants.INPUT_ENCODING); in buildReader()
|