Tabnine Logo
Namespace
Code IndexAdd Tabnine to your IDE (free)

How to use
Namespace
in
com.ochafik.lang.jnaerator.parser

Best Java code snippets using com.ochafik.lang.jnaerator.parser.Namespace (Showing top 10 results out of 315)

origin: nativelibs4java/JNAerator

@Override
public void visitNamespace(Namespace ns) {
  if (currentNamespace.isEmpty())
    currentNamespace.push(ns.getName());
  else
    currentNamespace.push(currentNamespace.peek().derive(Identifier.QualificationSeparator.Colons, ns.getName()));
  try {
    super.visitNamespace(ns);
  } finally {
    currentNamespace.pop();
  }
}    
origin: nativelibs4java/JNAerator

public void setName(Identifier name) {
  this.name = changeValue(this, this.name, name);
}
origin: nativelibs4java/JNAerator

public Namespace(Identifier name, Declaration... declarations) {
  setName(name);
  setDeclarations(Arrays.asList(declarations));
}
@Override
origin: nativelibs4java/JNAerator

  @Override
  public boolean replaceChild(Element child, Element by) {
    if (child == getName()) {
      setName((Identifier) by);
      return true;
    }
    return super.replaceChild(child, by);
  }
}
origin: nativelibs4java/JNAerator

@Override
public void visitNamespace(Namespace ns) {
  append("namespace ").append(ns.getName()).append(" {\n");
  indent();
  implode(ns.getDeclarations(), "\n" + indent);
  deindent();
  append("\n", indent, "}");
}
origin: nativelibs4java/JNAerator

namespace = new Namespace();
namespace.setName(new SimpleIdentifier((ns!=null?ns.getText():null)));
     namespace.addDeclaration((subD!=null?subD.declaration:null));
origin: com.nativelibs4java/jnaerator

@Override
public void visitNamespace(Namespace ns) {
  if (currentNamespace.isEmpty())
    currentNamespace.push(ns.getName());
  else
    currentNamespace.push(currentNamespace.peek().derive(Identifier.QualificationSeparator.Colons, ns.getName()));
  try {
    super.visitNamespace(ns);
  } finally {
    currentNamespace.pop();
  }
}    
origin: nativelibs4java/JNAerator

@Override
public void visitNamespace(final Namespace element) {
  currentTable = new SymbolTable(currentTable, element.getName(), element);
  try {
    super.visitNamespace(element);
  } finally {
    currentTable = currentTable.parent;
  }
}
origin: nativelibs4java/JNAerator

@Override
public void visitNamespace(Namespace ns) {
  visit(ns.getName());
  visitDeclarations(ns);
}
origin: com.nativelibs4java/jnaerator

@Override
public void visitNamespace(final Namespace element) {
  currentTable = new SymbolTable(currentTable, element.getName(), element);
  try {
    super.visitNamespace(element);
  } finally {
    currentTable = currentTable.parent;
  }
}
com.ochafik.lang.jnaerator.parserNamespace

Most used methods

  • getName
  • <init>
  • addDeclaration
  • changeValue
  • getDeclarations
  • setDeclarations
  • setName

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • From CI to AI: The AI layer in your organization
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