private static boolean isLocalVariableOverriding(final IExpressionContext context, final String expression) { if (!(context instanceof IEngineContext)) { // We don't even have support for local variables! return false; } // NOTE this IEngineContext interface is internal and should not be used in users' code final IEngineContext engineContext = (IEngineContext) context; final int dotPos = expression.indexOf('.'); if (dotPos == -1) { return false; } // Once we extract the first part of the expression, we check whether it is a local variable... final String expressionFirstComponent = expression.substring(0, dotPos); return engineContext.isVariableLocal(expressionFirstComponent); }
private static boolean isLocalVariableOverriding(final IExpressionContext context, final String expression) { if (!(context instanceof IEngineContext)) { // We don't even have support for local variables! return false; } // NOTE this IEngineContext interface is internal and should not be used in users' code final IEngineContext engineContext = (IEngineContext) context; final int dotPos = expression.indexOf('.'); if (dotPos == -1) { return false; } // Once we extract the first part of the expression, we check whether it is a local variable... final String expressionFirstComponent = expression.substring(0, dotPos); return engineContext.isVariableLocal(expressionFirstComponent); }
private static boolean isLocalVariableOverriding(final IExpressionContext context, final String expression) { if (!(context instanceof IEngineContext)) { // We don't even have support for local variables! return false; } // NOTE this IEngineContext interface is internal and should not be used in users' code final IEngineContext engineContext = (IEngineContext) context; final int dotPos = expression.indexOf('.'); if (dotPos == -1) { return false; } // Once we extract the first part of the expression, we check whether it is a local variable... final String expressionFirstComponent = expression.substring(0, dotPos); return engineContext.isVariableLocal(expressionFirstComponent); }
private static boolean isLocalVariableOverriding(final IExpressionContext context, final String expression) { if (!(context instanceof IEngineContext)) { // We don't even have support for local variables! return false; } // NOTE this IEngineContext interface is internal and should not be used in users' code final IEngineContext engineContext = (IEngineContext) context; final int dotPos = expression.indexOf('.'); if (dotPos == -1) { return false; } // Once we extract the first part of the expression, we check whether it is a local variable... final String expressionFirstComponent = expression.substring(0, dotPos); return engineContext.isVariableLocal(expressionFirstComponent); }
private static boolean isLocalVariableOverriding(final IExpressionContext context, final String expression) { if (!(context instanceof IEngineContext)) { // We don't even have support for local variables! return false; } // NOTE this IEngineContext interface is internal and should not be used in users' code final IEngineContext engineContext = (IEngineContext) context; final int dotPos = expression.indexOf('.'); if (dotPos == -1) { return false; } // Once we extract the first part of the expression, we check whether it is a local variable... final String expressionFirstComponent = expression.substring(0, dotPos); return engineContext.isVariableLocal(expressionFirstComponent); }