public static class LLJava.Field extends LLJava.Member
Modifier and Type | Field and Description |
---|---|
protected LLJava.Literal |
initializer
Generated by umod; model author's documentation MISSING.
|
protected LLJava.TypeExpr |
type
Generated by umod; model author's documentation MISSING.
|
descriptorEntry, name, nameEntry, signatureEntry
attrs
annotations, modifiers
location
format
Constructor and Description |
---|
Field(LLJava.TypeExpr type,
LLJava.Id name)
Constructor generated according to specification #0
Constructor defined according to directive "C 0/..". |
Field(LLJava.TypeExpr type,
LLJava.Id name,
LLJava.Literal initializer)
Constructor generated according to specification #1
Constructor defined according to directive "C 1/..". |
Modifier and Type | Method and Description |
---|---|
LLJava.Field |
doclone()
Clones this object.
|
Format |
format()
Delivers a format object for pretty-printing, as specified in the umod source.
|
LLJava.Literal |
get_initializer()
Generated by umod; model author's documentation MISSING.
|
static Pattern<LLJava.Field> |
get_initializer(Pattern<? super LLJava.Literal> p)
Lifts a pattern which matches the field value to one which matches this
whole object.
|
LLJava.TypeExpr |
get_type()
Generated by umod; model author's documentation MISSING.
|
static Pattern<LLJava.Field> |
get_type(Pattern<? super LLJava.TypeExpr> p)
Lifts a pattern which matches the field value to one which matches this
whole object.
|
static String |
getFormatHint()
Delivers the format specification from the umod source.
|
LLJava.Field |
initFrom(Object o0)
Copies values of all common fields from the argument.
|
boolean |
set_initializer(LLJava.Literal val)
Generated by umod; model author's documentation MISSING.
|
boolean |
set_type(LLJava.TypeExpr val)
Generated by umod; model author's documentation MISSING.
|
get_descriptorEntry, get_descriptorEntry, get_name, get_name, get_nameEntry, get_nameEntry, get_signatureEntry, get_signatureEntry, set_descriptorEntry, set_name, set_nameEntry, set_signatureEntry
descend_attrs, get_attrs, get_attrs, set_attrs
descend_annotations, descend_modifiers, get_annotations, get_annotations, get_modifiers, get_modifiers, set_annotations, set_modifiers
get_location, get_location, set_location
protected LLJava.TypeExpr type
LLJava.TypeExpr
(never null)protected LLJava.Literal initializer
LLJava.Literal
(maybe null)public Field(LLJava.TypeExpr type, LLJava.Id name)
type
- is copied to field type
name
- is copied to field LLJava.Member.name
public Field(LLJava.TypeExpr type, LLJava.Id name, LLJava.Literal initializer)
type
- is copied to field type
name
- is copied to field LLJava.Member.name
initializer
- is copied to field initializer
public LLJava.Field doclone()
Cloneable
is known
to be implemented.doclone
in class LLJava.Member
public static String getFormatHint()
annotations[, ,
/]modifiers{$java 'FormatUtils.modifier'}[, , /],type name( '='
initializer?)';'
public Format format()
format
in interface Formattable
format
in class LLJava.Member
public LLJava.Field initFrom(Object o0)
initFrom
in class LLJava.Member
public LLJava.TypeExpr get_type()
LLJava.TypeExpr
(never
null)public boolean set_type(LLJava.TypeExpr val)
val
- the new value of type LLJava.TypeExpr
(never null)type
public LLJava.Literal get_initializer()
LLJava.Literal
(maybe
null)public boolean set_initializer(LLJava.Literal val)
val
- the new value of type LLJava.Literal
(maybe null)initializer
public static Pattern<LLJava.Field> get_type(Pattern<? super LLJava.TypeExpr> p)
LLJava.__Patterns
.public static Pattern<LLJava.Field> get_initializer(Pattern<? super LLJava.Literal> p)
LLJava.__Patterns
.see also the complete user documentation .