Tabnine Logo
TypeRef$FunctionSignature.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.ochafik.lang.jnaerator.parser.TypeRef$FunctionSignature
constructor

Best Java code snippets using com.ochafik.lang.jnaerator.parser.TypeRef$FunctionSignature.<init> (Showing top 5 results out of 315)

origin: nativelibs4java/JNAerator

@Override
public MutableByDeclarator mutateType(MutableByDeclarator type) {
  if (type == null)
    return null;
  
  type = type.clone();
  if (type instanceof Function) {
    TypeRef fs = new TypeRef.FunctionSignature((Function)type).importDetails((Element)type, true);
    type = (MutableByDeclarator) new TypeRef.Pointer(fs, getPointerStyle());
  } else if (type instanceof TypeRef) {
    type = (MutableByDeclarator) new TypeRef.Pointer((TypeRef)type, getPointerStyle()).importDetails((Element)type, true);
  } else
    throw new IllegalArgumentException(type.getClass().getName() + " cannot be mutated by pointer");
  ((Element)type).importDetails(this, false);
  return getTarget() == null ? type : getTarget().mutateType(type);
}
public Declarator.PointerStyle getPointerStyle() {
origin: nativelibs4java/JNAerator

@Override
protected void visitStoredDeclarations(StoredDeclarations d) {
  super.visitStoredDeclarations(d);
  if (d.getDeclarators().size() == 1) {
    Declarator declarator = d.getDeclarators().get(0);
    if (declarator instanceof FunctionDeclarator) {
      FunctionDeclarator fd = (FunctionDeclarator) declarator;
      Function f = new Function(Function.Type.CFunction, null, d.getValueType(), fd.getArgs());
      f.addModifiers(fd.getTarget().getModifiers());
      FunctionSignature fs = new FunctionSignature(f);
      d.setValueType(fs);
      
      Declarator target = fd.getTarget();
      Declarator newTarget = target == null ?
        new DirectDeclarator(fd.resolveName(), fd.getDefaultValue()) :
        target.clone();
      d.setDeclarators(Arrays.asList(newTarget));
      d.accept(this);
    }
  }
}
origin: com.nativelibs4java/jnaerator

@Override
protected void visitStoredDeclarations(StoredDeclarations d) {
  super.visitStoredDeclarations(d);
  if (d.getDeclarators().size() == 1) {
    Declarator declarator = d.getDeclarators().get(0);
    if (declarator instanceof FunctionDeclarator) {
      FunctionDeclarator fd = (FunctionDeclarator) declarator;
      Function f = new Function(Function.Type.CFunction, null, d.getValueType(), fd.getArgs());
      f.addModifiers(fd.getTarget().getModifiers());
      FunctionSignature fs = new FunctionSignature(f);
      d.setValueType(fs);
      
      Declarator target = fd.getTarget();
      Declarator newTarget = target == null ?
        new DirectDeclarator(fd.resolveName(), fd.getDefaultValue()) :
        target.clone();
      d.setDeclarators(Arrays.asList(newTarget));
      d.accept(this);
    }
  }
}
origin: nativelibs4java/JNAerator

retval.signature = mark(new FunctionSignature(new Function(Function.Type.CFunction, null, null)), getLine(tk));
retval.signature.getFunction().setType(Function.Type.CFunction);
origin: nativelibs4java/JNAerator

f.setValueType(new TypeRef.FunctionSignature(ff));
f.setType(Type.CFunction);
f.setArgs(getArgs());
com.ochafik.lang.jnaerator.parserTypeRef$FunctionSignature<init>

Popular methods of TypeRef$FunctionSignature

  • getFunction
  • getParentElement
  • getType
  • changeValue
  • findParentOfType
  • getModifiers
  • getResolvedJavaIdentifier
  • importDetails
  • replaceBy
  • setFunction
  • setResolvedJavaIdentifier
  • setType
  • setResolvedJavaIdentifier,
  • setType

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • requestLocationUpdates (LocationManager)
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JButton (javax.swing)
  • Top PhpStorm 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