Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.sdmlib.codegen.util;
  
  
  public class SymTabEntryPO extends PatternObject<SymTabEntryPOSymTabEntry>
  {
     public SymTabEntryPO(){
       newInstance(CreatorCreator.createIdMap("PatternObjectType"));
    }
 
    public SymTabEntryPO(SymTabEntry... hostGraphObject) {
       if(hostGraphObject==null || hostGraphObject.length<1){
          return ;
       }
       newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
   }
    @Override
    public SymTabEntryPO startNAC()
    {
       return (SymTabEntryPOsuper.startNAC();
    }
    
    @Override
    public SymTabEntryPO endNAC()
    {
       return (SymTabEntryPOsuper.endNAC();
    }
    
    public SymTabEntrySet allMatches()
    {
       SymTabEntrySet matches = new SymTabEntrySet();
 
       while (this.getPattern().getHasMatch())
       {
          matches.add((SymTabEntrythis.getCurrentMatch());
          
          this.getPattern().findMatch();
       }
       
       return matches;
    }
    
    public SymTabEntryPO hasKind(String value)
    {
       new AttributeConstraint()
       .withTgtValue(value)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
       
       this.getPattern().findMatch();
       
       return this;
    }
    
    public String getKind()
    {
       if (this.getPattern().getHasMatch())
       {
          return ((SymTabEntrygetCurrentMatch()).getKind();
       }
       return null;
    }
    
    public SymTabEntryPO hasMemberName(String value)
    {
       new AttributeConstraint()
       .withTgtValue(value)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
       
       this.getPattern().findMatch();
       
       return this;
    }
    
    public String getMemberName()
    {
       if (this.getPattern().getHasMatch())
       {
          return ((SymTabEntrygetCurrentMatch()).getMemberName();
       }
       return null;
    }
    
    public SymTabEntryPO hasType(String value)
    {
       new AttributeConstraint()
       .withTgtValue(value)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
       
      this.getPattern().findMatch();
      
      return this;
   }
   
   public String getType()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((SymTabEntrygetCurrentMatch()).getType();
      }
      return null;
   }
   
   public SymTabEntryPO hasStartPos(int value)
   {
      new AttributeConstraint()
      .withTgtValue(value)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public int getStartPos()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((SymTabEntrygetCurrentMatch()).getStartPos();
      }
      return 0;
   }
   
   public SymTabEntryPO hasBodyStartPos(int value)
   {
      new AttributeConstraint()
      .withTgtValue(value)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public int getBodyStartPos()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((SymTabEntrygetCurrentMatch()).getBodyStartPos();
      }
      return 0;
   }
   
   public SymTabEntryPO hasEndPos(int value)
   {
      new AttributeConstraint()
      .withTgtValue(value)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public int getEndPos()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((SymTabEntrygetCurrentMatch()).getEndPos();
      }
      return 0;
   }
   
   public SymTabEntryPO hasModifiers(String value)
   {
      new AttributeConstraint()
      .withTgtValue(value)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public String getModifiers()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((SymTabEntrygetCurrentMatch()).getModifiers();
      }
      return null;
   }
   
   public SymTabEntryPO hasKind(String lowerString upper)
   {
      new AttributeConstraint()
      .withTgtValue(lower)
      .withUpperTgtValue(upper)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public SymTabEntryPO hasMemberName(String lowerString upper)
   {
      new AttributeConstraint()
      .withTgtValue(lower)
      .withUpperTgtValue(upper)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public SymTabEntryPO hasType(String lowerString upper)
   {
      new AttributeConstraint()
      .withTgtValue(lower)
      .withUpperTgtValue(upper)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public SymTabEntryPO hasStartPos(int lowerint upper)
   {
      new AttributeConstraint()
      .withTgtValue(lower)
      .withUpperTgtValue(upper)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public SymTabEntryPO hasBodyStartPos(int lowerint upper)
   {
      new AttributeConstraint()
      .withTgtValue(lower)
      .withUpperTgtValue(upper)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public SymTabEntryPO hasEndPos(int lowerint upper)
   {
      new AttributeConstraint()
      .withTgtValue(lower)
      .withUpperTgtValue(upper)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public SymTabEntryPO hasModifiers(String lowerString upper)
   {
      new AttributeConstraint()
      .withTgtValue(lower)
      .withUpperTgtValue(upper)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public SymTabEntryPO createKind(String value)
   {
      this.startCreate().hasKind(value).endCreate();
      return this;
   }
   
   {
      this.startCreate().hasMemberName(value).endCreate();
      return this;
   }
   
   public SymTabEntryPO createType(String value)
   {
      this.startCreate().hasType(value).endCreate();
      return this;
   }
   
   public SymTabEntryPO createStartPos(int value)
   {
      this.startCreate().hasStartPos(value).endCreate();
      return this;
   }
   
   public SymTabEntryPO createBodyStartPos(int value)
   {
      this.startCreate().hasBodyStartPos(value).endCreate();
      return this;
   }
   
   public SymTabEntryPO createEndPos(int value)
   {
      this.startCreate().hasEndPos(value).endCreate();
      return this;
   }
   
   public SymTabEntryPO createModifiers(String value)
   {
      this.startCreate().hasModifiers(value).endCreate();
      return this;
   }
   
   public SymTabEntryPO hasAnnotations(String value)
   {
      new AttributeConstraint()
      .withTgtValue(value)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      super.hasAttr();
      
      return this;
   }
   
   public SymTabEntryPO hasAnnotations(String lowerString upper)
   {
      new AttributeConstraint()
      .withTgtValue(lower)
      .withUpperTgtValue(upper)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      super.hasAttr();
      
      return this;
   }
   
   {
      this.startCreate().hasAnnotations(value).endCreate();
      return this;
   }
   
   public String getAnnotations()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((SymTabEntrygetCurrentMatch()).getAnnotations();
      }
      return null;
   }
   
   public SymTabEntryPO withAnnotations(String value)
   {
      if (this.getPattern().getHasMatch())
      {
         ((SymTabEntrygetCurrentMatch()).setAnnotations(value);
      }
      return this;
   }
   
New to GrepCode? Check out our FAQ X