com.mageddo.rawstringliterals.javac.LocalVariable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rsl-compiler Show documentation
Show all versions of rsl-compiler Show documentation
String multiline support for Java without all concatenation and stuff
The newest version!
package com.mageddo.rawstringliterals.javac;
import com.github.javaparser.ast.body.VariableDeclarator;
import com.github.javaparser.ast.expr.AnnotationExpr;
import com.github.javaparser.ast.expr.VariableDeclarationExpr;
import java.util.List;
class LocalVariable {
private String name;
private VariableDeclarationExpr variableDeclarationExpr;
private String comment;
private List annotationExprs;
private VariableDeclarator variable;
public boolean containsAnnotation(String name){
for (AnnotationExpr annotationExpr : annotationExprs) {
if(annotationExpr.getName().getName().equals(name)){
return true;
}
}
return false;
}
public String getName() {
return name;
}
public LocalVariable setName(String name) {
this.name = name;
return this;
}
public VariableDeclarationExpr getVariableDeclarationExpr() {
return variableDeclarationExpr;
}
public LocalVariable setVariableDeclarationExpr(VariableDeclarationExpr variableDeclarationExpr) {
this.variableDeclarationExpr = variableDeclarationExpr;
return this;
}
public String getComment() {
return comment;
}
public LocalVariable setComment(String comment) {
this.comment = comment;
return this;
}
public List getAnnotationExprs() {
return annotationExprs;
}
public LocalVariable setAnnotationExprs(List annotationExprs) {
this.annotationExprs = annotationExprs;
return this;
}
public LocalVariable setVariable(VariableDeclarator variable) {
this.variable = variable;
return this;
}
public VariableDeclarator getVariable() {
return variable;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy