Tabnine Logo
IManifoldHost.getJavaParser
Code IndexAdd Tabnine to your IDE (free)

How to use
getJavaParser
method
in
manifold.api.host.IManifoldHost

Best Java code snippets using manifold.api.host.IManifoldHost.getJavaParser (Showing top 5 results out of 315)

origin: manifold-systems/manifold

private JCTree.JCClassDecl getClassDecl( Model model )
{
 JCTree.JCClassDecl classDecl = model.getClassDecl();
 if( classDecl != null )
 {
  return classDecl;
 }
 List<CompilationUnitTree> trees = new ArrayList<>();
 getModule().getHost().getJavaParser().parseText( getSource( model ), trees, null, null, null );
 if( trees.isEmpty() )
 {
  return null;
 }
 classDecl = (JCTree.JCClassDecl)trees.get( 0 ).getTypeDecls().get( 0 );
 model.setClassDecl( classDecl );
 return classDecl;
}
origin: systems.manifold/manifold-darkj

private JCTree.JCClassDecl getClassDecl( Model model )
{
 JCTree.JCClassDecl classDecl = model.getClassDecl();
 if( classDecl != null )
 {
  return classDecl;
 }
 List<CompilationUnitTree> trees = new ArrayList<>();
 getModule().getHost().getJavaParser().parseText( getSource( model ), trees, null, null, null );
 if( trees.isEmpty() )
 {
  return null;
 }
 classDecl = (JCTree.JCClassDecl)trees.get( 0 ).getTypeDecls().get( 0 );
 model.setClassDecl( classDecl );
 return classDecl;
}
origin: systems.manifold/manifold-ext

private SrcClass makeStubFromSource()
{
 List<CompilationUnitTree> trees = new ArrayList<>();
 _model.getHost().getJavaParser().parseText( _existingSource, trees, null, null, null );
 JCTree.JCClassDecl classDecl = (JCTree.JCClassDecl)trees.get( 0 ).getTypeDecls().get( 0 );
 SrcClass srcExtended = new SrcClass( _fqn, classDecl.getKind() == Tree.Kind.CLASS ? SrcClass.Kind.Class : SrcClass.Kind.Interface )
  .modifiers( classDecl.getModifiers().getFlags() );
 if( classDecl.extending != null )
 {
  srcExtended.superClass( classDecl.extending.toString() );
 }
 for( JCTree.JCExpression iface : classDecl.implementing )
 {
  srcExtended.addInterface( iface.toString() );
 }
 return srcExtended;
}
origin: manifold-systems/manifold

private SrcClass makeStubFromSource()
{
 List<CompilationUnitTree> trees = new ArrayList<>();
 _model.getHost().getJavaParser().parseText( _existingSource, trees, null, null, null );
 JCTree.JCClassDecl classDecl = (JCTree.JCClassDecl)trees.get( 0 ).getTypeDecls().get( 0 );
 SrcClass srcExtended = new SrcClass( _fqn, classDecl.getKind() == Tree.Kind.CLASS ? SrcClass.Kind.Class : SrcClass.Kind.Interface )
  .modifiers( classDecl.getModifiers().getFlags() );
 if( classDecl.extending != null )
 {
  srcExtended.superClass( classDecl.extending.toString() );
 }
 for( JCTree.JCExpression iface : classDecl.implementing )
 {
  srcExtended.addInterface( iface.toString() );
 }
 return srcExtended;
}
origin: manifold-systems/manifold

expr = _tp.getHost().getJavaParser().parseExpr( comp.getExpr(), errorHandler );
if( transferParseErrors( literalOffset, comp, expr, errorHandler ) )
manifold.api.hostIManifoldHostgetJavaParser

Popular methods of IManifoldHost

  • getFileSystem
  • getSingleModule
  • addTypeSystemListenerAsWeakRef
  • getActualClassLoader
  • isPathIgnored

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • setRequestProperty (URLConnection)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Github Copilot alternatives
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