public abstract class SourceCode.Element<T> extends Object implements Comparable<SourceCode.Element<T>>
Modifier and Type | Field and Description |
---|---|
protected SourceCode.ACCESS |
access |
protected List<SourceCode.Annotation> |
annos |
protected org.apache.openjpa.persistence.util.SourceCode.Comment |
comment |
protected boolean |
isFinal |
protected boolean |
isStatic |
protected String |
name |
protected List<org.apache.openjpa.persistence.util.SourceCode.ClassName> |
params |
protected org.apache.openjpa.persistence.util.SourceCode.ClassName |
type |
Modifier | Constructor and Description |
---|---|
protected |
Element(String name,
org.apache.openjpa.persistence.util.SourceCode.ClassName type) |
Modifier and Type | Method and Description |
---|---|
SourceCode.Annotation |
addAnnotation(String a) |
T |
addComment(boolean inline,
String... lines) |
SourceCode.Element<T> |
addParameter(String param) |
int |
compareTo(SourceCode.Element<T> other) |
org.apache.openjpa.persistence.util.SourceCode.ClassName |
getType() |
T |
makeFinal() |
T |
makePrivate() |
T |
makeProtected() |
T |
makePublic() |
T |
makeStatic() |
void |
write(PrintWriter out,
int tab) |
protected String name
protected org.apache.openjpa.persistence.util.SourceCode.ClassName type
protected SourceCode.ACCESS access
protected boolean isStatic
protected boolean isFinal
protected org.apache.openjpa.persistence.util.SourceCode.Comment comment
protected List<org.apache.openjpa.persistence.util.SourceCode.ClassName> params
protected List<SourceCode.Annotation> annos
protected Element(String name, org.apache.openjpa.persistence.util.SourceCode.ClassName type)
public org.apache.openjpa.persistence.util.SourceCode.ClassName getType()
public SourceCode.Annotation addAnnotation(String a)
public SourceCode.Element<T> addParameter(String param)
public int compareTo(SourceCode.Element<T> other)
compareTo
in interface Comparable<SourceCode.Element<T>>
public T makePublic()
public T makeProtected()
public T makePrivate()
public T makeStatic()
public T makeFinal()
public void write(PrintWriter out, int tab)
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.