All Downloads are FREE. Search and download functionalities are using the official Maven repository.

build.lombok.ast_generatedSource.lombok.ast.AlternateConstructorInvocation Maven / Gradle / Ivy

Go to download

This is a very small fork of lombok.ast as some Android tools needed a few modifications. The normal repository for lombok.ast is here https://github.com/rzwitserloot/lombok.ast and our changes for 0.2.3 are in this pull request: https://github.com/rzwitserloot/lombok.ast/pull/8

The newest version!
//Generated by lombok.ast.template.TemplateProcessor. DO NOT EDIT, DO NOT CHECK IN!

package lombok.ast;

public class AlternateConstructorInvocation extends lombok.ast.AbstractNode implements lombok.ast.Statement {
	lombok.ast.ListAccessor constructorTypeArguments = ListAccessor.of(this, TypeReference.class, "AlternateConstructorInvocation.constructorTypeArguments");
	lombok.ast.ListAccessor arguments = ListAccessor.of(this, Expression.class, "AlternateConstructorInvocation.arguments");
	
	public Block upToBlock() {
		if (!(this.getParent() instanceof Block)) return null;
		Block out = (Block)this.getParent();
		if (!out.rawContents().contains(this)) return null;
		return out;
	}
	
	
	public lombok.ast.RawListAccessor rawConstructorTypeArguments() {
		return this.constructorTypeArguments.asRaw();
	}
	
	public lombok.ast.StrictListAccessor astConstructorTypeArguments() {
		return this.constructorTypeArguments.asStrict();
	}
	
	public lombok.ast.RawListAccessor rawArguments() {
		return this.arguments.asRaw();
	}
	
	public lombok.ast.StrictListAccessor astArguments() {
		return this.arguments.asStrict();
	}
	
	@java.lang.Override public java.util.List getChildren() {
		java.util.List result = new java.util.ArrayList();
		result.addAll(this.constructorTypeArguments.backingList());
		result.addAll(this.arguments.backingList());
		return result;
	}
	
	@java.lang.Override public boolean replaceChild(Node original, Node replacement) throws lombok.ast.AstException {
		if (this.rawConstructorTypeArguments().replace(original, replacement)) return true;
		if (this.rawArguments().replace(original, replacement)) return true;
		return false;
	}
	
	@java.lang.Override public boolean detach(Node child) {
		if (this.rawConstructorTypeArguments().remove(child)) return true;
		if (this.rawArguments().remove(child)) return true;
		return false;
	}
	
	@java.lang.Override public void accept(lombok.ast.AstVisitor visitor) {
		if (visitor.visitAlternateConstructorInvocation(this)) return;
		for (lombok.ast.Node child : this.constructorTypeArguments.asIterable()) {
			child.accept(visitor);
		}
		for (lombok.ast.Node child : this.arguments.asIterable()) {
			child.accept(visitor);
		}
		visitor.afterVisitAlternateConstructorInvocation(this);
		visitor.endVisit(this);
	}
	
	@java.lang.Override public AlternateConstructorInvocation copy() {
		AlternateConstructorInvocation result = new AlternateConstructorInvocation();
		for (Node n : this.constructorTypeArguments.backingList()) {
			result.rawConstructorTypeArguments().addToEnd(n == null ? null : n.copy());
		}
		for (Node n : this.arguments.backingList()) {
			result.rawArguments().addToEnd(n == null ? null : n.copy());
		}
		return result;
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy