You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just add a template like this :
public void set @Fieldname(String field)
{
this.@Fieldname = field;
}
public String get@fieldName()
{
return this.@Fieldname;
}
when I run it, it will throws some errors like:
Exception in thread "main" org.rythmengine.exception.CompileException: Syntax error on token "field", delete this token
Template:
public void set @Fieldname(String field)
{
this.@Fieldname = field;
}
public String get@fieldName()
{
return this.@Fieldname;
}
Relevant template source lines:
1:
2: public void set @Fieldname(String field)
3: {
4: this.@Fieldname = field;
5: }
6: public String get@fieldName()
7: {
8: return this.@Fieldname;
Relevant Java source lines:
42:
43: @OverRide public org.rythmengine.utils.TextBuilder build(){
44: buffer().ensureCapacity(180);
45: p("\npublic void set "); //line: 2
46:
I just add a template like this :
public void set @Fieldname(String field)
{
this.@Fieldname = field;
}
public String get@fieldName()
{
return this.@Fieldname;
}
when I run it, it will throws some errors like:
Exception in thread "main" org.rythmengine.exception.CompileException: Syntax error on token "field", delete this token
Template:
public void set @Fieldname(String field)
{
this.@Fieldname = field;
}
public String get@fieldName()
{
return this.@Fieldname;
}
Relevant template source lines:
1:
Relevant Java source lines:
42:
43: @OverRide public org.rythmengine.utils.TextBuilder build(){
44: buffer().ensureCapacity(180);
45: p("\npublic void set "); //line: 2
46:
Any one can help me ?
The text was updated successfully, but these errors were encountered: