Tabnine Logo
JNAeratorParser.newObjCppParser
Code IndexAdd Tabnine to your IDE (free)

How to use
newObjCppParser
method
in
com.ochafik.lang.jnaerator.JNAeratorParser

Best Java code snippets using com.ochafik.lang.jnaerator.JNAeratorParser.newObjCppParser (Showing top 7 results out of 315)

origin: nativelibs4java/JavaCL

@Override
protected com.ochafik.lang.jnaerator.parser.ObjCppParser newObjCppParser(TypeConversion typeConverter, String s, boolean verbose, PrintStream errorOut) throws IOException {
  com.ochafik.lang.jnaerator.parser.ObjCppParser parser = super.newObjCppParser(typeConverter, s, verbose, errorOut);
  parser.allowKinds(ModifierKind.OpenCL);
  return parser;
}

origin: nativelibs4java/JNAerator

ObjCppParser parser = newObjCppParser(typeConverter, source, config.verbose, pout);
if (topLevelTypeDefs != null) {
  parser.topLevelTypeIdentifiers = topLevelTypeDefs;
origin: com.nativelibs4java/jnaerator

ObjCppParser parser = newObjCppParser(typeConverter, source, config.verbose, pout);
if (topLevelTypeDefs != null) {
  parser.topLevelTypeIdentifiers = topLevelTypeDefs;
origin: com.nativelibs4java/jnaerator

Expression expression = new JNAeratorParser().newObjCppParser(typeConverter, preprocessedMacro, verbose, null).expression();//.expr;
if (expression == null) {
  continue;
origin: nativelibs4java/JNAerator

Expression expression = new JNAeratorParser().newObjCppParser(typeConverter, preprocessedMacro, verbose, null).expression();//.expr;
if (expression == null) {
  continue;
origin: nativelibs4java/JNAerator

public TypeRef parseType(Node node) throws XPathExpressionException, RecognitionException, IOException {
  if (node == null) {
    return null;
  }
  TypeRef declaredType = null;
  try {
    String dt = XMLUtils.getAttribute(node, "declared_type");
    if (dt != null) {
      ObjCppParser parser = new JNAeratorParser().newObjCppParser(result.typeConverter, dt, false, null);
      parser.setupScopes();
      declaredType = parser.mutableTypeRef();
    }
  } catch (Exception ex) {
    ex.printStackTrace();
  }
  TypeRef inferredType = null;
  if (declaredType == null || declaredType instanceof SimpleTypeRef) {
    inferredType = parseAndReconciliateType(XMLUtils.getAttribute(node, "type"), XMLUtils.getAttribute(node, "type64"));
    if (inferredType != null && declaredType instanceof SimpleTypeRef && !inferredType.toString().equals(declaredType.toString())) {
      String sn = ((SimpleTypeRef) declaredType).getName().toString();
      result.addWeakTypeDef(inferredType.clone(), sn);
    }
  }
  return declaredType != null ? declaredType : inferredType;
}
origin: com.nativelibs4java/jnaerator

public TypeRef parseType(Node node) throws XPathExpressionException, RecognitionException, IOException {
  if (node == null) {
    return null;
  }
  TypeRef declaredType = null;
  try {
    String dt = XMLUtils.getAttribute(node, "declared_type");
    if (dt != null) {
      ObjCppParser parser = new JNAeratorParser().newObjCppParser(result.typeConverter, dt, false, null);
      parser.setupScopes();
      declaredType = parser.mutableTypeRef();
    }
  } catch (Exception ex) {
    ex.printStackTrace();
  }
  TypeRef inferredType = null;
  if (declaredType == null || declaredType instanceof SimpleTypeRef) {
    inferredType = parseAndReconciliateType(XMLUtils.getAttribute(node, "type"), XMLUtils.getAttribute(node, "type64"));
    if (inferredType != null && declaredType instanceof SimpleTypeRef && !inferredType.toString().equals(declaredType.toString())) {
      String sn = ((SimpleTypeRef) declaredType).getName().toString();
      result.addWeakTypeDef(inferredType.clone(), sn);
    }
  }
  return declaredType != null ? declaredType : inferredType;
}
com.ochafik.lang.jnaeratorJNAeratorParsernewObjCppParser

Popular methods of JNAeratorParser

  • <init>
  • createParsingCallable
  • cutSourceContentInSlices
  • parse
  • removeInlineAsm
  • removeTypeDefsConflictingWithForcedTypeDefs

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • compareTo (BigDecimal)
  • getContentResolver (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • ImageIO (javax.imageio)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best IntelliJ 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