summaryrefslogtreecommitdiffstats
path: root/languages/java/java.store.g
diff options
context:
space:
mode:
Diffstat (limited to 'languages/java/java.store.g')
-rw-r--r--languages/java/java.store.g18
1 files changed, 9 insertions, 9 deletions
diff --git a/languages/java/java.store.g b/languages/java/java.store.g
index b69b7323..d7e28c22 100644
--- a/languages/java/java.store.g
+++ b/languages/java/java.store.g
@@ -245,9 +245,9 @@ ctorDef returns [ FunctionDom meth ] {
m=modifiers methodHead[meth] slist
)
{
- if( m.contains("public") )
+ if( m.tqcontains("public") )
meth->setAccess( CodeModelItem::Public );
- else if( m.contains("protected") )
+ else if( m.tqcontains("protected") )
meth->setAccess( CodeModelItem::Protected );
else
meth->setAccess( CodeModelItem::Private );
@@ -263,9 +263,9 @@ methodDecl returns [ FunctionDom meth ] {
: #(METHOD_DEF m=modifiers tp=typeSpec methodHead[meth])
{
meth->setResultType( tp );
- if( m.contains("public") )
+ if( m.tqcontains("public") )
meth->setAccess( CodeModelItem::Public );
- else if( m.contains("protected") )
+ else if( m.tqcontains("protected") )
meth->setAccess( CodeModelItem::Protected );
else
meth->setAccess( CodeModelItem::Private );
@@ -281,9 +281,9 @@ methodDef returns [ FunctionDom meth ] {
: #(METHOD_DEF m=modifiers tp=typeSpec methodHead[meth] (slist)?)
{
meth->setResultType( tp );
- if( m.contains("public") )
+ if( m.tqcontains("public") )
meth->setAccess( CodeModelItem::Public );
- else if( m.contains("protected") )
+ else if( m.tqcontains("protected") )
meth->setAccess( CodeModelItem::Protected );
else
meth->setAccess( CodeModelItem::Private );
@@ -299,14 +299,14 @@ variableDef returns [ VariableDom attr ] {
: #(VARIABLE_DEF m=modifiers tp=typeSpec variableDeclarator[attr] varInitializer)
{
attr->setType( tp );
- if( m.contains("public") )
+ if( m.tqcontains("public") )
attr->setAccess( CodeModelItem::Public );
- else if( m.contains("protected") )
+ else if( m.tqcontains("protected") )
attr->setAccess( CodeModelItem::Protected );
else
attr->setAccess( CodeModelItem::Private );
- attr->setStatic( m.contains("static") );
+ attr->setStatic( m.tqcontains("static") );
}
;