Package com.twosigma.beaker.autocomplete.java.JavaParser

Examples of com.twosigma.beaker.autocomplete.java.JavaParser.TypeContext


 
 
  @Override
  public void exitFieldDeclaration(FieldDeclarationContext ctx) {
    String type = null;
    TypeContext ty = ctx.getRuleContext(TypeContext.class, 0);
    if(ty!=null) {
      ClassOrInterfaceTypeContext t = ty.getRuleContext(ClassOrInterfaceTypeContext.class, 0);
      if(t!=null) {
        type=t.getText();
      } else {
        PrimitiveTypeContext pt = ty.getRuleContext(PrimitiveTypeContext.class, 0);
        if(pt!=null)
          type=pt.getText();
      }
    }
    List<VariableDeclaratorsContext> vars = ctx.getRuleContexts(VariableDeclaratorsContext.class);
View Full Code Here


  }

  @Override
  public void exitLocalVariableDeclaration(LocalVariableDeclarationContext ctx) {
    String type = null;
    TypeContext ty = ctx.getRuleContext(TypeContext.class, 0);
    if(ty!=null) {
      ClassOrInterfaceTypeContext t = ty.getRuleContext(ClassOrInterfaceTypeContext.class, 0);
      if(t!=null) {
        type=t.getText();
      } else {
        PrimitiveTypeContext pt = ty.getRuleContext(PrimitiveTypeContext.class, 0);
        if(pt!=null)
          type=pt.getText();
      }
    }
    List<VariableDeclaratorsContext> vars = ctx.getRuleContexts(VariableDeclaratorsContext.class);
View Full Code Here

TOP

Related Classes of com.twosigma.beaker.autocomplete.java.JavaParser.TypeContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.