Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.sdmlib.codegen.util;
  
  
  {
     public LocalVarTableEntryPO(){
       newInstance(CreatorCreator.createIdMap("PatternObjectType"));
    }
 
    public LocalVarTableEntryPO(LocalVarTableEntry... hostGraphObject) {
       if(hostGraphObject==null || hostGraphObject.length<1){
          return ;
       }
       newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
   }
    @Override
    public LocalVarTableEntryPO startNAC()
    {
       return (LocalVarTableEntryPOsuper.startNAC();
    }
    
    @Override
    public LocalVarTableEntryPO endNAC()
    {
       return (LocalVarTableEntryPOsuper.endNAC();
    }
    
    {
       LocalVarTableEntrySet matches = new LocalVarTableEntrySet();
 
       while (this.getPattern().getHasMatch())
       {
          matches.add((LocalVarTableEntrythis.getCurrentMatch());
          
          this.getPattern().findMatch();
       }
       
       return matches;
    }
    
    public LocalVarTableEntryPO hasName(String value)
    {
       new AttributeConstraint()
       .withTgtValue(value)
       .withSrc(this)
       .withModifier(this.getPattern().getModifier())
       .withPattern(this.getPattern());
       
       this.getPattern().findMatch();
       
       return this;
    }
    
    public String getName()
    {
       if (this.getPattern().getHasMatch())
       {
          return ((LocalVarTableEntrygetCurrentMatch()).getName();
       }
       return null;
    }
    
    public LocalVarTableEntryPO 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 ((LocalVarTableEntrygetCurrentMatch()).getType();
       }
       return null;
    }
    
    public LocalVarTableEntryPO 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 ((LocalVarTableEntrygetCurrentMatch()).getStartPos();
      }
      return 0;
   }
   
   public LocalVarTableEntryPO 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 ((LocalVarTableEntrygetCurrentMatch()).getEndPos();
      }
      return 0;
   }
   
   public LocalVarTableEntryPO hasName(String lowerString upper)
   {
      new AttributeConstraint()
      .withTgtValue(lower)
      .withUpperTgtValue(upper)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   public LocalVarTableEntryPO 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 LocalVarTableEntryPO 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 LocalVarTableEntryPO hasEndPos(int lowerint upper)
   {
      new AttributeConstraint()
      .withTgtValue(lower)
      .withUpperTgtValue(upper)
      .withSrc(this)
      .withModifier(this.getPattern().getModifier())
      .withPattern(this.getPattern());
      
      this.getPattern().findMatch();
      
      return this;
   }
   
   {
      this.startCreate().hasName(value).endCreate();
      return this;
   }
   
   {
      this.startCreate().hasType(value).endCreate();
      return this;
   }
   
   public LocalVarTableEntryPO createStartPos(int value)
   {
      this.startCreate().hasStartPos(value).endCreate();
      return this;
   }
   
   public LocalVarTableEntryPO createEndPos(int value)
   {
      this.startCreate().hasEndPos(value).endCreate();
      return this;
   }
   
New to GrepCode? Check out our FAQ X