Package lombok.ast

Examples of lombok.ast.TypeReference.rawParts()


    return posify(ta);
  }
 
  public Node createReferenceType(Node head, List<Node> tail) {
    TypeReference t = new TypeReference();
    if (head != null) t.rawParts().addToEnd(head);
    if (tail != null) for (Node n : tail) {
      if (n != null) t.rawParts().addToEnd(n);
    }
   
    return posify(t);
View Full Code Here


 
  public Node createReferenceType(Node head, List<Node> tail) {
    TypeReference t = new TypeReference();
    if (head != null) t.rawParts().addToEnd(head);
    if (tail != null) for (Node n : tail) {
      if (n != null) t.rawParts().addToEnd(n);
    }
   
    return posify(t);
  }
 
View Full Code Here

   
    TypeReference ref = new TypeReference().astArrayDimensions(arrayDims);
    if (value instanceof TypeReference) {
      TypeReference orig = (TypeReference)value;
      ref.astWildcard(orig.astWildcard());
      ref.rawParts().migrateAllFrom(orig.rawParts());
    }
    return posify(ref);
  }
 
  public Node createTypeVariable(Node name, Node head, List<Node> tail) {
View Full Code Here

  public boolean typeIsAlsoLegalAsExpression(Node type) {
    if (!(type instanceof TypeReference)) return true;
    TypeReference tr = (TypeReference)type;
    if (tr.astArrayDimensions() > 0) return false;
    if (tr.isPrimitive() || tr.isVoid()) return false;
    for (Node part : tr.rawParts()) {
      if (part instanceof TypeReferencePart) {
        if (!((TypeReferencePart)part).rawTypeArguments().isEmpty()) return false;
      }
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.