Tabnine Logo
EcmaError.columnNumber
Code IndexAdd Tabnine to your IDE (free)

How to use
columnNumber
method
in
org.mozilla.javascript.EcmaError

Best Java code snippets using org.mozilla.javascript.EcmaError.columnNumber (Showing top 8 results out of 315)

origin: com.github.tntim96/rhino

/**
 * @deprecated
 * Use {@link RhinoException#columnNumber()} from the super class.
 */
public int getColumnNumber() {
  return columnNumber();
}
origin: ro.isdc.wro4j/rhino

/**
 * @deprecated
 * Use {@link RhinoException#columnNumber()} from the super class.
 */
public int getColumnNumber() {
  return columnNumber();
}
origin: rhino/js

/**
 * @deprecated
 * Use {@link RhinoException#columnNumber()} from the super class.
 */
public int getColumnNumber() {
  return columnNumber();
}
origin: io.apigee/rhino

/**
 * @deprecated
 * Use {@link RhinoException#columnNumber()} from the super class.
 */
public int getColumnNumber() {
  return columnNumber();
}
origin: com.sun.phobos/phobos-rhino

/**
 * @deprecated
 * Use {@link RhinoException#columnNumber()} from the super class.
 */
public int getColumnNumber() {
  return columnNumber();
}
origin: geogebra/geogebra

/**
 * @deprecated
 * Use {@link RhinoException#columnNumber()} from the super class.
 */
@Deprecated
public int getColumnNumber() {
  return columnNumber();
}
origin: org.apache.cocoon/cocoon-flowscript-impl

  public Location getLocation(Object obj, String description) {
    if (obj instanceof EcmaError) {
      EcmaError ex = (EcmaError)obj;
      if (ex.sourceName() != null) {
        return new LocationImpl(ex.getName(), ex.sourceName(), ex.lineNumber(), ex.columnNumber());
      } else {
        return Location.UNKNOWN;
      }

    } else if (obj instanceof JavaScriptException) {
      JavaScriptException ex = (JavaScriptException)obj;
      if (ex.sourceName() != null) {
        return new LocationImpl(description, ex.sourceName(), ex.lineNumber(), -1);
      } else {
        return Location.UNKNOWN;
      }
    }
    
    return null;
  } 
};
origin: org.geoserver.script/gs-script-js

@Override
public Object eval(Reader reader, ScriptContext context) throws ScriptException {
  String filename = (String) get(ScriptEngine.FILENAME);
  if (filename == null) {
    filename = "<Unknown Source>";
  }
  Object result;
  EngineScope scope = new EngineScope(context);
  Global global = getGlobal();
  scope.setParentScope(global);
  scope.setPrototype(global);
  Context cx = enterContext();
  try {
    scope.put("exports", scope, cx.newObject(global));
    result = cx.evaluateReader(scope, reader, filename, 1, null);
  } catch (EcmaError e) {
    throw new ScriptException(
        e.getMessage(), e.sourceName(), e.lineNumber(), e.columnNumber());
  } catch (Exception e) {
    throw new ScriptException(e);
  } finally {
    Context.exit();
  }
  return result;
}
org.mozilla.javascriptEcmaErrorcolumnNumber

Popular methods of EcmaError

  • lineNumber
  • sourceName
  • getErrorMessage
    Gets the message corresponding to the error. See ECMA edition 3, 15.11.7.10.
  • <init>
  • getName
    Gets the name of the error. ECMA edition 3 defines the following errors: EvalError, RangeError, Refe
  • lineSource
  • recordErrorOrigin
  • getMessage
  • details
  • toString

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now