File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
src/main/java/com/speedment/codegen/lang/models Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 2020import com .speedment .codegen .lang .interfaces .HasType ;
2121import com .speedment .codegen .lang .models .implementation .ImportImpl ;
2222import com .speedment .codegen .lang .models .modifiers .ImportModifier ;
23+ import java .util .Optional ;
2324import java .util .function .Supplier ;
2425
2526/**
2829 */
2930public interface Import extends Copyable <Import >, HasType <Import >,
3031 ImportModifier <Import > {
32+
33+ Optional <String > getStaticMember ();
34+ Import setStaticMember (String member );
3135
3236 enum Factory { INST ;
3337 private Supplier <Import > prototype = () -> new ImportImpl (null );
Original file line number Diff line number Diff line change 3232public class ImportImpl implements Import {
3333
3434private Type type ;
35+ private String staticMember ;
3536private final Set <Modifier > modifiers ;
3637
3738public ImportImpl (Type type ) {
3839this .type = type ;
40+ this .staticMember = null ;
3941this .modifiers = EnumSet .noneOf (Modifier .class );
4042}
4143
@@ -59,6 +61,17 @@ public Type getType() {
5961public Set <Modifier > getModifiers () {
6062return this .modifiers ;
6163}
64+
65+ @ Override
66+ public Optional <String > getStaticMember () {
67+ return Optional .ofNullable (staticMember );
68+ }
69+
70+ @ Override
71+ public Import setStaticMember (String member ) {
72+ staticMember = member ;
73+ return this ;
74+ }
6275
6376@ Override
6477public ImportImpl copy () {
You can’t perform that action at this time.
0 commit comments